Texas Instruments SN74HC138N

Part No.:
SN74HC138N
Manufacturer:
Texas Instruments
Category:
Signal Switches, Multiplexers, Decoders
Package:
16-DIP (0.300", 7.62mm)
Datasheet:
ICMASS.COMSN74HC138N.pdf
Description:
IC DECODER/DEMUX 1X3:8 16DIP
Quantity:

Unit Price:$0

Ext Price:$0

Payment:
Payment
Shipping:
Shipping

SN74HC138N Information

  • Specifications
  • Product Details
  • Comparison
  • Tags
Product attributes
Attribute value
Manufacturer:
Texas Instruments
Series:
74HC
Package/Case:
16-DIP (0.300", 7.62mm)
Packaging:
Tube
Product Status:
Active
Type:
Decoder/Demultiplexer
Circuit:
1 x 3:8
Independent Circuits:
1
Current - Output High, Low:
5.2mA, 5.2mA
Voltage Supply Source:
Single Supply
Voltage - Supply:
2V ~ 6V
Operating Temperature:
-40°C ~ 85°C
Grade:
-
Qualification:
-
Mounting Type:
Through Hole
Supplier Device Package:
16-PDIP
Datasheet:
ICMASS.COMSN74HC138N.pdf

SN74HC138N — 3-to-8 Line Decoder/Demultiplexer with Active-Low Outputs (PDIP-16)

The SN74HC138N is Texas Instruments' 3-to-8 line decoder/demultiplexer — three address bits in, eight chip-select outputs out, in a through-hole PDIP-16.

It turns a 3-bit address into exactly one active output: the selected Y goes low, the other seven stay high.

Three enable inputs (one active-high, two active-low) let you gate the decode with your own signals — and cascade two chips into a 4-to-16, or three into a 24-line decoder with no extra inverters.

In the repair and upgrade work we support (2025–2026), the failure we see most in old Z80/8085 boards is the enables wired backwards — G1 tied low and G2A/G2B tied high. The chip does nothing, and the board looks dead until someone checks the three enable pins.

Three inputs, one decision — get the enables right and the decoding takes care of itself.

What Are the Technical Specifications of SN74HC138N?

ParameterValue
Type3-to-8 line decoder / demultiplexer, active-low outputs
OutputsY0–Y7, active-low — selected output sinks, others idle high
Address InputsA, B, C (3 bits → 8 states)
Enable InputsG1 (active-high) + G2A, G2B (active-low) — all three must agree for decode
Supply Voltage2V to 6V (typical 5V single supply)
Propagation Delay15ns typical (TI official)
Quiescent Current8µA typical (80µA max)
Output Drive±4mA at 5V; drives up to 10 LSTTL loads
Input Current1µA max
Operating Temperature-40°C to +85°C
Package / PinoutPDIP-16: 1=A, 2=B, 3=C, 4=G2A, 5=G2B, 6=G1, 7=Y7, 8=GND, 9=Y6, 10=Y5, 11=Y4, 12=Y3, 13=Y2, 14=Y1, 15=Y0, 16=VCC
Maximum Bandwidth28MHz
Max Power Dissipation320mW
ComplianceRoHS, lead-free; EAR99

Key numbers that matter: Per the TI SN74HC138 datasheet, the 15ns propagation delay is what makes it the standard memory decoder — the chip-select arrives quickly enough for 28MHz-class buses without wait states.

The three-enable scheme is the real feature: tie the enables to address bits or strobe lines, and one 138 gates memory, I/O, and peripherals from the same three decoded lines.

PDIP-16 top view — pin 1 notch at top left SN74HC138N 3-TO-8 DECODER A B C G2A G2B G1 Y7 GND Y6 Y5 Y4 Y3 Y2 Y1 Y0 VCC A, B, C select the output. G1 must be high AND G2A + G2B low for decode to happen. Selected Y goes LOW; the other seven outputs stay high.

Active-low catches everyone once: the 138's outputs are inverted — the selected line goes low. CPU chip selects are almost always active-low, so the 138 matches the bus. If you want the opposite polarity, the 74HC238 is the active-high sibling.

When Should You Use (and NOT Use) the SN74HC138N?

✅ Use SN74HC138N when:

  • Memory or peripheral chip select. Three address lines expand to eight chip-selects, and the 15ns delay keeps fast buses happy without wait states.
  • Gating with your own control signals. The three enables double as data/strobe inputs — gate the decode with RD, WR, or an address strobe and you get a demultiplexer for free.
  • Building a 4-to-16 or larger decoder. Two 138s cascade to 16 outputs; three reach 24 with no external inverters at all.
  • 2V–6V mixed-rail systems. The same part runs 3.3V and 5V logic, and the 8µA quiescent current barely registers on the power budget.
  • Through-hole prototypes. The PDIP body is breadboard-friendly and the whole family is still in active production.

❌ Don't use SN74HC138N when:

  • You need active-high outputs. The 138 only drives the selected line low — use the 74HC238 for active-high selects without adding inverters.
  • You're routing analog signals. A decoder switches digital levels, not signals — the 74HC4052 analog multiplexer handles audio or sensor routing.
  • You need to serialize data. The 138 has no shift capability — the 74HC595 shift register is the output-expansion part.
  • More than 8 selects with full enable flexibility. At that point the 74HC154 (4-to-16, single chip) usually beats two 138s on layout.

What Are the Alternatives to SN74HC138N?

ModelTypeKey DifferenceBest For
74HC2383-to-8 decoderActive-high outputs, same pins and enablesHigh-side selects, active-high chip enables
74HC139Dual 2-to-4 decoderTwo independent 2-to-4 decoders in one 16-pin bodyTwo small decode blocks, fewer wasted pins
74HC1544-to-16 decoderSingle-chip 16-output decode, 24-pinFull 16-line memory maps without cascading
74HC4052Analog multiplexerRoutes analog signals, not digital selectsAudio, sensor, and ADC channel switching
74HC595Shift registerSerial data expansion, no address conceptAdding outputs without address wires

Pick by polarity, then by scale. Active-low selects — the 138. Active-high — the 238. Two independent small decodes — the 139. A full 16-line map in one chip — the 154.

And if you're debating between a decoder and a shift register: the 138 answers "which one," the 595 answers "all of these."

Decoder outputs per chip — how the family scales

SN74HC138 (16-pin)
8
74HC139 (16-pin)
4+4
74HC154 (24-pin)
16

Two 138s cascade to 16 outputs; three reach 24 with no external inverters (TI datasheet feature). A single 154 replaces the two-chip cascade — at the cost of a 24-pin body.

What Are the Typical Applications of SN74HC138N?

Memory Map Decoding in a Retro-Style 8-Bit System: The 138 takes the upper address lines and produces chip-selects for RAM, ROM, and two I/O blocks. The 15ns delay keeps the selects valid before the CPU samples data — no wait states, no glue logic beyond the 138 itself.

Three-Enable Demultiplexer: With G1 and G2A tied to strobes, the 138 routes serial data to one of eight outputs. The enables become the data line — the datasheet's "enables can serve as data inputs" trick in practice.

Expanded 4-to-16 Peripheral Select: Two 138s plus one inverter select 16 peripherals from four address bits. The first chip covers addresses 0–7, the second covers 8–15, and both share the same three low address lines.

4-to-16 cascade — A3 routes the two 138s; A0–A2 are shared CPU BUS A0–A2 A3 U1 138 Y0–Y7 U2 138 Y8–Y15 INV A3 (inv) → U1 G1 VCC 5V GND A3 low → U1 decodes Y0–Y7 (A3 inverted to U1’s G1). A3 high → U2 decodes Y8–Y15. A0–A2 feed both chips’ address pins.

Why one inverter does it: U1's G1 gets the inverted A3, so it decodes when A3 is low; U2's G1 gets A3 directly, so it takes over when A3 goes high. Each chip holds its own 8 outputs idle-high — no conflict, no overlap, 16 selects from one extra inverter.

Why Buy SN74HC138N from ICMASS?

Genuine TI die, tested for the enable trap. We verify all three enables and the active-low output polarity on every incoming lot — a remarked 74LS138 or a mis-marked 238 would fail the check instantly, and those are exactly the parts that cost a week of debugging.

Logic family in one shipment. You're ordering the 138 for decode, the 595 for output expansion, and the 4052 for analog routing — we stock the ON and TI logic families from Shenzhen with same-day dispatch.

Cross-reference support. Not sure whether your board needs active-low (138), active-high (238), or a dual 2-to-4 (139)? Tell us the select polarity and the bus speed — we'll confirm the right part before you commit the BOM.

Frequently Asked Questions About SN74HC138N

Q1: What is the SN74HC138N?

A: A 3-to-8 line decoder/demultiplexer — three address bits select one of eight active-low outputs. Texas Instruments' SN74HC138N in PDIP-16 runs from 2V to 6V, with three enable inputs (G1 high, G2A/G2B low) and a 15ns typical propagation delay.

Q2: Are the 74HC138 outputs active-high or active-low?

A: Active-low — the selected output goes low, the other seven stay high. This is the number one surprise for new users, and it matches CPU chip-select conventions, which are almost always active-low. Want the opposite? The 74HC238 is the active-high version.

Q3: Why is my 74HC138 not decoding anything?

A: Check the three enables — G1 must be high, G2A and G2B must be low. On an 8085 forum thread the fix was exactly this: the user had G1 tied to GND and G2A/G2B tied to VCC — every enable backwards. The chip never decodes until all three agree.

Q4: What do G1, G2A and G2B do?

A: They gate the decode — all three must be in the right state for an output to fire. G1 is active-high; G2A and G2B are active-low. Beyond enabling, they can carry data or strobe signals, turning the 138 into a demultiplexer.

Q5: Can I cascade two 74HC138s into a 4-to-16 decoder?

A: Yes — one inverter is all it takes. Feed A0–A2 to both chips, run the fourth address bit to U2's G1 directly and to U1's G1 through an inverter. U1 decodes 0–7, U2 decodes 8–15, and there is no overlap.

Q6: Why do I see spikes or glitches on the outputs?

A: Internal race conditions when two address bits change at once — normal logic behavior, not a bad chip. A Stack Exchange answer points out that gates are undefined while inputs sit between thresholds; they settle right after the last input. Leave enough settling time before clock edges, or skew the inputs (the reason Gray-code counters exist).

Q7: Why do other decoder outputs go low during DRAM refresh?

A: The CPU's address bus is still active during refresh cycles — gate the decode with RD or WR strobes. Classic Z80 behavior: refresh addresses appear on the bus without valid strobes, and un-gated decoders respond to them. Adding the read/write signal to an enable pin fixes it.

Q8: My decoder only works when I touch the ground wire — why?

A: A poor ground connection, not a decoder problem. A Z80 builder on Stack Overflow had the same symptom — erratic decoding until touching the GND line. Re-check the ground path and the address-bus wiring before suspecting the chip.

Q9: How fast is the 74HC138?

A: 15ns typical propagation delay, about 28MHz maximum bandwidth. That covers memory decoding for most 8-bit and small 16-bit buses without wait states. Faster systems step up to the 74AHC138 class.

Q10: How much does SN74HC138N cost and is it in stock?

A: Volume pricing typically ranges from $0.05–$0.12/unit depending on quantity and date code. ICMASS stocks SN74HC138N in PDIP-16 and ships same-day from Shenzhen. Contact us for a quote on your specific quantity.

Image SN74HC138N SN74HC138NSR SN74HC138NG4 SN74HC138NS SN74HC138NE4
Part Number SN74HC138N SN74HC138NSR SN74HC138NG4 SN74HC138NS SN74HC138NE4
Manufacturer Texas Instruments Texas Instruments Texas Instruments Texas Instruments Texas Instruments
Series 74HC 74HC 74HC 74HC 74HC
Package/Case 16-DIP (0.300", 7.62mm) 16-SOIC (0.209", 5.30mm Width) 16-DIP (0.300", 7.62mm) 16-SOIC (0.209", 5.30mm Width) 16-DIP (0.300", 7.62mm)
Packaging Tube Tape & Reel (TR) Tube Tube Tube
Product Status Active Active Discontinued at Digi-Key Obsolete Active
Type Decoder/Demultiplexer Decoder/Demultiplexer Decoder/Demultiplexer Decoder/Demultiplexer Decoder/Demultiplexer
Circuit 1 x 3:8 1 x 3:8 1 x 3:8 1 x 3:8 1 x 3:8
Independent Circuits 1 1 1 1 1
Current - Output High, Low 5.2mA, 5.2mA 5.2mA, 5.2mA 5.2mA, 5.2mA 5.2mA, 5.2mA 5.2mA, 5.2mA
Voltage Supply Source Single Supply Single Supply Single Supply Single Supply Single Supply
Voltage - Supply 2V ~ 6V 2V ~ 6V 2V ~ 6V 2V ~ 6V 2V ~ 6V
Operating Temperature -40°C ~ 85°C -40°C ~ 85°C -40°C ~ 85°C -40°C ~ 85°C (TA) -40°C ~ 85°C
Grade - - - - -
Qualification - - - - -
Mounting Type Through Hole Surface Mount Through Hole Surface Mount Through Hole
Supplier Device Package 16-PDIP 16-SO 16-PDIP 16-SO 16-PDIP
  • SN74HC138N
  • SN74HC138N PDF
  • SN74HC138N Datasheet
  • SN74HC138N Specifications
  • SN74HC138N Images
  • Texas Instruments
  • Texas Instruments SN74HC138N
  • Buy SN74HC138N
  • SN74HC138N Price
  • SN74HC138N Distributor
  • SN74HC138N Supplier
  • SN74HC138N Wholesale

User Guide

  • Purchase & Inquiry
  • Package
  • Shipping Information
  • Customer Review
Purchase

You may place an order without registering to IC-MAX.COM
We strongly suggest you sign in before purchasing as you can track your order in real time.

Means of Payment

For your convenience, we accept multiple payment methods in USD, including PayPal, Credit Card, and wire transfer.

RFQ (Request for Quotations)

It is recommended to request for quotations to get the latest prices and inventories about the part.
Our sales will reply to your request by email within 24 hours.

IMPORTANT NOTICE

1. You'll receive an order information email in your inbox. (Please remember to check the spam folder if you didn't hear from us).
2. Since inventories and prices may fluctuate to some extent, the sales manager is going to reconfirm the order and let you know if there are any updates.

Step1:Prepare product
Step1:Prepare product
Step2:Vacuum packaging
Step2:Vacuum packaging
Step3:Anti-static bag
Step3:Anti-static bag
Step4:Individual package
Step4:Individual package
Step5:Packaging box
Step5:Packaging box
Step6:Barcode shipping label
Step6:Barcode shipping label
Shipping Cost

Shipping starts at $40, but some countries will exceed $40. For example (South Africa, Brazil, India, Pakistan, Israel, etc.)
The basic freight (for package ≤0.5kg or corresponding volume) depends on the time zone and country.

Shipping Method

Currently, our products are shipped through DHL, FedEx, SF, and UPS.

Delivery Time

Once the goods are shipped, estimated delivery time depends on the shipping methods you chose:

FedEx International, 5-7 business days.

The following are some common countries' logistic time.

Content update in progress...
  • Hot Sale
  • Related Categories
  • Include Parts
  • Popular Search

The following parts include "SN74HC138N" in Silicon Labs SN74HC138N.

  • Part Number
  • Manufacturer
  • Package
  • Description

The following parts are popular search parts in Test and Measurement.

Inventory:3,583

Please send an inquiry. Send us your inquiry, and we will respond immediately.

Part Number
Quantity
Country
Name
Company
Email
Comments

In Stock:3,583

Qty. Unit Price Ext. Price
RFQ now Add to RFQ List
index: 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
ICMASS.COM

HOME

ICMASS.COM

PRODUCT

ICMASS.COM

PHONE

ICMASS.COM

USER