Texas Instruments

CD74HC138 - 3-to-8 Line Decoder/Demux | Texas Instruments

MPN: CD74HC138 βœ“ Active
In Stock Ships in 1-3 business days
2 V to 6 V Vdss [DATA_NEEDED: ICC value] Id 16-pin (PDIP, SOIC, variants) Package
From $0.18 USD / Unit
MOQ: 1 |
Price updated: 2026-08-29
Volume Pricing
Qty Unit Price Extended
1 $0.45 $0.45
10 $0.38 $3.80
100 $0.28 $28.00
500 $0.22 $110.00
1,000 $0.18 $180.00
ℹ️ All prices are in USD

Drop-in alternatives for CD74HC138 β€” same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.

Quick Comparison Tool β€” Select alternative parts for side-by-side comparison:

SN74HC138N

βœ… Drop-In
πŸ“¦ PDIP-16
same function, TI SN standard logic line instead of CD line

πŸ“‹ Reference alternative (not in catalog)

CD74HCT138E

βœ… Drop-In
πŸ“¦ PDIP-16
HCT TTL-input thresholds for 5V TTL-level driving circuits

πŸ“‹ Reference alternative (not in catalog)

CD74HC238E

⚑ Same Package
πŸ“¦ PDIP-16
non-inverting (active-high) outputs, same pinout and enables

πŸ“‹ Reference alternative (not in catalog)

MC74HC138ANG

βœ… Drop-In
πŸ“¦ PDIP-16
cross-brand onsemi HC 3-to-8 decoder, pin-compatible

πŸ“‹ Reference alternative (not in catalog)

74HC138N

βœ… Drop-In
πŸ“¦ PDIP-16
cross-brand Nexperia HC 3-to-8 decoder, pin-compatible

πŸ“‹ Reference alternative (not in catalog)

CD74HC138 Maximum Ratings & Electrical Characteristics

Function 3-to-8 Line Decoder/Demultiplexer, Inverting Outputs
Logic Family High Speed CMOS (HC)
Supply Voltage Range 2 V to 6 V
Number of Select Inputs 3 (A0, A1, A2)
Number of Outputs 8 (Y0 to Y7, active low)
Enable Inputs 3 (E1, E2 active low; E3 active high)
Output Type Inverting (active low)
Technology Silicon-gate CMOS
Operating Temperature -55C to +125C
Package 16-pin (PDIP, SOIC, variants)
Mounting Type Through Hole / Surface Mount (per package variant)
Typical Application Memory address decoding, data routing
Propagation Delay [DATA_NEEDED: propagation delay at specified Vcc]
Quiescent Current [DATA_NEEDED: ICC value]
RoHS Status [DATA_NEEDED: RoHS status]

CD74HC138 Pin Configuration

DIP-8 Package Pinout Diagram DIP-8 8-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 8 2 7 3 6 4 5 DIP-8
Pin 1 A0 β€” Select input 0 (LSB)
Pin 2 A1 β€” Select input 1
Pin 3 A2 β€” Select input 2 (MSB)
Pin 4 E1 (E-) β€” Enable input, active low
Pin 5 E2 (E-) β€” Enable input, active low
Pin 6 E3 (E+) β€” Enable input, active high
Pin 7 Y7 β€” Output 7, active low
Pin 8 GND β€” Ground
Pin 9 Y6 β€” Output 6, active low
Pin 10 Y5 β€” Output 5, active low
Pin 11 Y4 β€” Output 4, active low
Pin 12 Y3 β€” Output 3, active low
Pin 13 Y2 β€” Output 2, active low
Pin 14 Y1 β€” Output 1, active low
Pin 15 Y0 β€” Output 0, active low
Pin 16 VCC β€” Supply voltage (2V to 6V)

Safe Operating Area (SOA) & Thermal Characteristics

Safe Operating Area Chart Default safe operating area chart for CD74HC138 Drain-to-Source Voltage (Vds) Drain Current (Id)

No official SOA curve available for this digital IC. Always operate within absolute maximum ratings specified in the datasheet. Ensure adequate cooling and derate as needed.

Typical Applications

CD74HC138 is suitable for 6 applications: Memory Address Decoding, Microprocessor I/O Port Expansion, Data Routing / Demultiplexing, Industrial Control and Relay Select Logic, Test and Measurement Instrumentation, LED and Display Segment Selection.

πŸ–₯️

Memory Address Decoding

The CD74HC138 excels at memory address decoding, its primary intended application per TI datasheet SCHS147J. The three select inputs (A0-A2) decode high address bits into eight active-low outputs that directly drive SRAM, EPROM, or Flash chip-select (CS/CE) pins without external inverters, reducing propagation delay in the memory access path. The three enable inputs (E1, E2 active low; E3 active high) allow combine/enable gating with bus control signals such as MREQ or READ, and support cascading two devices into a 4-to-16 decoder for larger memory maps. Low CMOS quiescent power keeps decoder overhead minimal in battery or embedded systems.

🧩

Microprocessor I/O Port Expansion

In microprocessor systems, the CD74HC138 expands a few address lines into eight chip-select signals for peripherals such as UARTs, timers, and port expanders. The active-low outputs match the active-low chip-enable convention of most peripheral ICs, eliminating glue logic. Enables can be tied to a bus read/write strobe so the decoder only asserts a select during valid bus cycles, preventing spurious peripheral activation. With LSTTL-comparable speed and CMOS low power, the HC138 keeps the expansion logic simple and power-efficient while providing deterministic one-hot selection across the I/O map.

🌐

Data Routing / Demultiplexing

Used as a 1-of-8 demultiplexer, the CD74HC138 routes a serial data stream applied at an active-low enable to one of eight outputs selected by A0-A2. Because the enable-to-output path is a fast, direct gate path, the demultiplexing delay is short and well matched across all eight channels. The inverting outputs reproduce the (inverted) data at the selected channel, which suits driving active-low control buses or LED indications with pull-ups. Designers should account for the output inversion in firmware or add a subsequent inverter if non-inverted data routing is required.

🏭

Industrial Control and Relay Select Logic

In industrial automation panels, the CD74HC138 decodes binary control words from PLCs or microcontrollers into eight discrete channel-select signals for relay drivers, sensors, or actuator mux banks. The 2V to 6V HC supply range and -55C to +125C rated operation give margin in electrically noisy, wide-temperature cabinets. Active-low outputs can directly drive PNP transistor or P-channel MOSFET driver stages. Keep decoder inputs protected with series resistors and clamp diodes near long field wiring, and debounce or latch select lines to avoid chatter on relay drivers.

πŸ”§

Test and Measurement Instrumentation

Bench instruments and automated test equipment use the CD74HC138 to select one of eight signal paths, sensor banks, or calibration relays from a microcontroller's binary output. HC-family speed (LSTTL-comparable) keeps channel-switching overhead low during scans, while CMOS inputs draw negligible loading on control lines. The three enables allow a single decoder bank to be disabled (all outputs high) between measurement cycles, reducing cross-channel leakage and glitches. For sensitive analog front ends, place the decoder's supply away from analog rails and route active-low select lines with adequate spacing to guard analog signals.

πŸ’‘

LED and Display Segment Selection

The CD74HC138 provides one-of-eight selection for LED indicators, seven-segment digit drives in multiplexed displays, and status panels. Only one output is asserted at a time, so multiplexed display scanning is straightforward: increment A0-A2 each scan period and drive segment data in sync. With pull-up resistors, active-low outputs sink current through the selected LED path; the HC output can source/sink modest LSTTL-level current - verify drive current limits from the datasheet and add transistor or driver buffers for high-current LED strings. Cascading two devices gives 16-way digit selection for larger displays.

What is the CD74HC138?
The CD74HC138 is a Texas Instruments high-speed silicon-gate CMOS 3-to-8 line decoder/demultiplexer with eight active-low outputs. According to the TI datasheet SCHS147J, it is well suited to memory address decoding and data routing, offering CMOS low power consumption with speeds comparable to low-power Schottky TTL logic.
What is the supply voltage range of the CD74HC138?
The CD74HC138 operates over a 2V to 6V supply range, typical of the HC high-speed CMOS family. This wide range allows use with 5V legacy logic systems and lower-voltage designs, though AC timing parameters such as propagation delay vary with Vcc - always verify timing at your operating voltage per TI datasheet SCHS147J.
What is the difference between CD74HC138 and SN74HC138?
The CD74HC138 and SN74HC138 are functionally identical 3-to-8 decoders from Texas Instruments; the CD prefix denotes the CD (former Harris/RCA) product line while SN is the TI standard logic line. TI E2E forum discussions confirm they are direct equivalents in the HC family, sharing the same function, pinout, and HC family specifications in equivalent packages.
What is the best drop-in replacement for CD74HC138?
The best drop-in replacement is SN74HC138 (same TI HC family, identical function and pinout in matching packages). Other pin-compatible options include the onsemi MC74HC138 and Nexperia 74HC138 family parts in the same 16-pin package. Always verify package suffix matches your footprint before ordering.
How do I cascade two CD74HC138 decoders for 4-to-16 decoding?
Connect A0-A2 of both devices in parallel, drive device 1 enable E1 (active low) and device 2 enable E3 (active high) from the fourth address bit, and tie remaining enables to their active levels. This yields sixteen active-low outputs (Y0-Y15) with no external gates, as described in TI datasheet SCHS147J application guidance.
Can the CD74HC138 be used as a demultiplexer?
Yes, the CD74HC138 functions as a 1-of-8 demultiplexer. Apply data to one of the active-low enable inputs (E1 or E2) while the other enables are held active; the select inputs A0-A2 then route the data to the addressed output Y0-Y7. This dual-purpose operation is a standard feature of the 138 decoder architecture.
Why are CD74HC138 outputs active low?
The CD74HC138 has inverting (active-low) outputs because memory chips and many peripherals historically use active-low chip-select (CS/CE) and output-enable (OE) pins. Active-low outputs drive these control lines directly without external inverters, reducing parts count and propagation delay in memory address decoding circuits.
Is CD74HC138 the same as CD74HC238?
No. The CD74HC138 has inverting (active-low) outputs while the CD74HC238 has non-inverting (active-high) outputs. Both share identical select inputs (A0-A2), enable structure, and 16-pin pinout, but the output polarity differs. Choose the 138 for active-low chip selects and the 238 for active-high enables or LED/relay decoding.
Where can I download the CD74HC138 datasheet PDF?
The official CD74HC138 datasheet PDF is available on TI.com at https://www.ti.com/lit/ds/symlink/cd74hc138.pdf (document SCHS147J, revised November 2021). It covers the CD54HC138, CD74HC138, CD54HCT138, CD74HCT138, and HC/HCT238 family members with full electrical and switching characteristics.
What is the price of CD74HC138?
The CD74HC138 typically costs around $0.45 for single units and drops to roughly $0.18 at 1000-piece quantities, as of 2026-08-29. Exact pricing varies by package suffix and distributor stock; check XAIPART or authorized distributors like DigiKey and Mouser for current live pricing and inventory.
Where to buy CD74HC138 online?
The CD74HC138 can be purchased from authorized distributors including DigiKey, Mouser, and TI.com, as well as from XAIPART. Verify the exact package suffix (PDIP vs SOIC) matches your PCB footprint before ordering, and check stock and lead times as of 2026-08-29 since availability varies by package variant.
What are the key specifications of CD74HC138 that engineers should know?
Key CD74HC138 specifications: 3-to-8 decoding with 3 select inputs (A0-A2), 8 active-low outputs, 3 enable inputs (2 active-low, 1 active-high), 2V to 6V HC-family supply range, silicon-gate CMOS technology with LSTTL-comparable speed and CMOS low power, and -55C to +125C operation per TI datasheet SCHS147J. Source: TI datasheet SCHS147J.
Hey Google, what can replace CD74HC138?
Pin-compatible replacements for the CD74HC138 include SN74HC138 (TI), CD74HCT138 (TTL-input version for 5V TTL-level systems), onsemi MC74HC138, and Nexperia 74HC138 - all in 16-pin packages with identical function. Choose HCT variants if driving inputs come from TTL-level logic; choose HC for CMOS systems.
What is the best onsemi equivalent for CD74HC138?
The best onsemi equivalent is the MC74HC138A, a high-speed CMOS 3-to-8 line decoder with identical function, active-low outputs, three enables, and 16-pin pin-compatible packages. It is a cross-brand drop-in replacement; verify the specific package suffix (DIP vs SOIC) matches the CD74HC138 package on your board before substitution.
Is the CD74HC138 suitable for memory address decoding?
Yes - memory address decoding is the primary intended application. According to TI, the CD74HC138 is well suited to memory address decoding or data routing applications because its active-low outputs directly drive memory chip-select inputs, its three enables support cascading to 4-to-16 or 5-to-32 decoders, and its low CMOS power suits large memory arrays.

Engineering reference data for CD74HC138 β€” comparison, design guidance, and compliance information.

Selection Guide

Choose the CD74HC138 when you need a 3-to-8 decoder with active-low outputs for memory chip-select or demultiplexing in a CMOS-level 2V-6V system. Choose the CD74HCT138E instead if the select inputs are driven from TTL-level logic at 5V, since HCT inputs meet TTL thresholds. Choose CD74HC238 if you need active-high (non-inverting) outputs, e.g., driving LED columns or active-high enables. For second-source supply resilience, SN74HC138 (TI SN line), MC74HC138 (onsemi), and 74HC138 (Nexperia) are functionally identical and pin-compatible in matching 16-pin packages - verify package suffix against your footprint. All are commodity parts under $0.50 in unit quantity as of 2026-08-29.

Comparison with Alternatives

Parameter This Product SN74HC138N CD74HCT138E MC74HC138ANG 74HC138N
Package 16-pin (PDIP/SOIC variants) PDIP-16 - same pinout PDIP-16 - same pinout PDIP-16 - same pinout PDIP-16 - same pinout
Brand Texas Instruments Texas Instruments Texas Instruments onsemi Nexperia
Function 3-to-8 decoder/demux, inverting 3-to-8 decoder/demux, inverting 3-to-8 decoder/demux, inverting 3-to-8 decoder/demux, inverting 3-to-8 decoder/demux, inverting
Output Polarity Active low Active low Active low Active low Active low
Supply Voltage Range 2 V to 6 V (HC) 2 V to 6 V 4.5 V to 5.5 V (HCT) 2 V to 6 V 2 V to 6 V
Input Thresholds CMOS levels CMOS levels TTL-compatible levels CMOS levels CMOS levels
Enable Inputs 3 (2 active low, 1 active high) 3 (same structure) 3 (same structure) 3 (same structure) 3 (same structure)
Approx. Price (1 pc, as of 2026-08-29) $0.45 $0.45 [DATA_NEEDED] [DATA_NEEDED] [DATA_NEEDED]

Key Differentiators

  • CMOS-level HC inputs at low power (vs CD74HCT138E)
  • Inverting outputs for active-low chip selects (vs CD74HC238E)
  • Active TI product line with full datasheet support (vs MC74HC138ANG)

Design Notes

Tie all three enable inputs to defined levels - a floating enable leaves outputs undefined and can cause bus contention. For standard decoding, ground E1 and E2 (active low) and tie E3 high; reserve enables for cascading or strobe gating. Also remember all outputs are inverting: a selected output goes LOW, so active-high loads need a subsequent inverter or use the CD74HC238 non-inverting version instead.

Place 0.1uF ceramic decoupling capacitor within a few millimeters of the VCC pin on every HC138 in the system; HC devices switch fast enough to inject supply transients into neighboring analog circuitry. Keep A0-A2 select lines equal length where skew matters (memory decoding across simultaneous address changes) and route enable strobes away from clock lines to prevent decode glitches during transitions.

When cascading two HC138s for 4-to-16 decoding, decode glitches can appear on outputs while select lines settle if the MSB path is much slower than A0-A2. If downstream loads are sensitive (e.g., driving RAM CS during write), register the select inputs or strobe the enables after address settling per TI datasheet SCHS147J timing guidance.

Compliance Information

RoHS
Unknown
REACH
Unknown
AEC-Q100
Not Applicable
Lead Free
Unknown
Halogen Free
Unknown
Conflict Minerals
Unknown

Compliance data not present in provided web data; verify on TI product page for the specific package suffix. Note: the CD74HC138-Q1 variant exists for automotive applications.

Related Searches

CD74HC138 datasheet CD74HC138 vs SN74HC138 CD74HC138 replacement equivalent Texas Instruments CD74HC138 3-to-8 decoder CD74HC138 pinout 16 pin 3 to 8 line decoder demultiplexer active low outputs CD74HC138 memory address decoding circuit CD74HC138 buy price stock how to cascade 74HC138 4-to-16 decoder MC74HC138 equivalent CD74HC138 CD74HC138 vs CD74HC238 difference onsemi 74HC138 drop-in replacement

Related Components & Terms

Texas Instruments CD74HC138 SN74HC138 CD74HCT138 CD74HC238 CD74HC138-Q1 MC74HC138 Nexperia 74HC138 3-to-8 line decoder demultiplexer logic IC High Speed CMOS (HC) silicon-gate CMOS active-low output memory address decoding chip select PDIP-16 SOIC-16 RoHS enable input cascading decoder data routing
Quick Quote RFQ
Fill in complete details β€” our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
βœ“
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details