D
Danny T
Guest
Hi all,
I've (half-)built a "clock" using a cheap LCD display and a couple of
PICs. Currently, it's very OTT with pics, since I don't have any shift
registers or anything to control the 40 pins on the LCD, so I've got a
PIC for each digit, 8 input pins, and 7 output pins (7 segments per
digit). When the 8th input pin goes high, the other 7 are copied to the
output. This way, 4 digits can be driven from one PIC with 11 output
pins (7 for the segment, and one linked to each "active" input for each
digit).
What's the best (least components etc.) to do this in "the real world"?
I was thinking of addressable shift registers or something to replace
the PICs, but then it occured to me that it's also possible with a
comparator... Wire all the segments together, and use a comparator so
only when I "clock" the correct 7 comparators, would the outputs be
carried across to the LCD. I'm not sure of the relative costs of shift
registers/comparators - how would you do it?
--
Danny
I've (half-)built a "clock" using a cheap LCD display and a couple of
PICs. Currently, it's very OTT with pics, since I don't have any shift
registers or anything to control the 40 pins on the LCD, so I've got a
PIC for each digit, 8 input pins, and 7 output pins (7 segments per
digit). When the 8th input pin goes high, the other 7 are copied to the
output. This way, 4 digits can be driven from one PIC with 11 output
pins (7 for the segment, and one linked to each "active" input for each
digit).
What's the best (least components etc.) to do this in "the real world"?
I was thinking of addressable shift registers or something to replace
the PICs, but then it occured to me that it's also possible with a
comparator... Wire all the segments together, and use a comparator so
only when I "clock" the correct 7 comparators, would the outputs be
carried across to the LCD. I'm not sure of the relative costs of shift
registers/comparators - how would you do it?
--
Danny