SN74HC138N.pdf
Unit Price:$0
Ext Price:$0
SN74HC138N.pdf
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.
| Parameter | Value |
|---|---|
| Type | 3-to-8 line decoder / demultiplexer, active-low outputs |
| Outputs | Y0–Y7, active-low — selected output sinks, others idle high |
| Address Inputs | A, B, C (3 bits → 8 states) |
| Enable Inputs | G1 (active-high) + G2A, G2B (active-low) — all three must agree for decode |
| Supply Voltage | 2V to 6V (typical 5V single supply) |
| Propagation Delay | 15ns typical (TI official) |
| Quiescent Current | 8µA typical (80µA max) |
| Output Drive | ±4mA at 5V; drives up to 10 LSTTL loads |
| Input Current | 1µA max |
| Operating Temperature | -40°C to +85°C |
| Package / Pinout | PDIP-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 Bandwidth | 28MHz |
| Max Power Dissipation | 320mW |
| Compliance | RoHS, 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.
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.
✅ Use SN74HC138N when:
❌ Don't use SN74HC138N when:
| Model | Type | Key Difference | Best For |
|---|---|---|---|
| 74HC238 | 3-to-8 decoder | Active-high outputs, same pins and enables | High-side selects, active-high chip enables |
| 74HC139 | Dual 2-to-4 decoder | Two independent 2-to-4 decoders in one 16-pin body | Two small decode blocks, fewer wasted pins |
| 74HC154 | 4-to-16 decoder | Single-chip 16-output decode, 24-pin | Full 16-line memory maps without cascading |
| 74HC4052 | Analog multiplexer | Routes analog signals, not digital selects | Audio, sensor, and ADC channel switching |
| 74HC595 | Shift register | Serial data expansion, no address concept | Adding 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."
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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 |
|
|
|
|
|
| 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 |
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.
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.
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.
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.
Currently, our products are shipped through DHL, FedEx, SF, and UPS.
Delivery TimeOnce 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.
The following parts include "SN74HC138N" in Silicon Labs SN74HC138N.
The following parts are popular search parts in Test and Measurement.