You're currently on: Catalog » Guides » 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.
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.
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.
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.
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.
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.
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.
View the SN74LS126AN product page and availability.
Original data sheet: Texas Instruments SN54/74LS125A, SN54/74LS126A (SDLS044A). PDF.
We use cookies to provide you with the best possible experience. They also allow us to analyze user behavior in order to constantly improve the website for you.