RETRO ICs / BUSES

SN74LS126AN: four 3-state buffers on one shared bus

An ordinary logic output always drives a high or a low level. A 3-state buffer adds a third possibility: electrically disconnected. That is what lets several chips take turns on the same wire.

What the third state really is

Each of the four channels in the SN74LS126A has its own data input (nA), its own output (nY) and its own output-control pin (nG). The buffer is non-inverting: when it is enabled, Y simply follows A. When it is disabled, Y is neither high nor low but high-impedance – it acts, in the data sheet’s words, “neither as a significant load nor as a driver”.

High impedance is not a logic level. A disabled output does not pull the wire anywhere, so if no other device is driving, the line floats and the receiver reads nothing meaningful. This is also what separates a 3-state output from an open-drain output such as the SN74LVC07A, which can only pull down and needs an external pull-up resistor to produce a high level.

Watch the enable polarity. On the ’126A the output is enabled when G is high and disabled when G is low. The otherwise identical ’125A is the opposite: it is disabled when its control pin is high. Same package, same pin numbers, opposite polarity – read the marking on the part you actually hold.

Two SN74LS126A channels on one shared line: channel 1 enabled and driving, channel 2 disabled and high-impedance, both feeding a receiver.
Signal principle, not a finished schematic. Only one buffer drives the shared line at a time.

One complete hand-over, step by step

Wire VCC (pin 14) to 5 V and GND (pin 7) to the common ground. Source A goes to 1A (pin 2) and its output 1Y (pin 3) to the shared line; source B goes to 2A (pin 5) and its output 2Y (pin 6) to the same line. The receiver listens on that line. 1G is pin 1 and 2G is pin 4.

  1. Source A speaks. Hold 1G high and 2G low. Channel 1 drives the line with whatever 1A presents; channel 2 is disabled and contributes only its leakage, specified as at most ±20 µA. The receiver sees source A.
  2. Release before you grab. Take 1G low first. Channel 1 lets go of the line within the disable time (at most 25 ns for either direction under the data sheet’s test load). Only then raise 2G. Channel 2 takes over within the enable time (at most 25 ns to a high level, 35 ns to a low level). The short gap in which nobody drives is deliberate.
  3. Source B speaks. With 2G high and 1G low, the receiver now sees source B, and the propagation delay from 2A to 2Y is typically 8–9 ns.

If the receiver must read a defined level even while no buffer is enabled, add a pull-up or pull-down resistor on the line. A floating TTL input is not reliably high.

Never enable two buffers that carry different data. Both outputs then fight over the line; the current is limited only by the outputs themselves (the data sheet rates a shorted output at −40 to −225 mA, one output at a time, for at most one second), the voltage on the line is meaningless and the chip heats up. The clean way to guarantee that only one enable is active is a decoder: see the 74HC138 address-decoding guide or the MC14515B 4-to-16 decoder guide.

The numbers that matter

SN74LS126A (commercial range)Value
Supply voltage4.75–5.25 V, 0–70 °C
Input thresholdsHigh ≥ 2 V, low ≤ 0.8 V
Output low≤ 0.4 V at 12 mA; ≤ 0.5 V at 24 mA
Output high≥ 2.4 V at −2.6 mA
Disabled output leakage±20 µA
Supply current12 mA typical, 22 mA maximum
A → Y delay9 ns typical / 15 ns max (low→high), 8 ns typical / 18 ns max (high→low)
Enable / disableEnable ≤ 25 ns (high) and ≤ 35 ns (low); disable ≤ 25 ns

Switching figures are at 5 V and 25 °C with the data sheet’s test load (RL = 667 Ω, CL = 45 pF; 5 pF for the disable times). Your wiring capacitance will differ.

Driving the right kind of input

The guaranteed high output level is only 2.4 V. That is comfortable for 74LS, 74HCT and other inputs with TTL thresholds, which accept 2 V as a high. It is not guaranteed for plain 74HC CMOS inputs, which typically need about 3.5 V at a 5 V supply. Choose a TTL-threshold receiver, or pull the line up to 5 V through a resistor. Do not leave unused A or G inputs floating – tie them to a valid level – and fit a 100 nF decoupling capacitor close to VCC.

Four individually controlled channels is the point of this part. For a whole 8-bit bus in one direction, an octal buffer such as the SN74HCT541 is a better fit; for a bus that must work in both directions, see the 74HC245 transceiver guide; and if the data also has to be stored rather than just gated, the MC74HC173 register with 3-state outputs does both.

The exact stocked variant

iMania stocks Texas Instruments SN74LS126AN. The N suffix is the 14-pin plastic DIP (PDIP-14), through-hole, for the 0–70 °C commercial range. The A in ’126A denotes the improved low-power Schottky version covered by the data sheet below.

Top view of the SN74LS126AN PDIP-14: pins 1-7 are 1G, 1A, 1Y, 2G, 2A, 2Y and GND; pins 14 down to 8 are VCC, 4G, 4A, 4Y, 3G, 3A and 3Y.
Top view. Find pin 1 from the notch or dot on the actual package.

View the SN74LS126AN product page and availability.

Original data sheet: Texas Instruments SN54/74LS125A, SN54/74LS126A (SDLS044A). PDF.