Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I have some LEDs (not the high power type) being driven by a 74HC541, one LED per output, with no other load. I've noticed a tendency for people to use the 74HC540 instead (inverting buffer). I've gone through the datasheets and both ICs can sink or source 25mA per output pin (which is fine).

There are obviously four permutations here: inverting/non-inverting, with LEDs connected to Vcc or Ground. It looks to me like these permutations are pairwise equivalent.

Other than for logic reasons, why would you choose an inverting buffer over a non-inverting one, or vice versa?

share|improve this question

1 Answer

up vote 1 down vote accepted

If you intend to run the LED from the same supply as the logic gate, and that gate can source and sink symmetrically, then it doesn't matter. Even though a logic gate may be rated for the same source and sink current, it is still possible that the low side driver has a little lower resistance. The total Vdd and Vss currents the device is rated for may also not be symmetric, even if individual pins are.

In general, it is more likely that low side drivers have a little less resistance and that the total Vss current rating is a little higher. Also, using the low side driver works with open drain outputs. This is why people are used to wiring LEDs between the output and Vdd. This means you want a inversion in there for a logic high to cause the LED to light. Of course if this is all coming from a microcontroller, which it almost always is these days, then digital signal polarity is irrelevant since it can be handled in the firmware either way.

As long as you are not violating any spec in the datasheet, go ahead and wire up the LED whatever way is most convenient for you. You could let the final board routing decide.

share|improve this answer
Thanks, that answers my question. My routing constraint isn't the LEDs, and really, it's not the buffers either ('540 and '541 have identical pinouts, after all). I was just wondering if there's a good engineering (not logistical) reason for choosing one over the other, when you can go both ways. Admittedly wiring LEDs between Vdd and buffer output seems a bit more ‘right’ to me. I'm just trying to save on the number of different parts (it calls for lots of '541s, and no '540s). – Alexios Jan 24 '12 at 18:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.