Overview
The 74HC138 (SN74HC138) is a 3-to-8 line decoder/demultiplexer IC manufactured using high-speed silicon-gate CMOS technology. Designed for memory address decoding and routing applications in high-speed microcomputer systems, it converts a 3-bit binary address input (A0, A1, A2) into one of 8 mutually exclusive active-LOW outputs ( to ).
The device incorporates three enable inputs: one active-HIGH (G1) and two active-LOW ( and ). All 8 outputs remain HIGH (disabled) unless G1 is HIGH and both and are LOW. This versatile enable arrangement allows easy cascading to build 1-of-16, 1-of-32, or larger decoders without external logic gates.
Quick reference
Supply Voltage (VCC) | 2.0 V to 6.0 V DC |
| Logic Family | High-Speed CMOS (74HC) / TTL Compatible (74HCT) |
| Address Inputs | 3 (A0 LSB, A1, A2 MSB) |
| Decoded Outputs | 8 Active-Low Outputs ( through ) |
| Enable Lines | 3 (G1 Active-High; Active-Low) |
| Propagation Delay | typical at |
| Package | 16-pin DIP / SOIC-16 / TSSOP-16 |
Pinout (DIP-16 Package)
┌───┴───┐
A0 1│ 1 16│ VCC
A1 2│ │15 /Y0
A2 3│ │14 /Y1
/G2A 4│74HC138│13 /Y2
/G2B 5│ │12 /Y3
G1 6│ │11 /Y4
/Y7 7│ │10 /Y5
GND 8│ │9 /Y6
└───────┘
| Pin | Name | Type | Description |
|---|---|---|---|
| 1 | A0 | Input | Address Input Bit 0 (LSB) |
| 2 | A1 | Input | Address Input Bit 1 |
| 3 | A2 | Input | Address Input Bit 2 (MSB) |
| 4 | /G2A | Input | Active-Low Enable Input A |
| 5 | /G2B | Input | Active-Low Enable Input B |
| 6 | G1 | Input | Active-High Enable Input |
| 7 | /Y7 | Output | Active-Low Decoded Output 7 (Selected when A2=1, A1=1, A0=1) |
| 8 | GND | Power | Ground reference (0 V) |
| 9–15 | /Y6–/Y0 | Output | Active-Low Decoded Outputs 6 through 0 |
| 16 | VCC | Power | Positive supply power pin (+2.0V to +6.0V DC) |
Function & Truth Table
| Enable Inputs | Address Inputs | Active Output (LOW) | |||||
|---|---|---|---|---|---|---|---|
| G1 | /G2A | /G2B | A2 | A1 | A0 | ||
| Low () | X | X | X | X | X | None (All outputs HIGH) | |
| X | High () | X | X | X | X | None (All outputs HIGH) | |
| X | X | High () | X | X | X | None (All outputs HIGH) | |
| High () | Low () | Low () | Low () | Low () | Low () | ||
| High () | Low () | Low () | Low () | Low () | High () | ||
| High () | Low () | Low () | Low () | High () | Low () | ||
| High () | Low () | Low () | Low () | High () | High () | ||
| High () | Low () | Low () | High () | Low () | Low () | ||
| High () | Low () | Low () | High () | Low () | High () | ||
| High () | Low () | Low () | High () | High () | Low () | ||
| High () | Low () | Low () | High () | High () | High () |
Specifications
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions |
|---|---|---|---|---|---|---|
| Supply Voltage | 2.0 | 5.0 | 6.0 | V | DC | |
| High-Level Input Voltage | 3.15 | — | — | V | ||
| Low-Level Input Voltage | — | — | 1.35 | V | ||
| Propagation Delay () | — | 15 | 25 | ns | ||
| Output Sink/Source Current | — | — | mA | |||
| Quiescent Supply Current | — | — | 4.0 | µA |
Typical Applications
8-Device SPI Chip-Select Address Decoder
Using 3 GPIO pins from a microcontroller to generate 8 active-LOW Chip-Select () lines for peripheral devices (SD cards, sensors, displays).
MCU GPIO Pins SPI Peripherals
[Pin D2] ──────────► [Pin 1: A0] [ /Y0 ] ───► /CS SD Card
[Pin D3] ──────────► [Pin 2: A1] 74HC138 [ /Y1 ] ───► /CS Display
[Pin D4] ──────────► [Pin 3: A2] [ /Y2 ] ───► /CS Flash Memory
│ [ /Y3..7 ] ─► /CS Sensors
+5V ──[Pin 6: G1]
GND ──[Pin 4: /G2A]
GND ──[Pin 5: /G2B]
Common mistakes
- Forgetting that outputs are active-LOW: The selected output pin pulls LOW () while all non-selected outputs remain HIGH (). If driving active-HIGH chip selects, an inverter (such as 74HC04) or a 74HC238 (active-HIGH equivalent) is required.
- Floating enable lines (): If is not tied HIGH or are not tied LOW, all outputs will remain permanently disabled (HIGH).
- Cascading incorrectly: When cascading two 74HC138s to make a 1-of-16 decoder, use the 4th address bit () directly to drive on the second IC and on the first IC.
Notes
- 74HC138 vs 74HC238: 74HC138 has active-LOW outputs (–); 74HC238 is the exact same pinout but with active-HIGH outputs (–).
- 74HC138 vs 74HC154: 74HC138 is a 3-to-8 decoder (16-pin DIP); 74HC154 is a 4-to-16 decoder (24-pin DIP).
Assets & downloads
- datasheetdatasheet
- product-pagereference