Electrical – Can every logic ic output be connected directly to ground or Vcc in any case

inputintegrated-circuitoutput

One day, someone here, I forgot who, wrote: "On modern ic's, every input and output pin can be connected directly to either ground or Vcc." Talking about ologic ic's.
Is it true? And is true all the time?

I read also many comments recommending not to do that and always add a resistor of several KOhms.
Adding a resistor protects the pin even when technically it's allowed to do so. But is adding a resistor at every pin permanently connected to ground or Vcc worth it? What would be the level of protection considering that neither ground or Vcc has a resistor? Advantages?

Connecting an output to a low impedance circuit to ground or directly to ground will make the pin transfer maximum current when it turns high. Can it be bad for the ic?
And similarly, can it be bad when an output is low while connected to a quasi-infinite source of current?

(This question does not qpply to open-drain pin, which de facto require a pull-up resistor.)

Best Answer

Logic inputs and outputs are different. Different families of logic IC (TTL, CMOS etc) behave differently. The manufacturers and commercial users anticipate things that hobby users don't usually. With almost every do/don't statement, there may be some exceptions that do not apply to hobby users.

1) Don't let CMOS inputs float, tie them to a logic level, another output, a rail either directly or through a pullup/pulldown resistor.

Why? CMOS inputs are high impedance, and are not expected to sit at a known logic level (like TTL does). Power consumption is vanishingly small when the input is at good logic level, and may be so high at mid rail that the IC overheats.

Why do people use a resistor to an input when that 'wastes' a component? Testing and modification. On board test programs are often generated automatically, and require every pin of every IC to be driveable when the board is put into a 'bed of nails' fixture. If you need to modify the function, then a presently unused pin is easier to use if it comes to a resistor terminal than if it's nailed to the ground plane under the IC. For both reasons, some commercial users have a rule that no IC pin ever goes directly to rail or ground.

2) Don't take any outputs to rail or ground. The resulting short circuit output current will almost surely eventually destroy the IC through heat or electromigration. If you're driving a load like a LED, ensure the maximum output current is within the continuous output current rating of the pin, which will be much lower than the short circuit current.

Why do ICs have any form of output current limiting and a short circuit current specification? Testing. When you're testing a board manually and you carelessly trail the ground clip of your 'scope probe across an output, even though it's your fault, if the board stops working, you're going to stop using that brand of impossible-to-work-with fragile IC. It's in the manufacturers interest to have their ICs survive brief foreseeable accidents.

When you're testing a board automatically, remember that we want every input to be driveable. Often inputs are connected directly to outputs. I used to work for a company that made board testers, and one of the most controversial methods of dealing with interconnected components was 'back driving', where the tester forced a node to a logic state to test the following IC, hopefully without destroying the IC driving that node.

3) Don't connect TTL inputs directly to rail.

Why? Most 5 V TTL families have an absolute maximum voltage of 7 V on the supply, but only 5.5 V on the inputs. It would be a shame to have an otherwise survivable 6.9 V surge across the power rail destroy ICs through lack of fault current limiting resistors on their inputs.