Overview

The 74HC157 (SN74HC157 / 74HCT157) is a high-speed silicon-gate CMOS Quad 2-to-1 line data selector / multiplexer IC manufactured by Texas Instruments, Nexperia, and onsemi. Housed in a standard 16-pin through-hole DIP-16 and surface-mount SOIC-16 / TSSOP-16 package, it contains four independent 2-input digital multiplexers sharing a common Select input (SS) and a common active-LOW Strobe / Enable input (Gˉ\bar{G}).

Operating across a supply voltage range of 2.0V2.0\text{V} to 6.0V6.0\text{V} DC with a rapid propagation delay of 11 ns11\text{ ns} at 5V5\text{V}, the 74HC157 selects four bits of data from two alternative 4-bit sources (AA or BB) and passes them to the four outputs (1Y4Y1Y \dots 4Y). It is a cornerstone building block in retrocomputing architectures (Commodore 64, Apple II, ZX Spectrum) and FPGA/CPLD glue-logic for 4-bit/8-bit bus multiplexing, dynamic RAM (DRAM) row/column address multiplexing, and video signal switching.

Quick reference

Logic FamilyHigh-Speed CMOS (74HC) / TTL-Compatible (74HCT)
FunctionQuad 2-Input to 1-Output Data Multiplexer (Non-Inverting)
Channels4 independent 2-to-1 multiplexers (1A/1B4A/4B1A/1B \dots 4A/4B)
Package16-pin DIP (DIP-16 / PDIP-16) / 16-pin SOIC / TSSOP-16
Supply Voltage (VCCV_{CC})2.0 V2.0\text{ V} to 6.0 V6.0\text{ V} (74HC) / 4.5 V5.5 V4.5\text{ V} \dots 5.5\text{ V} (74HCT)
Propagation Delay (tpdt_{pd})11 ns11\text{ ns} typ (21 ns21\text{ ns} max) at VCC=5.0 VV_{CC} = 5.0\text{ V}
Output Drive Current (IOH/IOLI_{OH}/I_{OL})±4.0 mA\pm 4.0\text{ mA} at 5.0 V5.0\text{ V} (10 LSTTL10\text{ LSTTL} load fan-out)
Controls1 Common Select (SS / Aˉ/B\bar{A}/B), 1 Common Strobe (Gˉ\bar{G})

Pinout (DIP-16 Package)

text
                            ┌───┴───┐
       (Common Select)  S  1│ 1   16│ VCC (+2V to +6V)
       (Mux 1, Input A) 1A 2│       │15 /G / STROBE (Active-Low)
       (Mux 1, Input B) 1B 3│ 74HC  │14 4A (Mux 4, Input A)
       (Mux 1, Output)  1Y 4│  157  │13 4B (Mux 4, Input B)
       (Mux 2, Input A) 2A 5│ DIP-16│12 4Y (Mux 4, Output)
       (Mux 2, Input B) 2B 6│       │11 3A (Mux 3, Input A)
       (Mux 2, Output)  2Y 7│       │10 3B (Mux 3, Input B)
                   GND  8│       │9  3Y (Mux 3, Output)
                            └───────┘
PinNameTypeDescription
1SELECTDigital InputCommon Data Select (SS / Aˉ/B\bar{A}/B); LOW selects AA inputs, HIGH selects BB inputs
21ADigital InputMultiplexer 1, Input A
31BDigital InputMultiplexer 1, Input B
41YDigital OutputMultiplexer 1, Output
52ADigital InputMultiplexer 2, Input A
62BDigital InputMultiplexer 2, Input B
72YDigital OutputMultiplexer 2, Output
8GNDPowerCommon Ground reference (0 V0\text{ V})
93YDigital OutputMultiplexer 3, Output
103BDigital InputMultiplexer 3, Input B
113ADigital InputMultiplexer 3, Input A
124YDigital OutputMultiplexer 4, Output
134BDigital InputMultiplexer 4, Input B
144ADigital InputMultiplexer 4, Input A
15STROBEDigital InputActive-LOW Common Strobe (Gˉ\bar{G}; tie to GND for normal operation)
16VCCPowerPositive Supply Voltage (+2.0 V+2.0\text{ V} to +6.0 V+6.0\text{ V})

Function / Truth Table

Strobe / Enable (Gˉ\bar{G})Select (SS)Input AA (nAnA)Input BB (nBnB)Output YY (nYnY)
HXXXL (All outputs forced LOW)
LLLXL (nY=nAnY = nA)
LLHXH (nY=nAnY = nA)
LHXLL (nY=nBnY = nB)
LHXHH (nY=nBnY = nB)

Typical Application: 4-Bit Nibble Bus Selector

text
     4-Bit Bus A (A3, A2, A1, A0) ────► [Pins 14, 11, 5, 2: 4A, 3A, 2A, 1A]
     4-Bit Bus B (B3, B2, B1, B0) ────► [Pins 13, 10, 6, 3: 4B, 3B, 2B, 1B]
                                               74HC157
     Control Signal (Select A/B) ─────► [Pin 1: SELECT]
     Enable (GND) ────────────────────► [Pin 15: /G]

     Selected 4-Bit Bus Output ◄─────── [Pins 12, 9, 7, 4: 4Y, 3Y, 2Y, 1Y]

Comparison: 74HC157 vs 74HC158 vs 74HC257

IC Part NumberFunctionOutput StageInverting / Non-Inverting
74HC157Quad 2-to-1 MultiplexerStandard Push-PullNon-Inverting (nYnY)
74HC158Quad 2-to-1 MultiplexerStandard Push-PullInverting (nYˉn\bar{Y})
74HC257Quad 2-to-1 Multiplexer3-State (Tri-State)Non-Inverting (nYnY)

Common mistakes

  • Leaving Strobe Pin 15 (Gˉ\bar{G}) floating: If Gˉ\bar{G} is disconnected or pulled HIGH, all four outputs (1Y4Y1Y \dots 4Y) are forced to logic LOW. Always tie Pin 15 to GND (0V) for continuous multiplexing.
  • Using 74HC157 for bidirectional data buses: The 74HC157 is strictly a unidirectional multiplexer (A/BYA/B \to Y). If bidirectional data transmission is needed between buses, use a bus transceiver like the 74HC245.

Notes

  • Cascading for 8-Bit / 16-Bit Words: Two 74HC157 ICs wired with their Select and Strobe pins in parallel create an instant 8-bit wide 2-to-1 byte selector.

Assets & downloads