Chapter 31 of 32

Logic Families: TTL & CMOS

So far a logic gate has been a perfect symbol: 0 or 1 in, 0 or 1 out, instantly. Real gates are made of transistors, and "0" and "1" are really voltage ranges. How much noise can a gate tolerate before a 0 is mistaken for a 1? How many other gates can one output drive? How fast does it switch, and how much power does it burn? The answers depend on the logic family, the circuit technology the gates are built with.

This chapter explains the electrical parameters that every data sheet lists, then looks at the two families every student must know: TTL (transistor-transistor logic, built from bipolar transistors) and CMOS (complementary MOS, built from MOSFETs, and used in practically every modern chip). We finish with how to connect one family to another. The numbers quoted come from current Texas Instruments data sheets for the SN7400, SN74LS00 and SN74HC00 quad NAND gates.


What Is a Logic Family?

Logic family: a group of digital ICs built with the same circuit technology, so that they share the same supply voltage, logic levels, input/output currents and similar speed and power, and can be connected to each other directly.

The main families in history and in use today:

FamilyDevices usedStatus
RTL, DTLResistors/diodes + bipolar transistorsHistorical (1960s)
TTL (74, 74LS, 74S, 74ALS, 74AS, 74F)Bipolar junction transistorsLegacy; still found in labs, textbooks and old equipment
ECLBipolar transistors that never saturateNiche, very high speed
CMOS (4000, 74HC/HCT, 74AC, 74LVC, ...)Complementary n-channel and p-channel MOSFETsDominant: microprocessors, memories, FPGAs, almost all modern ICs

The Parameters on Every Data Sheet

Voltage Levels

  • VIH(min): the lowest input voltage that is guaranteed to be read as 1.

  • VIL(max): the highest input voltage guaranteed to be read as 0.

  • VOH(min): the lowest voltage a gate outputs for a 1 (under rated load).

  • VOL(max): the highest voltage a gate outputs for a 0 (under rated load).

Inputs between VIL(max) and VIH(min) are in the indeterminate region: the gate may read either value, and should never be left there.

Noise Margin

Wires pick up noise. If a driving gate outputs its worst-case 1 (VOH(min)) and noise pulls the voltage down, the receiver still reads 1 as long as the voltage stays above VIH(min). The gap is the noise margin.

High-level noise margin: NMH = VOH(min) − VIH(min). Low-level noise margin: NML = VIL(max) − VOL(max).

  DRIVER OUTPUT levels                    RECEIVER INPUT levels

  ──── VCC                                ──── VCC
       guaranteed "1" output                   read as "1"
  ──── VOH(min) ───┐
                   │  NM_H
                   └─────────────────────  ──── VIH(min)
                                               indeterminate (forbidden)
                   ┌─────────────────────  ──── VIL(max)
                   │  NM_L
  ──── VOL(max) ───┘
       guaranteed "0" output                   read as "0"
  ──── 0 V                                ──── 0 V

Currents and Fan-Out

  • IIH, IIL: current an input draws in the high / low state. Data sheets show currents flowing out of a pin as negative, so IIL of a TTL input is written as −1.6 mA.

  • IOH, IOL: the maximum current an output can supply (source) in the high state / absorb (sink) in the low state while still meeting VOH(min) / VOL(max).

Fan-out: the maximum number of standard inputs one output can drive while keeping valid logic levels. Fan-out = the smaller of IOL / IIL and IOH / IIH (using magnitudes).

Speed and Power

  • Propagation delay: tPLH (output going low to high) and tPHL (high to low), measured between the 50% points (or 1.5 V for TTL) of input and output. Average tpd = (tPLH + tPHL) / 2.

  • Power dissipation per gate, usually averaged over the high and low output states: P = VCC × (ICCH + ICCL) / 2, divided by the number of gates in the package.

  • Speed-power product = tpd × P, in picojoules. It measures the energy cost of switching. Lower is better: it is easy to be fast by burning power, or frugal by being slow; a good family is both.


TTL: Transistor-Transistor Logic

TTL appeared in the 1960s and the 7400 series became the industry standard for two decades. All TTL runs from VCC = 5 V ± 5% (4.75 V to 5.25 V for the commercial 74 series).

How a TTL NAND Gate Works

                                                         +5 V
                                                           │
 A ──┐                                              +------┴------+
     ├──► [ Q1: multi-emitter ] ──► [ Q2: phase ] ─►| Q3 + diode  |  pull-up
 B ──┘       input stage              splitter      +------┬------+
                                         │                 ├────────► Y
                                         │          +------┴------+
                                         └─────────►|     Q4      |  pull-down
                                                    +------┬------+
                                                           │
                                                          GND

   Q2 OFF → Q3 ON,  Q4 OFF → Y = 1        Q2 ON → Q3 OFF, Q4 ON → Y = 0
   (Q3 above Q4 = the "totem-pole" output; resistors omitted for clarity)
  1. Any input LOW: current flows out through that emitter of Q1, so Q2 gets no base current and is off. Q4 is off, Q3 is on and pulls the output HIGH. (So a low TTL input sources current, which is why IIL is −1.6 mA: the driver must sink it.)

  2. All inputs HIGH: Q1's base current goes forward into Q2's base. Q2 turns on, which turns Q4 on and Q3 off. The output is pulled LOW.

So the output is low only when all inputs are high: a NAND. The pair Q3/Q4, one above the other, is called a totem-pole output. It gives low output resistance in both states, so the output can charge and discharge load capacitance quickly.

Practical consequences students are asked about:

  • A floating TTL input behaves as HIGH (no current can flow out of the emitter). But floating inputs pick up noise, so unused inputs should be tied to VCC through a resistor or to a used input.

  • Current spikes. During switching, Q3 and Q4 are briefly on together, drawing a spike of supply current. That is why every TTL chip needs a decoupling capacitor (typically 0.1 µF) close to its supply pins.

  • Never tie two totem-pole outputs together. If one drives high and the other low, a large current flows through Q3 of one and Q4 of the other.

Open-Collector and Tri-State Outputs

  • Open-collector (OC): Q3 is removed; the output can only pull low. An external pull-up resistor provides the high level. Several OC outputs can share one pull-up: the line is high only if all outputs are "off" (high), which gives a wired-AND. Used for shared interrupt or bus lines and for driving LEDs or relays from a different supply. (The CMOS equivalent is open-drain, used for example on I²C bus lines.)

  • Tri-state (three-state): an enable input can switch both Q3 and Q4 off, making the output high-impedance (Hi-Z), effectively disconnected. Many tri-state outputs can share one bus wire as long as only one is enabled at a time. This is how data buses work.

TTL Sub-Families

Standard TTL saturates its transistors, and a saturated transistor takes time to come out of saturation. Schottky TTL adds a Schottky diode across each transistor's base-collector junction to prevent deep saturation, making it much faster. Low-power versions use larger resistors to reduce current.

Parameter (74 series)Standard 7474LS (low-power Schottky)74S (Schottky)
VIH(min) / VIL(max)2.0 V / 0.8 V2.0 V / 0.8 V2.0 V / 0.8 V
VOH(min)2.4 V2.7 V (classic spec; current TI sheet guarantees 2.5 V)2.7 V (2.5 V on current TI sheet)
VOL(max)0.4 V at 16 mA0.5 V at 8 mA (0.4 V at 4 mA)0.5 V at 20 mA
IIH / IIL40 µA / −1.6 mA20 µA / −0.4 mA50 µA / −2 mA
IOH / IOL−0.4 mA / 16 mA−0.4 mA / 8 mA−1 mA / 20 mA
Typical tpdabout 9 ns (tPLH 11, tPHL 7)about 9.5 ns (9 and 10)about 3 ns
Typical power per gateabout 10 mWabout 2 mWabout 19 mW
Speed-power productabout 90-100 pJabout 19 pJabout 57 pJ

The power figures come from the data-sheet supply currents. For example, the 7400 package draws typically ICCH = 4 mA and ICCL = 12 mA, average 8 mA × 5 V = 40 mW for 4 gates, so 10 mW per gate. For the 74LS00: (0.8 + 2.4) / 2 = 1.6 mA × 5 V = 8 mW / 4 = 2 mW per gate. The later 74ALS, 74AS and 74F families improved the speed-power product further.

Worked Example: TTL Noise Margins and Fan-Out

Standard 74:

  • NMH = 2.4 − 2.0 = 0.4 V; NML = 0.8 − 0.4 = 0.4 V.

  • Fan-out low: 16 mA / 1.6 mA = 10. Fan-out high: 400 µA / 40 µA = 10. Fan-out = 10.

74LS driving 74LS (using VOH(min) = 2.7 V):

  • NMH = 2.7 − 2.0 = 0.7 V; NML = 0.8 − 0.5 = 0.3 V.

  • Fan-out low: 8 mA / 0.4 mA = 20. Fan-out high: 400 µA / 20 µA = 20. Fan-out = 20.

Mixed: 74LS driving standard 74 inputs: low: 8 mA / 1.6 mA = 5; high: 400 µA / 40 µA = 10. Fan-out = 5, limited by the low state. Always take the smaller value.


CMOS: Complementary MOS

CMOS uses pairs of MOSFETs: a p-channel (PMOS) transistor that conducts when its gate is low, and an n-channel (NMOS) transistor that conducts when its gate is high.

The CMOS Inverter

            VDD
             │
          ┌──┴──┐
    ┌────o│ PMOS│   on when input = 0
    │     └──┬──┘
 A ─┤        ├─────► Y = A̅
    │     ┌──┴──┐
    └─────│ NMOS│   on when input = 1
          └──┬──┘
             │
            GND
  • A = 0: PMOS on, NMOS off. Y is connected to VDD: Y = 1.

  • A = 1: PMOS off, NMOS on. Y is connected to ground: Y = 0.

In either steady state one transistor is off, so there is no path from VDD to ground. Static current is only tiny leakage: the SN74HC00 data sheet gives a maximum supply current of 2 µA for the whole package at 25 °C (VCC = 6 V). And since the output connects fully to a rail, VOH is almost VDD and VOL almost 0 V when driving other CMOS inputs.

CMOS NAND and NOR

The rule: the NMOS pull-down network conducts exactly when the output should be 0, and the PMOS pull-up network is its dual (series ↔ parallel).

GateNMOS pull-downPMOS pull-upTransistors (2 inputs)
NANDTwo in series (output 0 only if A = 1 AND B = 1)Two in parallel4
NORTwo in parallel (output 0 if A = 1 OR B = 1)Two in series4

CMOS naturally produces inverting gates (NOT, NAND, NOR). An AND gate is a NAND followed by an inverter: 6 transistors. NAND is usually preferred to NOR because holes in PMOS are slower than electrons in NMOS, and NAND puts the slow PMOS transistors in parallel rather than in series.

Where CMOS Power Goes

CMOS burns power mainly when it switches. Each time an output goes 0 → 1, the load capacitance C is charged from VDD, and each 1 → 0 discharges it to ground:

Pdynamic = C × VDD2 × f (for an output switching up and down f times per second; multiply by an activity factor α if only a fraction of nodes switch each cycle).

Example. One 74HC00 gate at VCC = 5 V switching at f = 1 MHz. Its power-dissipation capacitance is Cpd = 20 pF (data sheet), and it drives a load of CL = 50 pF. P = (20 + 50) pF × (5 V)2 × 1 MHz = 70 × 10−12 × 25 × 106 = 1.75 mW. At 10 MHz it would be 17.5 mW, more than a standard TTL gate. At low frequency it is almost zero.

The VDD2 term explains a big trend: dropping the supply from 5 V to 3.3 V cuts dynamic power to (3.3 / 5)2 ≈ 44%, and to 1.8 V cuts it to about 13%. That is why modern logic runs at 3.3 V, 1.8 V or lower, and processor cores at around 1 V or below.

CMOS Sub-Families and Levels

Parameter74HC at VCC = 4.5 V74HCT at 5 V
Supply range2 V to 6 V4.5 V to 5.5 V
VIH(min) / VIL(max)3.15 V / 1.35 V (scale with VCC)2.0 V / 0.8 V (TTL-compatible inputs)
VOH(min)4.4 V at −20 µA; 3.98 V at −4 mAsimilar to HC
VOL(max)0.1 V at 20 µA; 0.26 V at 4 mAsimilar to HC
Input current±0.1 µA max at 25 °C (essentially zero)essentially zero
Typical tpd (NAND)9 ns (18 ns max at 25 °C)comparable

Other CMOS families: the original 4000 series (3 V to 18 V supply, slow), 74AC/ACT (faster, stronger outputs), and low-voltage families such as 74LVC (1.65 V to 3.6 V, with inputs that tolerate 5 V) and 74AUC (down to 0.8 V) used with modern processors and FPGAs.

Worked Example: 74HC Noise Margin and Fan-Out

  • Driving other CMOS inputs (load ≈ 20 µA): NMH = 4.4 − 3.15 = 1.25 V; NML = 1.35 − 0.1 = 1.25 V. About three times TTL's 0.4 V.

  • Fan-out to CMOS inputs is limited by DC current only at a huge number (input current is microamps or less). In practice it is limited by capacitance: each input adds about 3 pF typical (10 pF max), and more capacitance means slower edges. Designers keep CMOS fan-out to a reasonable number for speed, not for correctness.

CMOS Handling Rules

  • Never leave CMOS inputs floating. A floating gate drifts to the middle voltage, turning both transistors partly on; the gate draws current, heats, and may oscillate. Tie unused inputs to VDD or ground.

  • ESD sensitivity. The gate oxide is very thin and can be punctured by static discharge; inputs have protection diodes, but handle chips with care.

  • Latch-up. The structure of CMOS contains a parasitic thyristor (PNPN path). Driving an input above VDD or below ground can trigger it, short-circuiting the supply until power is removed.


TTL vs CMOS vs ECL

PointTTL (74LS)CMOS (74HC)ECL
TransistorsBipolar, saturatingMOSFET pairsBipolar, non-saturating (current switch)
Supply5 V only2 V to 6 VTypically −5.2 V (or positive "PECL")
Static powerAbout 2 mW/gateMicrowatts (leakage)High (tens of mW per gate)
Power vs frequencyMostly constantProportional to fMostly constant
Noise marginNML 0.3 V, NMH 0.7 VAbout 1.25 V at 4.5 V supplySmall (about 0.8 V total logic swing)
Input currentSignificant (−0.4 mA low)Almost zeroSmall
Fan-out20 (LS to LS)Very high (limited by capacitance)High
SpeedAbout 10 nsAbout 9 ns at 4.5 V (newer CMOS far faster)Fastest discrete family (around 1 ns or less)
Integration densityLowVery high (billions of transistors per chip)Low

CMOS won because of its near-zero static power and its scalability: as transistors shrank, CMOS got faster and denser while staying cool enough to pack billions of transistors into one chip. TTL's constant static current made that impossible.


Interfacing TTL and CMOS

Before connecting two families, check both voltage compatibility (VOH ≥ VIH and VOL ≤ VIL) and current compatibility (the driver can supply the inputs' currents).

TTL (74LS) Driving CMOS (74HC at 5 V)

Low level: VOL 0.5 V ≤ VIL 1.35 V, fine. High level: VOH(min) = 2.7 V but 74HC needs VIH ≥ 3.15 V at 4.5 V (3.5 V at 5 V). Not guaranteed! Solutions:

  • Use 74HCT (or ACT) parts, whose VIH(min) is 2.0 V, designed exactly for this.

  • Add a pull-up resistor (a few kΩ) from the TTL output to +5 V, which lifts the high level close to 5 V.

CMOS (74HC) Driving TTL (74LS)

Voltages: VOH = 3.98 V at 4 mA ≥ 2.0 V, and VOL = 0.26 V at 4 mA ≤ 0.8 V: fine. Currents: low state, each LS input sources 0.4 mA and the HC output can sink 4 mA (while keeping VOL ≤ 0.26 V), so fan-out = 4 / 0.4 = 10. High state: 4 mA / 20 µA = 200. Fan-out = 10.

The same thinking applies to modern mixed-voltage systems, such as a 3.3 V microcontroller talking to a 5 V sensor: check levels, and use level shifters or 5 V-tolerant inputs where needed.


Common Mistakes

  • Swapping the noise-margin formula. NMH = VOH(min) − VIH(min); NML = VIL(max) − VOL(max). Output minus input for high; input minus output for low.

  • Computing fan-out from one state only. Compute both high and low ratios and take the smaller.

  • Mixing signs of currents. Negative means current flows out of the pin; use magnitudes in fan-out ratios.

  • Saying CMOS uses no power. Static power is tiny, but dynamic power C·V²·f grows with frequency and can exceed TTL at high speed.

  • Leaving CMOS inputs floating because "TTL floating inputs read as high". That habit damages CMOS circuits.

  • Connecting totem-pole outputs together. Only open-collector/open-drain (wired-AND) or tri-state (one enabled at a time) outputs may share a wire.


GATE and Interview Questions

Q1. A family has VOH(min) = 2.4 V, VOL(max) = 0.4 V, VIH(min) = 2.0 V, VIL(max) = 0.8 V. Find the noise margins.

NMH = 2.4 − 2.0 = 0.4 V, NML = 0.8 − 0.4 = 0.4 V. (These are standard TTL values.)

Q2. A gate has IOL = 8 mA, IOH = −0.4 mA, and drives inputs with IIL = −1.6 mA, IIH = 40 µA. What is the fan-out?

Low: 8 / 1.6 = 5. High: 0.4 / 0.04 = 10. Fan-out = 5.

Q3. A gate has tpd = 4 ns and dissipates 1.2 mW. What is its speed-power product?

4 ns × 1.2 mW = 4.8 pJ.

Q4. A CMOS node with 10 pF total capacitance switches at 50 MHz with VDD = 3.3 V. Find the dynamic power. What if VDD is reduced to 1.8 V?

P = 10 pF × 3.3² × 50 MHz = 10 × 10−12 × 10.89 × 5 × 107 ≈ 5.45 mW. At 1.8 V: 10 × 10−12 × 3.24 × 5 × 107 = 1.62 mW.

Q5. Why does a TTL input left open act as logic 1 while a CMOS input left open is dangerous?

In TTL, a low input must sink current out of Q1's emitter; an open pin cannot, so the transistor behaves as if the input were high. A CMOS input is a MOSFET gate (a capacitor) with no defined DC path; it floats to an unknown voltage, possibly mid-rail, turning both transistors partly on, which wastes current and can cause oscillation.

Q6. What is wired-AND and which output type allows it?

Connecting several open-collector (or open-drain) outputs to one line with a single pull-up resistor. The line is high only if no output pulls it low, so it is the AND of the outputs. Totem-pole outputs must never be connected this way.


Summary

  • A logic family is a set of ICs sharing one circuit technology, supply and logic levels.

  • Key parameters: VIH, VIL, VOH, VOL; noise margins NMH = VOH(min) − VIH(min), NML = VIL(max) − VOL(max); fan-out = min(IOL/IIL, IOH/IIH); tpd; power; speed-power product.

  • TTL: 5 V, multi-emitter input, totem-pole output; standard 74 has 0.4 V noise margins and fan-out 10; 74LS has fan-out 20 and about 2 mW per gate. Open-collector gives wired-AND; tri-state allows buses.

  • CMOS: complementary PMOS pull-up and NMOS pull-down; near-zero static power; dynamic power C·V²·f; rail-to-rail outputs; large noise margins; inputs must never float.

  • ECL is the fastest bipolar family but power-hungry; CMOS dominates modern electronics.

  • Interfacing: 74LS → 74HC needs HCT parts or a pull-up; 74HC → 74LS works with fan-out 10.

  • Next, DAC & ADC connects the digital world to real analog signals.