Skip to content
digiwleeaTools
LearnGlossaryAboutCheat sheetHow a CPU worksToolsOpen the lab →

74HC125: the quad tri-state buffer chip, live

The 74HC125 holds four independent buffers with 3-state outputs, each with its own active-low output enable: while nOE is 0, nY copies nA; while nOE is 1, nY is high impedance (Z), as if it were disconnected. This live chip opens with buffers 1 and 2 enabled and 3 and 4 switched off.

TI's datasheet describes it as four independent buffers with 3-state outputs, where "each gate performs the Boolean function Y = A in positive logic". The point is the third state: a disabled output neither drives high nor low, so several outputs can share one wire, a bus, as long as only one is enabled at a time. The datasheet's application note puts it this way: "It is common to see all four channels of a device used together for controlling a 4-bit data bus, however each channel of the device can be used independently." It also suggests a pull-up or pull-down resistor where the line must stay at a known level while every output is off. Each buffer here is the tri-state buffer built from transistors, enabled by an inverter on its nOE. Compared with the 74HC244, which has eight buffers in two groups of four with one enable per group, the 74HC125 gives every buffer its own enable; the 74HC126 has the same pinout with active-high enables. Before the page is built, all 256 combinations of the four enables and four inputs are checked, Z included.

Live circuit: click the inputs to toggle them and watch the outputs update. It runs the real simulator, right here on the page.

Open this circuit in the lab →

What you need

Step by step

  1. Place inputs 1OE to 4OE and 1A to 4A, and probes 1Y to 4Y.
  2. Feed each nA into a tri-state buffer whose output is nY.
  3. Drive each buffer's enable from NOT nOE, so the buffer is on while nOE is 0.
  4. Set 1OE = 0 and toggle 1A: 1Y follows. Set 1OE = 1: 1Y floats (Z) whatever 1A does.

74HC125 function table (each buffer)

nOEnAnY
011
000
1XZ (high impedance)

74HC125 pinout

PinNamePinName
11OE (active low)14VCC
21A134OE (active low)
31Y124A
42OE (active low)114Y
52A103OE (active low)
62Y93A
7GND83Y

X means the input does not matter; Z means the output is not driven. The function table and the 14-pin pinout are from TI's SN74HC125 datasheet (SCLS104F), checked 2026-10-25; the active-high 74HC126 is from SCLS103F. The 74HC125 runs from 2 V to 6 V, and unused inputs must be tied to VCC or GND.

You can also read the full theory in the lesson on tri-state outputs. Prefer to build it yourself from scratch? Open the digiwleea lab and place the gates on the canvas, or start from the logic gate simulator.

Build more parts from gates

half adderfull adderhalf subtractorfull subtractor2:1 multiplexer4:1 multiplexerXOR gate from NAND gates2-to-4 decoderSR latchD flip-flopJK flip-flopT flip-flop4-bit shift register4-bit ripple carry adderD latch1-to-4 demultiplexer4-bit magnitude comparator4-bit ring counter4-bit Johnson counter4-to-2 priority encoder4-bit synchronous counter3-to-8 decoder8-to-1 multiplexer4-bit carry lookahead adderhalf adder from NAND gates2-bit comparatorBCD to 7-segment decoder4-bit up/down counterdecade counter2-bit multiplier4-bit ALU4-bit array multiplierNOT, AND, OR and NOR from NANDNOT, OR, AND and XOR from NORfull adder from NAND gatesSR latch from NAND gatesparity generator and checker4-bit adder/subtractorBCD adder4-bit universal shift registermod-6 counter4-bit ripple counterbinary to Gray code converterhalf adder from NOR gatesfull adder from NOR gates4-bit register with parallel load1011 sequence detectorbinary to BCD converterD flip-flop from NAND gates1-bit ALUCMOS inverterCMOS NAND gateCMOS NOR gatePISO shift registerSR flip-flop from NAND gatesBCD to excess-3 code converterHamming (7,4) code encoder and correctortraffic light controller4-bit barrel shifterCMOS AND gateCMOS OR gateCMOS XOR gate1-bit magnitude comparatorhalf subtractor from NAND gatesfull subtractor from NAND gates8-to-3 encoderGray to binary converter4-to-16 decoderfull adder using 4:1 multiplexersedge detectorserial adder4-bit carry-select adder4-bit Kogge-Stone adder4-bit carry-skip adder4x4 Wallace tree multiplier8-bit adderfrequency divider (by 2, 4 and 3)switch debouncer (SR latch)3-bit Gray code counterMealy machine (1011 detector)master-slave JK flip-flop (NAND)half subtractor from NOR gates1-to-8 demultiplexerexcess-3 to BCD code convertervending machine FSM4-bit carry-save adder3-bit synchronous counter (JK)CMOS transmission gatetri-state buffer (CMOS)2-to-1 mux from transmission gatesmod-5 counterflip-flop conversion (JK to D)8-bit ALUdecimal to BCD encoderBCD to decimal decoder4-to-1 mux from 2-to-1 muxesXOR gate from NOR gates4-bit LFSR74LS138 decoderBCD subtractor74181 ALUCMOS AOI gate (AOI21)D latch vs D flip-flop74LS47 BCD to 7-segment decoder74HC595 shift register7400 quad NAND gate chip7402 quad NOR gate chip7404 hex inverter chip7408 quad AND gate chip7432 quad OR gate chip7486 quad XOR gate chip7474 dual D flip-flop74HC165 shift registerCD4017 decade counter74LS283 4-bit adder74LS90 decade counter74HC161 4-bit counter74HC151 8-to-1 multiplexer74HC157 quad 2-to-1 multiplexer74HC139 dual 2-to-4 decoderCD4511 BCD to 7-segment decoder7492 divide-by-12 counter7493 4-bit binary counter74HC244 octal bufferRace-around condition (JK latch)74HC373 octal latch74HC374 octal D flip-flopTurnstile state machine1-to-2 demultiplexerhalf adder using 2:1 multiplexersregister file (4 x 4-bit)digital PWM generatorCD4013 dual D flip-flop74LS76 dual JK flip-flop7410 triple 3-input NAND chip7411 triple 3-input AND chip7420 dual 4-input NAND chipCD4011 quad 2-input NAND chipCD4001 quad 2-input NOR chipCD4081 quad 2-input AND chipCD4069 hex inverter chip74HC164 8-bit shift register7485 4-bit magnitude comparator

Each of these is one step from a transistor to a working CPU. Build every gate from CMOS transistors and work all the way up in the free digiwleea lab, with the free theory reference alongside.

Open the 74HC125 quad tri-state buffer in the lab →

Frequently asked

What does the 74HC125 do?

It contains four buffers with 3-state outputs. Each output copies its input while its own output enable (OE) is low, and goes to high impedance, effectively disconnected, while OE is high.

What is the difference between the 74HC125 and the 74HC126?

Only the enable polarity: the 74HC125's OE inputs are active low and the 74HC126's are active high. The pinout and the buffers are the same.

What is the difference between the 74HC125 and the 74HC244?

The 74HC125 is a 14-pin chip with four buffers, each with its own enable. The 74HC244 is a 20-pin chip with eight buffers in two groups of four, each group sharing one enable.

What does high impedance mean on the 74HC125?

The output is switched off: it neither sources nor sinks current, so whatever else is connected to the wire sets its level. That is what lets several outputs share a bus, one at a time.