I'm new to digital electronics and I want to simulate in ltspice a circuit which contains a couple of 74LS04 inverters. What represents the "Test conditions" under the switching characteristics in the datasheet? All I have understood so far is that this inverter (being a non-ideal one) has propagation times. What are all the differences from the ideal inverter? What I have to modify in ltspice in order to simulate this inverter?

You can find the datasheet here: http://www.ti.com/lit/ds/symlink/sn74ls04.pdf

Thanks for help!

  • \$\begingroup\$ "Test conditions" is simply what the name says: the conditions under which the IC was tested when measuring the characteristics mentioned in the datasheet. Rl means Rload or a load resistor (to ground) at the output. Cl means a load capacitor. \$\endgroup\$ – Bimpelrekkie Apr 4 '16 at 13:50
  • \$\begingroup\$ Do you mean something like this? imgur.com/se1af0a \$\endgroup\$ – SebiSebi Apr 4 '16 at 14:04
  • \$\begingroup\$ Not exactly, in your example there's only a resistor to ground at the output. In the datasheet's test there is also a capacitor (which is more important as it determines part of the delay of the gate). \$\endgroup\$ – Bimpelrekkie Apr 4 '16 at 14:36

Place the inverter (from the digital tree)

Right click on the device to bring up the parameters window:

LTSpice Inverter with parameters

Double click on the Value line to edit the contents. I have done that for you in this case as the td value is somewhat undocumented.

The td value is the propagation delay, Vhigh is the power (5V for your device) and Vref is the switching threshold (set to the usual 1.4V at room temperature for TTL). If Vref is omitted, it is calculated as (Vhigh - Vlow) / 2

Vlow defaults to 0V.

There are other parameters you can set - see the LTSpice help.


As I can only set one delay time, I took the longest (they are only 1 nsec different anyway)

The TTL threshold is somewhere between 0.8V and 2.0V and typically ( at room temperature) is two diode drops above ground (so 1.4V).

The rise and fall times default to 0, but you can add tr= and tf= using the same syntax as td.

  • \$\begingroup\$ In the datasheet there are 2 values for the propagation times: $$T_{pLH} = 9ns$$ and $$T_{pHL} = 10ns$$ so I guess that td is correct set. Why is the threshold set at 1.4V? It does not depend on the information from the datasheet, such as HIGH Level Input Voltage or LOW Level Input Voltage? \$\endgroup\$ – SebiSebi Apr 4 '16 at 14:07
  • \$\begingroup\$ Fall time and rise time are 0? Why? \$\endgroup\$ – SebiSebi Apr 4 '16 at 14:19
  • \$\begingroup\$ Why is the threshold set at 1.4V? You can set it so 1.5 V, see page 8 of the datasheet. But maybe in a datasheet of a different manufacturer of the 74LS04, it might be 1.4 V. The exact value does not matter much. \$\endgroup\$ – Bimpelrekkie Apr 4 '16 at 14:35
  • \$\begingroup\$ Whether you need external diodes is application dependent. \$\endgroup\$ – Peter Smith Apr 4 '16 at 16:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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