- All products
- Prototyping
- Components
- ICs
- Logic Gates
- IC 74HC157 Quad 2-Input Multiplexer
- Logic Gates
Features
- Four independent 2-input multiplexer channels in one IC.
- Selects between two 4-bit data sources.
- One common select input controls all four channels.
- Active-LOW enable input for controlling all four outputs.
- Non-inverting outputs: selected inputs are transferred directly to the outputs.
- High-Speed CMOS (HC) logic technology.
- Operates from a 2V to 6V supply voltage.
- Suitable for digital logic circuits and microcontroller projects.
Principle of Operation
The 74HC157 contains four 2-to-1 multiplexers. Each multiplexer has two data inputs and one output. The common select input (S) determines which input is transferred to the corresponding output.

- S = LOW: Selects the A inputs (1A, 2A, 3A, and 4A).
- S = HIGH: Selects the B inputs (1B, 2B, 3B, and 4B).
- Enable (E) = LOW: Enables the multiplexers and allows the selected inputs to reach the outputs.
- Enable (E) = HIGH: Disables the multiplexers and forces all four outputs LOW, regardless of the select and data inputs.
The outputs are non-inverting, meaning they follow the selected input logic levels when the IC is enabled. The four channels share the same select and enable signals, allowing the IC to select between two 4-bit data sources.
Pinout
| Pin | Name | Description |
| 1 | S | Common select input. LOW selects A inputs; HIGH selects B inputs. |
| 2 | 1I0 (1A) | Data input A for channel 1. |
| 3 | 1I1 (1B) | Data input B for channel 1. |
| 4 | 1Y | Output for channel 1. |
| 5 | 2I0 (2A) | Data input A for channel 2. |
| 6 | 2I1 (2B) | Data input B for channel 2. |
| 7 | 2Y | Output for channel 2. |
| 8 | GND | Ground connection. |
| 9 | 3Y | Output for channel 3. |
| 10 | 3I1 (3B) | Data input B for channel 3. |
| 11 | 3I0 (3A) | Data input A for channel 3. |
| 12 | 4Y | Output for channel 4. |
| 13 | 4I1 (4B) | Data input B for channel 4. |
| 14 | 4I0 (4A) | Data input A for channel 4. |
| 15 | E | Active-LOW enable input. HIGH forces all outputs LOW. |
| 16 | VCC | Positive supply voltage. |
Wiring and Connection
For a basic Arduino Uno demonstration, connect the 74HC157 as follows:
| 74HC157 Pin | Arduino Uno Connection |
| 16 (VCC) | 5V |
| 8 (GND) | GND |
| 15 (E) | GND to enable the IC |
| 1 (S) | D2 |
| 2 (1A) | D3 |
| 3 (1B) | D4 |
| 4 (1Y) | D5 |
| 5 (2A) | D6 |
| 6 (2B) | D7 |
| 7 (2Y) | D8 |
| 11 (3A) | GND |
| 10 (3B) | GND |
| 9 (3Y) | Not connected |
| 14 (4A) | GND |
| 13 (4B) | GND |
| 12 (4Y) | Not connected |
Connect a 100nF ceramic decoupling capacitor between VCC and GND, close to the IC. Unused inputs should be connected to a defined logic level rather than left floating.
Applications
- Digital data selection and routing.
- Selection between two 4-bit data sources.
- Digital bus switching.
- Microprocessor and microcontroller interface circuits.
- Logic function implementation.
- Digital communication and signal routing systems.
- Control systems requiring selectable input signals.
- Educational digital electronics projects.
Specifications
| IC Model | 74HC157 |
| IC Type | Quad 2-input multiplexer |
| Logic Family | 74HC High-Speed CMOS |
| Number of Channels | 4 |
| Inputs per Channel | 2 |
| Data Inputs | 8 |
| Data Outputs | 4 |
| Select Inputs | 1 common select input |
| Enable Input | 1 active-LOW enable input |
| Output Type | Non-inverting |
| Supply Voltage | 2V to 6V |
| Package | 16-pin package; format depends on manufacturer and variant |
Variant note: The 74HCT157 is a related TTL-compatible input version, typically operating from 4.5V to 5.5V. Check the exact manufacturer datasheet when selecting between HC and HCT versions.
Resources
Features
- Four independent 2-input multiplexer channels in one IC.
- Selects between two 4-bit data sources.
- One common select input controls all four channels.
- Active-LOW enable input for controlling all four outputs.
- Non-inverting outputs: selected inputs are transferred directly to the outputs.
- High-Speed CMOS (HC) logic technology.
- Operates from a 2V to 6V supply voltage.
- Suitable for digital logic circuits and microcontroller projects.
Principle of Operation
The 74HC157 contains four 2-to-1 multiplexers. Each multiplexer has two data inputs and one output. The common select input (S) determines which input is transferred to the corresponding output.

- S = LOW: Selects the A inputs (1A, 2A, 3A, and 4A).
- S = HIGH: Selects the B inputs (1B, 2B, 3B, and 4B).
- Enable (E) = LOW: Enables the multiplexers and allows the selected inputs to reach the outputs.
- Enable (E) = HIGH: Disables the multiplexers and forces all four outputs LOW, regardless of the select and data inputs.
The outputs are non-inverting, meaning they follow the selected input logic levels when the IC is enabled. The four channels share the same select and enable signals, allowing the IC to select between two 4-bit data sources.
Pinout
| Pin | Name | Description |
| 1 | S | Common select input. LOW selects A inputs; HIGH selects B inputs. |
| 2 | 1I0 (1A) | Data input A for channel 1. |
| 3 | 1I1 (1B) | Data input B for channel 1. |
| 4 | 1Y | Output for channel 1. |
| 5 | 2I0 (2A) | Data input A for channel 2. |
| 6 | 2I1 (2B) | Data input B for channel 2. |
| 7 | 2Y | Output for channel 2. |
| 8 | GND | Ground connection. |
| 9 | 3Y | Output for channel 3. |
| 10 | 3I1 (3B) | Data input B for channel 3. |
| 11 | 3I0 (3A) | Data input A for channel 3. |
| 12 | 4Y | Output for channel 4. |
| 13 | 4I1 (4B) | Data input B for channel 4. |
| 14 | 4I0 (4A) | Data input A for channel 4. |
| 15 | E | Active-LOW enable input. HIGH forces all outputs LOW. |
| 16 | VCC | Positive supply voltage. |
Wiring and Connection
For a basic Arduino Uno demonstration, connect the 74HC157 as follows:
| 74HC157 Pin | Arduino Uno Connection |
| 16 (VCC) | 5V |
| 8 (GND) | GND |
| 15 (E) | GND to enable the IC |
| 1 (S) | D2 |
| 2 (1A) | D3 |
| 3 (1B) | D4 |
| 4 (1Y) | D5 |
| 5 (2A) | D6 |
| 6 (2B) | D7 |
| 7 (2Y) | D8 |
| 11 (3A) | GND |
| 10 (3B) | GND |
| 9 (3Y) | Not connected |
| 14 (4A) | GND |
| 13 (4B) | GND |
| 12 (4Y) | Not connected |
Connect a 100nF ceramic decoupling capacitor between VCC and GND, close to the IC. Unused inputs should be connected to a defined logic level rather than left floating.
Applications
- Digital data selection and routing.
- Selection between two 4-bit data sources.
- Digital bus switching.
- Microprocessor and microcontroller interface circuits.
- Logic function implementation.
- Digital communication and signal routing systems.
- Control systems requiring selectable input signals.
- Educational digital electronics projects.
Specifications
| IC Model | 74HC157 |
| IC Type | Quad 2-input multiplexer |
| Logic Family | 74HC High-Speed CMOS |
| Number of Channels | 4 |
| Inputs per Channel | 2 |
| Data Inputs | 8 |
| Data Outputs | 4 |
| Select Inputs | 1 common select input |
| Enable Input | 1 active-LOW enable input |
| Output Type | Non-inverting |
| Supply Voltage | 2V to 6V |
| Package | 16-pin package; format depends on manufacturer and variant |
Variant note: The 74HCT157 is a related TTL-compatible input version, typically operating from 4.5V to 5.5V. Check the exact manufacturer datasheet when selecting between HC and HCT versions.