Texas Instruments

SN74LS138 - 3-to-8 Decoder/Demultiplexer LS-TTL | TI

Référence : SN74LS138 ✓ Actif
En stock Expédié sous 1 à 3 jours ouvrés
5 V (TTL levels) Vdss 8 mA Id 16-PDIP (N) Package
À partir de $0.28 USD / unité
MOQ : 1 |
Prix mis à jour : 2026-08-30
Tarifs dégressifs
Qté Prix unitaire Total
1 $0.65 $0,65
10 $0.55 $5,50
100 $0.42 $42,00
500 $0.35 $175,00
1 000 $0.28 $280,00
ℹ️ Tous les prix sont en USD

SN74LS138 Présentation

The SN74LS138 is a 3-line to 8-line decoder/demultiplexer from Texas Instruments, part of the 74LS family of Schottky-clamped TTL MSI circuits designed for high-performance memory decoding and data-routing applications requiring very short propagation delay times. It provides three binary select inputs (A, B, C), three enable inputs (G1, G2A, G2B), and eight active-low outputs (Y0-Y7), operating from a 5V supply over 0C to +70C.

A decoder is a combinational logic circuit that converts binary information from n input lines to a maximum of 2^n unique output lines. The 3-to-8 decoder is a fundamental building block in digital systems, used to select one of eight devices based on a 3-bit address. As an MSI device, it sits between SSI gates and LSI circuits in the digital logic hierarchy, and decoders are essential in memory address decoding where they enable specific memory chips.

Key features include a typical propagation delay of 20 ns, low LS-TTL power dissipation (about 32 mW typical), and active-low outputs that sink up to 8 mA. The three enable inputs allow cascading multiple decoders into larger arrays (e.g., 4-to-16) and gating the device with control signals. Schottky-clamped TTL technology delivers high speed with good noise immunity and full TTL compatibility with 74LS, 74ALS, and 74AS families.

The device is offered in 16-pin PDIP (N), SOIC (D), and SOP (NS) packages; the SN74LS138N in 16-PDIP is popular for through-hole and breadboard prototyping. According to the TI datasheet, the SN74LS138 is characterized from 0C to 70C for commercial operation.

Typical applications include memory chip-select decoding in microprocessor systems, peripheral address decoding, and demultiplexing a single data line to one of eight outputs.

Design tip: enable the device by driving G1 high and G2A/G2B low; tie unused inputs to valid logic levels to avoid floating nodes, and exploit the active-low outputs to drive active-low chip-select pins directly.

Alternatives de remplacement direct pour SN74LS138 — même boîtier, compatible broche à broche. Les références à boîtier différent nécessitant une retouche du PCB sont exclues.

Variantes de cette série

Modèles de la même série directement compatibles avec SN74LS138 (même facteur de forme et même empreinte) — différant par Enable Inputs, Logic Family, Mounting Type, Package, Select Inputs.

Texas Instruments
Enable Inputs: 3 (two active-low, one active-high)
Logic Family: HC (High Speed CMOS)
Mounting Type: Through-Hole (PDIP variant) / Surface Mount (SOIC variant)
Comparer avec SN74LS138 →

Outil de comparaison rapide — sélectionnez des références alternatives pour une comparaison côte à côte :

SN74S138A

✅ Remplacement direct ⚠️ Spécifications non vérifiées
📦 16-PDIP (N)
faster standard-Schottky (S) version, same pinout and function, higher power

📋 Alternative de référence (hors catalogue)

SN74LS138N

✅ Remplacement direct
📦 16-PDIP (N)
second-source identical part from onsemi, same pinout and specs

📋 Alternative de référence (hors catalogue)

SN74HC138N

✅ Remplacement direct
📦 16-PDIP (N)
CMOS family, lower power, 2V-6V supply, CMOS input thresholds

📋 Alternative de référence (hors catalogue)

CD74HC138

✅ Remplacement direct
Texas Instruments
📦 16-PDIP (N)
3-to-8 Line Decoder/Demultiplexer, inverting outputs · HC (High Speed CMOS) · 2 V to 6 V · 3 (A0, A1, A2) · 8 active-low (Y0-Y7) · 3 (two active-low, one active-high) · Inverting (active-low) · High-speed silicon-gate CMOS

✓ En stock

$0.18 / unité

Voir la fiche technique →

74HCT138

✅ Remplacement direct ⚠️ Spécifications non vérifiées
📦 16-PDIP (N)
cross-brand CMOS with TTL-compatible thresholds, recommended by Die Devices as replacement

📋 Alternative de référence (hors catalogue)

ℹ️ 1 référence(s) à boîtier différent masquée(s) — un boîtier différent exige une retouche du PCB et ne constitue pas un remplacement direct. Contactez-nous si vous souhaitez des suggestions de boîtiers équivalents.

SN74LS138 Valeurs maximales et caractéristiques électriques

Fonction 3-line to 8-line Decoder/Demultiplexer
Logic Family 74LS (Schottky-clamped TTL)
Tension d'alimentation 5 V (TTL levels)
Propagation Delay 20 ns (typical)
Outputs 8 active-low (Y0-Y7)
Select Inputs 3 (A, B, C)
Enable Inputs 3 (G1 active-high, G2A/G2B active-low)
Output Sink Current 8 mA
Power Dissipation 32 mW (typical)
Température de fonctionnement 0C to +70C
Boîtier 16-PDIP (N)
Other Packages SOIC (D), SOP (NS)
Type de montage Through Hole (PDIP variant)
Technology Bipolar TTL MSI
Applications High-performance memory decoding, data routing

Configuration des broches de SN74LS138

DIP-16 Package Pinout Diagram DIP-16 16-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 16 2 15 3 14 4 13 5 12 6 11 7 10 8 9 DIP-16
Broche 1 A — Select input A (LSB)
Broche 2 B — Select input B
Broche 3 C — Select input C (MSB)
Broche 4 G2A — Enable input, active-low
Broche 5 G2B — Enable input, active-low
Broche 6 G1 — Enable input, active-high
Broche 7 Y7 — Output 7, active-low
Broche 8 GND — Ground
Broche 9 Y6 — Output 6, active-low
Broche 10 Y5 — Output 5, active-low
Broche 11 Y4 — Output 4, active-low
Broche 12 Y3 — Output 3, active-low
Broche 13 Y2 — Output 2, active-low
Broche 14 Y1 — Output 1, active-low
Broche 15 Y0 — Output 0, active-low
Broche 16 VCC — Supply voltage, 5 V

Applications typiques

SN74LS138 convient pour 6 applications: Memory Chip-Select Decoding, Peripheral Address Decoding, Data Demultiplexing, Cascaded 4-to-16 Decoding, LED and Indicator Sequencing, Breadboard Prototyping and Education.

🖥️

Memory Chip-Select Decoding

The primary application of the SN74LS138 per its TI datasheet is high-speed bipolar memory chip-select address decoding. The three select inputs (A, B, C) decode a 3-bit address into one of eight active-low outputs that directly drive memory device CS/ pins, with only 20 ns typical propagation delay preserving microprocessor memory-cycle timing budgets. Placed on the upper address bus bits, it activates exactly one memory chip per access; the enables (G1, G2A, G2B) can gate decoding with bus control signals to prevent spurious chip selects during address transitions.

🧩

Peripheral Address Decoding

In embedded systems with multiple I/O peripherals sharing a bus, the SN74LS138 decodes address bits to generate individual peripheral select strobes. Its 8 mA output sink capability directly drives active-low chip-enable inputs of UARTs, timers, and parallel ports without external buffers, and the 20 ns delay adds negligible latency to I/O cycles. The three enable inputs allow bank-switching: one enable can be tied to a memory-mapped I/O region signal, restricting peripheral selection to the correct address space and eliminating bus conflicts.

🔧

Data Demultiplexing

With data applied to one enable input (e.g., G1) and the address on A/B/C, the SN74LS138 routes a single data stream to one of eight outputs, functioning as a 1-to-8 demultiplexer. According to the TI datasheet, the outputs are active-low, so an enabled output inverts the data - a simple inverter recovers polarity, or system logic can account for it. This suits serial-to-parallel fan-out of control signals such as LED column drives, relay select lines, or test-equipment channel activation with deterministic 20 ns routing delay.

🖥️

Cascaded 4-to-16 Decoding

Two SN74LS138 devices cascade into a 4-to-16 decoder using the enable architecture: the MSB drives G1 of the upper decoder and G2A of the lower decoder, G2B is grounded on both, and the lower three address bits are shared. This configuration yields sixteen active-low selects with one added stage of enable delay only. The scheme extends to 5-to-32 with four devices and a secondary decoder, a standard technique in larger memory arrays and legacy backplane designs where 74LS timing and drive characteristics must remain uniform.

💡

LED and Indicator Sequencing

The SN74LS138 drives LED columns, indicator banks, or discrete status displays by decoding a counter or microcontroller port into one-of-eight active-low select lines. Each output sinks up to 8 mA, sufficient to sink current directly through an LED with a series resistor in common-anode configurations. Scanning eight columns with a 3-bit counter running at moderate frequency yields multiplexed displays with a 1:8 duty cycle; the fast 20 ns decode transition minimizes ghosting between columns, and the enable inputs blank the entire bank between frames.

🔧

Breadboard Prototyping and Education

The 16-PDIP SN74LS138N package is a staple of through-hole breadboard prototyping and digital logic education, illustrating combinational decoding, enable logic, and demultiplexing concepts with a classic 74LS MSI device. Its TTL 5V supply, standard 0.1-inch pin pitch, and widely documented function table (per the TI datasheet) make it beginner-friendly, while active-low outputs teach logic polarity conventions. Students commonly pair it with counter ICs for sequencers and with memory chips for address-decoding labs, and it is interchangeable with HC-family equivalents for lower-power experiments.

What is the SN74LS138 used for?
The SN74LS138 is used for memory address decoding and data routing in digital systems. It converts a 3-bit binary address into one of eight active-low outputs (Y0-Y7), making it ideal for memory chip-select decoding in microprocessor systems. According to the TI datasheet, it is designed for high-performance memory decoding with very short propagation delay times of typically 20 ns.
What is the difference between SN74LS138 and SN74HC138?
The SN74LS138 uses bipolar Schottky-clamped TTL technology (32 mW typical, 5V TTL thresholds), while the SN74HC138 uses CMOS technology with lower power, wider 2V-6V supply range, and CMOS input thresholds. Both share the same 16-pin pinout, but the HC138 is generally the superior replacement in compatible designs; verify TTL input threshold compatibility when driving from LS-TTL outputs.
Where can I buy SN74LS138 online?
The SN74LS138 is available from major distributors including DigiKey, Mouser, and Octopart-listed suppliers (7 distributors compare on Octopart). The SN74LS138N 16-PDIP version is widely stocked. Prices as of 2026-08-30 start around 0.65 USD at quantity 1 on DigiKey; check distributor sites for current inventory and bulk pricing.
What is the price of SN74LS138?
As of 2026-08-30, the SN74LS138N in 16-PDIP costs approximately 0.65 USD at quantity 1, dropping to roughly 0.28 USD at 1000 units based on typical DigiKey/Mouser tier pricing. Exact pricing varies by distributor, package variant (PDIP, SOIC), and stock levels - compare across DigiKey, Mouser, and Octopart for the best bulk discounts.
How do I enable the SN74LS138 decoder?
To enable the SN74LS138, drive G1 high and both G2A and G2B low. If any enable condition is not met, all eight outputs remain high (inactive). According to the TI datasheet, the three enables can also be used to cascade two SN74LS138 devices into a 4-to-16 decoder or to gate the decoder with external control signals.
Is the SN74HC138 a drop-in replacement for SN74LS138?
Yes, in most designs. The CD74HC138/SN74HC138 share the identical 16-pin pinout and 3-to-8 decoding function, and CMOS offers lower power and higher speed at 5V. Caveat: HC CMOS input logic thresholds differ from TTL levels; when driven by legacy LS-TTL outputs at 5V, consider 74HCT138 instead to guarantee TTL-threshold compatibility.
What is the best drop-in replacement for SN74LS138?
For the same LS-TTL family, the TI SN74S138A (same function, faster Schottky version) and onsemi SN74LS138N (same part number, second source) are drop-in replacements. For a modern CMOS upgrade, the 74HC138/74HCT138 keeps the same pinout with lower power. Die Devices also lists 74HCT138 as a recommended replacement for SN74LS138.
Where to download SN74LS138 datasheet PDF?
The official SN74LS138 datasheet PDF (3-Line To 8-Line Decoders/Demultiplexers) is available free from Texas Instruments at ti.com/lit/ds/symlink/sn74ls138.pdf. It contains the full function table, absolute maximum ratings, recommended operating conditions, switching characteristics, and package outline drawings for the N, D, and NS packages.
Where can I find the SN74LS138 pinout?
The SN74LS138 16-pin pinout is on page 2 of the TI datasheet: pins 1-3 are select inputs A, B, C; pins 4-5 are active-low enables G2A, G2B; pin 6 is active-high enable G1; pins 7 and 9-15 are outputs Y7 through Y0; pin 8 is GND; pin 16 is VCC. Outputs Y0-Y7 are all active-low.
What are the key specifications of SN74LS138?
Key specs: 3-to-8 decoder/demultiplexer, 74LS Schottky-clamped TTL technology, 5V supply, 20 ns typical propagation delay, 8 active-low outputs sinking up to 8 mA, three enable inputs (G1, G2A, G2B), 32 mW typical power, 0C to +70C operating range, in 16-PDIP, SOIC, and SOP packages. Source: TI SN74LS138 datasheet.
What is the operating temperature range of SN74LS138?
The SN74LS138 is characterized for operation from 0C to +70C (commercial temperature range) according to the TI product page. For military-grade applications requiring -55C to +125C, use the SN54LS138 variant, which shares the same function and pinout in ceramic or metal packages.
Can I cascade two SN74LS138 to make a 4-to-16 decoder?
Yes. Connect the MSB address line to G1 of one decoder and to G2A (via inverter or directly depending on polarity) of the other, tie G2B low on both, and share the three lower address bits and G1. Each decoder handles one half of the 16 outputs. The enable structure is specifically designed for such cascading per the TI datasheet.
Is SN74LS138 still in production?
Yes, the SN74LS138 remains an active product in the Texas Instruments catalog as of 2026-08-30, listed on ti.com with full datasheet support. Second sources from onsemi also exist. It is a mature part, but TI still manufactures it for legacy TTL designs; verify long-term availability with your distributor for new designs.
Is the onsemi SN74LS138 equivalent to the Texas Instruments version?
Yes, the onsemi SN74LS138 is a functionally and pin-compatible equivalent bearing the same part number. The LSTTL/MSI SN74LS138 from onsemi is described as a high-speed 1-of-8 decoder/demultiplexer suited for bipolar memory chip-select address decoding. Minor second-source differences may exist in speed grades; confirm propagation delay specs against your timing budget.

Données de référence d'ingénierie pour SN74LS138 — comparaison, recommandations de conception et informations de conformité.

Guide de sélection

Choose SN74LS138 when repairing, extending, or cloning legacy 74LS TTL systems where bipolar input thresholds, 5V-only operation, and original timing characteristics must be preserved bit-for-bit. Choose the onsemi SN74LS138N as a second source when TI stock or lead time is unfavorable - it is the same part number and footprint. Choose TI SN74S138A if your memory decode timing budget is tighter than 20 ns and you can tolerate higher power. For new designs, prefer 74HCT138 (same pinout, TTL-compatible thresholds, CMOS low power, wider temperature range) or 74HC138 when driving levels are CMOS; both are drop-in on the same 16-PDIP footprint. Avoid mixing HC inputs directly with LS-TTL output drivers without verifying VOH margins. The SN54LS138 variant covers -55C to +125C military requirements.

Comparaison avec les alternatives

Paramètre Ce produit SN74S138A SN74LS138N (onsemi) SN74HC138N CD74HC138 74HCT138
Package 16-PDIP (N) 16-PDIP (N) - same 16-PDIP (N) - same 16-PDIP (N) - same 16-PDIP (N) - same 16-PDIP (N) - same
Brand Texas Instruments Texas Instruments onsemi Texas Instruments Texas Instruments NXP Semiconductors
Logic Family 74LS (Schottky TTL) 74S (standard Schottky TTL) 74LS (Schottky TTL) 74HC (CMOS) 74HC (CMOS) 74HCT (CMOS, TTL thresholds)
Supply Voltage 5 V (TTL) 5 V (TTL) 5 V (TTL) 2 V to 6 V 2 V to 6 V 4.5 V to 5.5 V
Power Dissipation 32 mW (typ) Higher than LS 32 mW (typ) Much lower (CMOS) Much lower (CMOS) Much lower (CMOS)
Operating Temperature 0C to +70C 0C to +70C 0C to +70C -40C to +85C -55C to +125C (ceramic variants) -40C to +125C
Output Type 8 active-low outputs 8 active-low outputs - same 8 active-low outputs - same 8 active-low outputs - same 8 active-low outputs - same 8 active-low outputs - same

Principaux différenciateurs

  • True LS-TTL second-source ecosystem (vs SN74HC138N)
  • Three-input enable for cascading and gating (vs Simple decoder gates)
  • Lower power than SN74S138A (vs SN74S138A)

Notes de conception

Enable the device by driving G1 high and both G2A and G2B low; any unmet enable condition forces all outputs high (inactive). Tie all three enable pins to valid static levels if cascading is not used - floating enables cause spurious output glitches. Unused select inputs must also be tied to VCC or GND, never left floating, as TTL inputs that float can pick up noise and randomly change the decoded output.

Decouple VCC (pin 16) to GND with a 0.1 uF ceramic capacitor placed within a few millimeters of the pin. LS-TTL devices draw current spikes during output switching; without local decoupling, ground bounce can falsely trigger adjacent logic. At 32 mW typical dissipation no heatsinking is required, but total supply current grows with output loading - account for up to 8 mA sunk per active output in your 5V rail budget.

The 20 ns typical propagation delay is a typ spec; design timing margins using the datasheet maximum values at your temperature and load conditions. When driving long lines or memory chip-selects, note that active-low outputs sinking 8 mA have asymmetric rise (passive pull-up, ~few hundred ohms) and fall times - critical edges are falling edges. For mixed-family designs, remember HC CMOS inputs may not meet TTL VOH thresholds when driven directly from LS outputs; prefer 74HCT138 in such upgrades.

Informations de conformité

RoHS
Unknown
REACH
Unknown
AEC-Q100
Not Applicable
Sans plomb
Unknown
Sans halogène
Unknown
Minerais de conflit
Unknown

Compliance data not present in provided verified web data; check TI product page for current RoHS/REACH status. Note that original LS-TTL parts may be non-RoHS; RoHS-compliant suffix variants (e.g., -G4 or -E4) may exist.

Données vérifiées le : 2026-08-30 — données vérifiées et sélectionnées par l'équipe d'ingénierie composants de XAIPART

Recherches associées

SN74LS138 datasheet SN74LS138N Texas Instruments SN74LS138 74LS138 3-to-8 decoder pinout SN74LS138 equivalent substitute SN74LS138 vs 74HC138 SN74LS138 memory address decoding SN74LS138 buy price DigiKey SN74LS138 drop-in replacement what can replace SN74LS138 74LS138 cascade 4-to-16 decoder 16-PDIP decoder demultiplexer 5V

Composants & termes associés

Texas Instruments SN74LS138 SN74LS138N SN74S138A SN74HC138N CD74HC138 74HCT138 onsemi decoder/demultiplexer 3-to-8 line decoder MSI (medium-scale integration) 74LS family Schottky-clamped TTL combinational logic 16-PDIP SOIC memory address decoding chip select propagation delay enable inputs (G1, G2A, G2B) active-low outputs demultiplexer
RFQ de devis rapide
Renseignez tous les détails — notre équipe commerciale vous répondra sous 24 heures
Référence Fabricant Boîtier QTY Prix cible Total
Total : 0,00 USD
✓
Devis envoyé !

Nous répondrons à votre e-mail sous 24 heures

1
RFQ envoyée
2
Devis reçu
3
Commande passée
4
Paiement
5
Expédié
6
Livré
Voir les détails de la RFQ