Current limiting resistor for led on 7408 gate output

AI Thread Summary
For a 2 to 4 decoder using 7408 AND gates, it is recommended to connect the LED with a current limiting resistor from the gate output to Vcc, rather than to ground. The 7408 can source and sink current, but its output may not support the 30mA draw of standard LEDs, which is considered high; thus, using a transistor for driving the LED is suggested for higher current needs. If using a TTL logic gate, the internal pull-up resistor can sometimes suffice for lower current LEDs, but for active high outputs, a higher sourcing solution like CMOS (AC/ACT series) is preferred. An inverter may not be necessary if the output is already configured to be active high, but if current sinking is desired, an inverter would be needed to ensure the LED lights up when the output is high. Overall, careful consideration of the LED specifications and the logic gate's capabilities is essential for proper circuit design.
Ald
Messages
24
Reaction score
1
I am building a 2 to 4 decoder with 7408 And gates and need to put LED's on the output as indicators, active high. 2 questions

1. Would I put a current limiting resistor in series with the LED to ground or put the resistor and LED from the gate output to Vcc?

2. The LED draws 30mA at 2V, would I use the worst case Vo of the gate to calculate the required R value?

Thanks
 
Engineering news on Phys.org
Ald said:
I am building a 2 to 4 decoder with 7408 And gates and need to put LED's on the output as indicators, active high. 2 questions

1. Would I put a current limiting resistor in series with the LED to ground or put the resistor and LED from the gate output to Vcc?

2. The LED draws 30mA at 2V, would I use the worst case Vo of the gate to calculate the required R value?

Thanks

I didn't check, but I don't think you'll get 30mA out of a 7408 gate, especially active high (Ioh at Voh). If you want to keep it active high, put an NPN transistor at each 7408 output, driven by a base resistor, and connect the emitters to GND and the collectors to the LEDs and current-limiting resistors.

BTW, 30mA is a lot for a standard LED. Are these big LEDs?
 
choose a ttl logic gate (IC)
so that LED would consume around 5 to 10mA for a mild glow.
so that you can avoid using a transistor.

74 series can sink current but can't source, it has an open collector configuration.
So have your LED anode connected to Vcc and cathode through a current limiting resistor to the gate pin.
 
Chandra214 said:
choose a ttl logic gate (IC)
so that LED would consume around 5 to 10mA for a mild glow.
so that you can avoid using a transistor.

You could try a AC or ACT family, which is the line of high-speed, high fan-out CMOS logic, say, something like the 74ACT08 from Fairchild Semiconductors: +/- 50mA source/sink on the datasheet (but the output voltage in source mode would be lower than 5V when used in excess of 25 mA).

Chandra214 said:
74 series can sink current but can't source, it has an open collector configuration. So have your LED anode connected to Vcc and cathode through a current limiting resistor to the gate pin.

This is incorrect. Standard 7400s can both source and sink, UNLESS THE MODEL IS EXPLICITLY OPEN COLLECTOR/DRAIN (like, say, the 74*09):
http://en.wikipedia.org/wiki/List_of_7400_series_integrated_circuits

However, you still need to check the datasheet in question to see if the chip can, in fact, sink the desired amount of current.
 
MATLABdude said:
This is incorrect. Standard 7400s can both source and sink, UNLESS THE MODEL IS EXPLICITLY OPEN COLLECTOR/DRAIN (like, say, the 74*09):
http://en.wikipedia.org/wiki/List_of_7400_series_integrated_circuits
The difference is that TTL uses an internal pull up resistor.
The webpage shows the internal TTL circuitry.
Unlike CMOS that uses active pull up.
The internal TTL resistor can provide a sufficient current limit to drive an LED active high without an external resistor.
 
NoTime said:
The difference is that TTL uses an internal pull up resistor.
The webpage shows the internal TTL circuitry.
Unlike CMOS that uses active pull up.
The internal TTL resistor can provide a sufficient current limit to drive an LED active high without an external resistor.

I believe many of these have < 1 mA sourcing capability, depending on how the high side BJT is designed. In that sense, Chandra214 is correct (in that there is very low sourcing capability, if not an actual open-collector arrangement). Nevertheless, most of these problems can be avoided by using CMOS (AC/ACT) instead of TTL.
 
Gosh.

Here I am, looking the TI ttl databook, what do you know?

The 7408 has a totem pole output.

In other words, it has an active pullup and an active pulldown.

For standard ttl, the pullup doesn't pullup very far, 2.4V at 400uA... not much compared with a CMOS 74hc08...

So it's either use the pulldown (16mA max) or drive an external transistor.
 
To confuse matters, it turns out I need to have active high outputs. The 7408 is a nand gate I assume if I put an inverter on the output I will get an active high output. How will the inverter change anything in terms of driving the led's?
 
Ald said:
To confuse matters, it turns out I need to have active high outputs. The 7408 is a nand gate I assume if I put an inverter on the output I will get an active high output. How will the inverter change anything in terms of driving the led's?

No, if you want active high, then (assuming output is connected to a resistor, and then resistor to LED anode, and LED cathode to ground) you do not need an inverter (assuming you go with one of the higher-sourcing solutions presented above).

If, instead, you wish to sink current, but have the LED light up whenever the output is high, and turn off whenever LED is low, you'd need the inverter--which you'd have to select to be able to source enough current!

So, find yourself some nice high-current (AC or ACT) logic?
 
  • #10
I only have available a 7410 Nand (I need 3 inputs) I was going to place a 7404 inverter (all I have available) on the output to get active high output.

I would like the LED to light up when output is High. Circuits are a 2 to 4 and 3 to 8 decoder.

How will the inverter change anything in terms of driving the led's?

How further investigation the LED will draw 10mA at 2Vs.
 
Back
Top