fbpx

7400 Series Guide: 74HC157/74LS157 (Quad 2-to-1 multiplexer)

The 74×157 (ex 74LS157) is a chip that features four 2-to-1 data multiplexers. This device can be used to route one of two 4-bit data sources to a single 4-bit output bus, controlled by a common select input and featuring individual enable inputs for each multiplexer.

In this guide, you’ll learn the things you need to know about this chip in order to effectively use data multiplexing in your own projects.

What does the 74HC157 / 74LS157 do?

The 74×157 is chip with four 2-to-1 line data selectors/multiplexers. It takes two 4-bit words as inputs and lets you choose which you want to send to the output using select lines.

Here’s how it works:

  • A 4-bit word is selected from one of two sources (A or B) ans routed to the 4 Y outputs.
  • Use the input (A/B) to decide which input is connected to the output.
  • There’s also an enable input called Strobe (G). When it’s active, the selected input is sent to the output; when it’s not, the output stays in a disabled state.

Multiplexers like the 74×157 are handy for directing data from multiple sources to a single destination, especially useful in digital circuits where you need to manage data from various paths.

How To Use This Chip

The 74HC157 comes in a 16-pin package, and you need to connect it to power before you can use it. Most 7400 ICs support a VCC voltage of 5V. One difference between the HC and LS version of the chip is that the 74HC157 supports 2V to 6V, while the 74LS157 only supports 5V.

74HC chips can normally supply a maximum of 4 mA from an output pin. If you’re using the 74LS version, the maximum current you can pull out of one output pin is 0.8 mA when the pin is high (sourcing) or 16 mA when the pin is low (sinking).

But these values can differ between models, so check the datasheet of your model to verify.

Once you’ve connected it to power, you can use the Multiplexers inside.

7400 series IC connected to 5V on a breadboard
The 74HC157/74LS157 IC connected to power

74×157 Pinout

The 74×157 has 16 pins and contains four 2-to-1 line data selector/multiplexer with complementary outputs laid out as shown in the pinout diagram below:

74LS157 Pinout
Pin NamePin #TypeDescription
A/B1InputSelect input for the multiplexer, selects between source A and B.
A02InputBit 0 for input source A
B03InputBit 0 for input source B
Y04OutputMultiplexer output bit 0
A15InputBit 1 for input source A
B16InputBit 1 for input source B
Y17OutputMultiplexer output bit 1
GND8PowerConnect to ground (GND).
Y29OutputMultiplexer output bit 2
B210InputBit 2 for input source B
A211InputBit 2 for input source A
Y312OutputMultiplexer output bit 3
B313InputBit 3 for input source B
A314InputBit 3 for input source A
G15InputOutput enable input (active low), enables the outputs.
VCC16PowerPositive power supply. Connect to +5V power.
Pin overview for the 74LS157 IC

Alternatives and Equivalents for 74HC157 / 74LS157

There are many versions of the 74×157 chip. They all have the same functionality, but with different specifications such as supported voltages and maximum current output.

Here’s a list of a few equivalents of this chip:

  • 74HC157 (High-speed CMOS)
  • 74HCT157 (High-speed CMOS, TTL compatible)
  • 74LS157 (High-speed TTL)
  • 74LVC157 (Low Voltage TTL)
  • 74AC157 (Advanced CMOS)
  • 74ALS157 (Advanced Low-Power Schottky TTL)
  • 74F157 (Very High Speed)
  • 74C157 (CMOS, similar to the 4000-series)

Some manufacturers also add a prefix, such as the SN74HC157 and SN74LS157 by Texas Instruments.

Can’t find the 74×157 anywhere? Then try one of the following IC alternatives:

  • 74×158 – Quad 2-to-1 multiplexer with inverted outputs.
  • 74×257 – Quad 2-to-1 multiplexer with tri-state outputs.
  • 74×258 – Quad 2-to-1 multiplexer with inverted tri-state outputs.
  • 74×153 – Dual 4-to-1 multiplexer.
  • CD4052 – Dual 4-channel analog multiplexer/demultiplexer.
  • CD4053 – Triple 2-channel analog multiplexer/demultiplexer.

If you can’t find the 74×157 IC in your local electronics store, don’t worry, you’ll most likely find it in one of the stores listed on this page of online stores where you’ll find components and tools for all your electronics projects.

Datasheet for the 74LS157 and 74HC157 chips

Download the PDF datasheet for your version of the 74×157 here:

Leave a Comment