Current limiting resistor for led on 7408 gate output

Click For Summary

Discussion Overview

The discussion revolves around the implementation of LEDs as indicators in a 2 to 4 decoder circuit using 7408 AND gates. Participants explore the appropriate configuration for current limiting resistors, the output capabilities of the 7408 gates, and the implications of using inverters for achieving active high outputs.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • Some participants suggest placing a current limiting resistor in series with the LED to ground, while others propose connecting the resistor and LED from the gate output to Vcc.
  • Concerns are raised about the 7408 gate's ability to provide 30mA for the LED, with suggestions to use an NPN transistor to drive the LED instead.
  • Another viewpoint recommends selecting a TTL logic gate that allows the LED to consume around 5 to 10mA to avoid using a transistor.
  • Participants discuss the sourcing and sinking capabilities of standard 7400 series gates, noting that they can both source and sink current unless they are specifically open collector/draintype models.
  • There is a mention of the 7408 having a totem pole output, which provides both active pull-up and pull-down capabilities, but with limited voltage levels for TTL outputs.
  • One participant questions the necessity of an inverter for achieving active high outputs, suggesting that it may not be needed if using higher-sourcing logic gates.
  • Another participant clarifies that if the goal is to sink current while having the LED light up when the output is high, an inverter would be necessary.
  • Further investigation reveals that the LED will draw 10mA at 2V, prompting additional considerations for the circuit design.

Areas of Agreement / Disagreement

Participants express differing views on the appropriate configuration for driving LEDs with 7408 gates, with no consensus reached on the best approach. There are multiple competing perspectives regarding the use of transistors, the necessity of inverters, and the current capabilities of the gates.

Contextual Notes

Participants note limitations in the output current capabilities of the 7408 and other TTL gates, as well as the importance of checking specific datasheets for accurate specifications. The discussion also highlights the need for careful consideration of the LED's current draw in relation to the gate's output characteristics.

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.
 

Similar threads

Replies
80
Views
5K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 49 ·
2
Replies
49
Views
5K
Replies
9
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K