Current limiting resistor for led on 7408 gate output

In summary: 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).
  • #1
Ald
25
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
  • #2
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?
 
  • #3
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.
 
  • #4
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.
 
  • #5
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.
 
  • #6
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.
 
  • #7
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.
 
  • #8
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?
 
  • #9
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.
 

1. What is a current limiting resistor?

A current limiting resistor is a type of resistor that is used to control the amount of current flowing through a circuit. It is typically placed in series with a component, such as an LED, to prevent it from being damaged by too much current.

2. Why is a current limiting resistor necessary for an LED on a 7408 gate output?

An LED is a type of diode that only allows current to flow in one direction. When connected to a 7408 gate output, the voltage is typically too high for the LED, which can cause it to burn out. Therefore, a current limiting resistor is necessary to reduce the voltage and prevent damage to the LED.

3. How do you calculate the value of a current limiting resistor for an LED on a 7408 gate output?

The value of a current limiting resistor can be calculated using Ohm's law (R=V/I), where R is resistance, V is voltage, and I is current. The desired current for an LED is typically around 20mA, so the resistor value can be calculated by dividing the voltage drop across the LED by 0.02 (20mA).

4. Can I use any type of resistor as a current limiting resistor for an LED on a 7408 gate output?

No, it is important to use a resistor with the appropriate power rating for the circuit. A resistor with too low of a power rating may overheat and fail, while a resistor with too high of a power rating may be too large to fit in the circuit. It is recommended to use a carbon or metal film resistor with a power rating of at least 0.25 watts.

5. Is it possible to connect multiple LEDs to a single current limiting resistor on a 7408 gate output?

Yes, it is possible to connect multiple LEDs in parallel to a single current limiting resistor. However, the total current through the resistor will be divided among the LEDs, so the brightness of each LED will be reduced. It is important to calculate the appropriate resistor value for the total current needed for all the LEDs.

Similar threads

Replies
80
Views
3K
Replies
15
Views
832
  • Electrical Engineering
Replies
2
Views
1K
  • Electrical Engineering
2
Replies
49
Views
2K
Replies
2
Views
1K
Replies
9
Views
4K
  • Electrical Engineering
Replies
8
Views
2K
  • Electrical Engineering
2
Replies
41
Views
4K
Replies
3
Views
2K
Replies
19
Views
2K
Back
Top