Is there such a thing as a tri-state output expander?
Professor Chaos
Posts: 36
I want to control a bank of 20 or so LEDs. However, because of the way the LEDs are installed, each pins controlling the LEDs must be capable of being either HIGH, LOW, or INPUT. (Some of the LEDs have leads tied together, and some light combinations require a pin to be high-impedance and let the other pins connected to the LEDs be +5 or GND).
Is there any output expanding chip that lets you set outputs individually to +5, GND, or high-Z? Of course it has to be able to handle the amperage for a bunch of LEDs as well.
Thanks!
Is there any output expanding chip that lets you set outputs individually to +5, GND, or high-Z? Of course it has to be able to handle the amperage for a bunch of LEDs as well.
Thanks!
Comments
Then for 20 LEDs you'd need five (max)·of these packages, and you'd need 40 bits (max) of input information (two bits per buffer).
To provide the 40 bits, you could string five 74LS164 eight-bit shift registers end-to-end to form a 40-bit shift register.
You'd need only two output pins to clock 40 bits into the shift register.
What your program would do is formulate a 40-bit data string (five bytes).· The string would consist of 20 dibits.· Each dibit would be formulated to set that particular 74LS125A output High, Low, or Open.· Shift in the 40 bits and your LEDs are lit, or dark, depending on the way they're connected.
If the LEDs are connected (multiplexed) in such a way that you need fewer than 20 High/Low/Open lines (sounds like it, but your exposition is a little unclear), then of course the shift register could be shorter than 40 bits.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
You may be able to use a combination of the tri-state (74LS125A) and the 74HC595 if your LED's can withstand a reverse bias of 5 volts and you have pins that are common anode. You would drive the common anodes with the '595, latching the outputs as needed, and drive the devices requiring the tri-state with the '125.
Post if you have any questions and have fun!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Craig Eid
www.TriadRD.com
http://members.ziggo.nl/electro1/avr/kitt.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!