TTL Logic

Transistor-Transistor Logic — the dominant gate family of the 1970s–1990s, still widely used today, with predictable electrical characteristics and a rich IC ecosystem.

Why This Matters

TTL (Transistor-Transistor Logic) defined the landscape of digital electronics for two decades. The 74xx series of TTL ICs — quad gates, flip-flops, counters, shift registers — was produced by every major semiconductor manufacturer and became the default toolkit for digital designers. Billions of 7400, 7402, 7474, 74163 ICs were manufactured and deployed in systems ranging from calculators to mainframes.

TTL is still relevant today. New-old-stock and current-production TTL ICs are available, well-documented, and extremely reliable. The electrical characteristics are well understood, the ICs are tolerant of abuse, and the 74xx logic numbering system remains a common reference even for modern CMOS equivalents (74HC, 74HCT, 74ACT).

For building computing infrastructure from scratch, TTL provides a rich library of functional building blocks — much richer than what can be quickly fabricated from discrete components.

TTL Electrical Characteristics

Standard TTL (74xx series) operates at +5V ±0.25V:

ParameterValue
VCC4.75–5.25V
Logic HIGH output (VOH min)2.4V
Logic LOW output (VOL max)0.4V
Logic HIGH input threshold (VIH min)2.0V
Logic LOW input threshold (VIL max)0.8V
Noise margin HIGH (NMH)0.4V
Noise margin LOW (NML)0.4V
Propagation delay (typical)9 ns
Output current sink (IOL max)16 mA
Output current source (IOH max)-400 µA

Key observations:

  1. TTL sinks much more current than it sources — it is a strong pull-down but a weak pull-up. This asymmetry drives the convention that TTL outputs drive LEDs to GND (LED pulls from VCC through resistor to TTL output), not to VCC.
  2. Noise margins (0.4V each) are modest. TTL is not suitable for very noisy industrial environments without protection.
  3. Standard TTL draws significant current and generates heat. A system with 100 ICs may draw 2–3 A.

TTL Subfamilies

The original 74xx series evolved into several subfamilies:

74S (Schottky TTL): faster (3 ns) but higher power. Schottky diodes prevent transistors from deep saturation, reducing storage delay.

74LS (Low-power Schottky TTL): lower power than 74S, ~10 mW/gate, 9 ns typical propagation. Became the standard for most applications through the 1980s–90s.

74ALS (Advanced Low-power Schottky): further reduced power (~1 mW/gate) and faster (~4 ns). Largely replaced 74LS for new designs.

74F (Fast TTL): ~3 ns propagation, higher power. Used in high-speed logic.

74HC (High-speed CMOS): CMOS equivalent of TTL pinout and function numbers. 5V supply, near-zero static power. Logic levels are CMOS, not TTL-compatible inputs.

74HCT (High-speed CMOS, TTL-input compatible): same as 74HC but input thresholds match TTL. Allows direct replacement of TTL with CMOS for power reduction without redesign.

For new builds, 74HCT is the recommended choice: TTL pinout compatibility, CMOS power consumption, TTL-compatible input thresholds.

The TTL NAND Gate (Internal Operation)

A standard TTL NAND gate (74xx00) uses:

  1. Multi-emitter transistor (Q1): the input stage. Each emitter is one input. When any input is LOW, Q1 is in reverse-active mode, starving the base of Q2.
  2. Phase splitter transistor (Q2): drives the output stage. When Q1 saturates Q2, the output is driven LOW. When Q1 is in reverse-active mode, Q2 is off and the output is driven HIGH.
  3. Totem-pole output (Q3, Q4, D1): Q3 pulls output HIGH actively through Q3 and D1. Q4 pulls output LOW. Only one conducts at a time (active pull-up is the TTL innovation over DTL’s passive pull-up).

The totem-pole output gives TTL its fast switching: both transitions (0→1 and 1→0) are actively driven, unlike DTL which only drives LOW and relies on a passive pull-up resistor to transition HIGH.

Power Supply and Decoupling

TTL is sensitive to power supply noise. When a TTL output switches, the totem-pole stage briefly connects VCC to GND through the output transistors (shoot-through current), causing a current spike of 20–50 mA lasting 2–5 ns. With many gates switching simultaneously, these spikes add up.

Decoupling capacitors are mandatory:

  • 0.1 µF ceramic capacitor (low ESR) between VCC and GND at every IC, as close as possible to the power pins.
  • 10 µF electrolytic per 10 ICs for bulk charge storage.

Omitting decoupling capacitors is the single most common cause of TTL circuit malfunction. Symptoms include random bit errors, intermittent oscillation, and circuits that work at slow speeds but fail at fast speeds.

Fan-Out

74LS TTL fan-out: one 74LS output can drive up to 20 74LS inputs. This high fan-out makes it easy to build large systems without buffers.

When mixing families, calculate current carefully:

  • 74LS output LOW sink current (IOL): 8 mA max
  • 74LS input LOW current (IIL): 0.4 mA max
  • Fan-out = IOL / IIL = 8 / 0.4 = 20

When driving LEDs directly from TTL: connect LED from VCC (through 330 Ω) to the TTL output. When output is LOW (0.4V), LED current = (5 - 0.4 - Vf) / 330 = (5 - 0.4 - 2.0) / 330 ≈ 7.9 mA. Keep total output sink current below 16 mA.

Common 74xx ICs to Know

ICFunctionDescription
7400 / 74LS00Quad 2-input NANDUniversal building block
7402Quad 2-input NORUniversal (NOR-based)
7404Hex inverterSix NOT gates
7408Quad 2-input AND
7432Quad 2-input OR
7474Dual D flip-flopWith preset/clear
741634-bit synchronous counterWith load/clear
741944-bit universal shift registerPIPO/SIPO/PISO
741383-to-8 decoder/demuxActive-low outputs
741518-to-1 multiplexerWith enable
7447BCD-to-7-segment decoderFor numeric displays