Shop OBEX P1 Docs P2 Docs Learn Events
7 Segment Display Multiplexing — Parallax Forums

7 Segment Display Multiplexing

GorillaGorilla Posts: 16
edited 2012-12-14 10:37 in BASIC Stamp
I have Four Common anode 7 segment displays wired together and I am wanting to multiplex them. I plan to define each character and each display as a symbol I just need help writing the code. I want to have a counter for the characters and one for the anodes that will cycle through each of the characters and each display. I know I can chain multiple 74hc595's together but what I am aiming for is to cut down on actual hardware and use one 595 to control the displays via 3 wire serial interface and use a darlington array for the anodes. What I plan to do is something like this. What darlington array can I use with 74hc595?

'From right to left binary number position equals Segments ABCDEFG.
SYMBOL %1001110,C 'Letter C,
SYMBOL %1000,display1
SYMBOL %0100,display2

displayCounter var NIB

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2012-12-14 10:37
    It looks like your initial code is a mix of BS1 and BS2 syntax, though the SYMBOL declarations are improper syntax. How many displays will you be driving? This matters since the overhead of shifting data to trigger each digit may make it more worth while to drive them via another method.
Sign In or Register to comment.