IC to convert 3 bit to 7 led output

Thread Starter

SimonKenoby

Joined Apr 26, 2016
3
Hello everyone, I'm new to this forum and I really need help :p after a few days of searching I can't manage to find the IC I need.
I have a project with a CPLD, but due to the lack of I/Os I can't do this in an easy way. So my problem is that I have 3 bits representing the number of led powered and I need an IC to convert this number in real led powered. For exemple if I have 000 no led is on, if I have 001 only 1, 010 -> 2 led and so on. I hope I was clear but I'm not really good in English :p

Tanks you.

EDIT: The truth table should look like my attachment.
 

Attachments

Thread Starter

SimonKenoby

Joined Apr 26, 2016
3
Tanks for you fast reply, but there is something that I don't understand, the datasheet says that they are mutually exclusive outputs and what I need is to have the "smaller" output to be high too. How can I acheive that?
 

Bernard

Joined Aug 7, 2008
5,606
I can not bring up your attachment. Might try a 74AC138 or 74HC138, 3 line to 1 of 8 decoder. Selected output will be low with about 8 mA drive with Vdd of 6 V.
 

AnalogKid

Joined Aug 1, 2013
8,534
What you are searching for is a bar graph type display rather than a 3-to-8 decoder display. There is no single logic chip I know of that will do this. One option is to program a 14 or 16 pin PIC to be a custom logic device; after all, that's what it was invented to do. Did you free up 4 more I/O lines?

ak
 

GopherT

Joined Nov 23, 2012
8,012
I suppose you could use an R-2R resistor ladder as an Digital To analog converter then send that analog signal to an LM3914. Set the reference voltage to the LM3914 25% higher than the max voltage of the Resistor ladder max.

The LM3914 is a bar graph display driver that can drive up to 10 LEDs. That is why you need the reference 25% higher than your "DAC". So it only drives 8.
 
If you went with the 1-8 mentioned above you could just use diodes to get a bar from a mutually exclusive output, of course you would need to buffer the output but a line driver could do that... ULN2003A

output 1 drives led 1, output drives led 1 & 2 ..... output 8 drives all 8

That said I agree that a small uP would probably be easier.
 

Bernard

Joined Aug 7, 2008
5,606
I thought this was a dead post but as the truth table finally came up will just add 2 cents on post # 8 by adding some ORs to the 74HC138.Hundred LED\'s 00000.png
This was used with 4017, active high outputs so with 138, active low outputs, would need some inverters.
Might investigate 74HC259, 8 bit Addressable Latch / 3-to- 8 Line Decoder. Selected outputs high
 
Last edited:
Top