Texas Instruments

SN74LS138 - 3-to-8 Line Decoder/Demultiplexer | Texas Instruments

MPN: SN74LS138 βœ“ Active
In Stock Ships in 1-3 business days
4.75 V to 5.25 V Vdss 8 mA (sink) Id 16-PDIP (N), 16-SOIC (D), 16-SOP (NS) Package
From $0.19 USD / Unit
MOQ: 1 |
Price updated: 2026-08-27
Volume Pricing
Qty Unit Price Extended
1 $0.45 $0.45
10 $0.38 $3.80
100 $0.29 $29.00
500 $0.24 $120.00
1,000 $0.19 $190.00
ℹ️ All prices are in USD

Drop-in alternatives for SN74LS138 β€” 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:

SN74LS138N

βœ… Drop-In
πŸ“¦ 16-PDIP
Same die, PDIP package variant

πŸ“‹ Reference alternative (not in catalog)

SN74LS138D

βœ… Drop-In
πŸ“¦ 16-SOIC
Same die, SOIC package variant

πŸ“‹ Reference alternative (not in catalog)

SN74LS138NS

βœ… Drop-In
πŸ“¦ 16-SOP
Same die, SOP package variant

πŸ“‹ Reference alternative (not in catalog)

MC74LS138

βœ… Drop-In
πŸ“¦ 16-PDIP
Cross-brand, same function and pinout

πŸ“‹ Reference alternative (not in catalog)

74HC138

βœ… Drop-In
πŸ“¦ 16-PDIP
CMOS technology, lower power, different input thresholds

πŸ“‹ Reference alternative (not in catalog)

74HCT138

βœ… Drop-In
πŸ“¦ 16-PDIP
CMOS with TTL-compatible inputs, same pinout

πŸ“‹ Reference alternative (not in catalog)

SN74LS138 Maximum Ratings & Electrical Characteristics

Function 3-to-8 line decoder/demultiplexer
Number of Inputs 3 (A, B, C)
Number of Outputs 8 (Y0-Y7, active-low)
Enable Inputs 3 (G1 active-high, G2A and G2B active-low)
Supply Voltage (VCC) 4.75 V to 5.25 V
Propagation Delay Time (tpd) 20 ns (typical)
Output Current (IOL) 8 mA (sink)
Power Dissipation 32 mW (typical)
Operating Temperature Range 0Β°C to 70Β°C
Technology Schottky-clamped TTL (LS)
Package Type 16-PDIP (N), 16-SOIC (D), 16-SOP (NS)
Mounting Type Through-hole (PDIP) or Surface Mount (SOIC/SOP)
Logic Family 74LS
RoHS Status Compliant
MSL Level 1 (unlimited)

SN74LS138 Pin Configuration

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
Pin 1 A β€” Select input A (LSB)
Pin 2 B β€” Select input B
Pin 3 C β€” Select input C (MSB)
Pin 4 G2A β€” Enable input (active-low)
Pin 5 G2B β€” Enable input (active-low)
Pin 6 G1 β€” 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 β€” Positive supply voltage (5V)

Safe Operating Area (SOA) & Thermal Characteristics

Safe Operating Area Chart Default safe operating area chart for SN74LS138 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

SN74LS138 is suitable for 6 applications: Memory Chip Select Decoding, Data Routing and Demultiplexing, Address Decoding in Peripheral Interfaces, Industrial Control Logic, Educational and Prototyping, Test and Measurement Equipment.

πŸ–₯️

Memory Chip Select Decoding

The SN74LS138 is ideal for memory chip select address decoding in microprocessor systems. Its three enable inputs allow cascading to create larger decoders, and its active-low outputs directly drive active-low chip select pins on memory devices. The short propagation delay (20 ns) ensures fast access times, making it suitable for high-speed bipolar memory decoding. For example, in an 8085-based system, the SN74LS138 can decode the upper address lines to select among multiple memory banks, ensuring each chip is enabled only when its address range is accessed.

πŸ”§

Data Routing and Demultiplexing

The SN74LS138 can be used as a demultiplexer to route a single data line to one of eight outputs based on the select inputs. This is useful in data acquisition systems where multiple sensors share a single data bus. The active-low outputs allow direct connection to tri-state buffers or latches. With a propagation delay of 20 ns, it can handle high-speed data routing in multiplexed systems. For example, in a telemetry system, the SN74LS138 can select which sensor's data is placed on the bus, enabling efficient data collection from multiple channels.

🌐

Address Decoding in Peripheral Interfaces

In peripheral interface circuits, the SN74LS138 decodes address lines to select specific I/O devices. Its three enable inputs provide flexibility for enabling the decoder only when the CPU is accessing the I/O space. The active-low outputs can directly drive chip select pins on peripheral ICs such as UARTs, timers, and parallel ports. The 20 ns propagation delay ensures minimal address-to-chip-select delay, improving system performance. For example, in a Z80-based system, the SN74LS138 can decode the I/O address lines to select among multiple peripheral devices, ensuring each device responds only to its assigned address.

🏭

Industrial Control Logic

The SN74LS138 is used in industrial control systems for selecting among multiple actuators or sensors based on a binary control word. Its TTL compatibility allows direct interfacing with PLCs and other industrial logic. The active-low outputs can drive relays or optocouplers through appropriate drivers. The wide operating temperature range (0Β°C to 70Β°C) makes it suitable for most industrial environments. For example, in a conveyor belt control system, the SN74LS138 can decode a 3-bit sensor address to activate the corresponding motor driver, enabling efficient routing of items to different destinations.

πŸ”§

Educational and Prototyping

The SN74LS138 is a staple in digital electronics education and prototyping. Its simple 3-to-8 decoding function makes it ideal for teaching combinational logic design. The PDIP package is breadboard-friendly, allowing students to build and test circuits quickly. The device's robustness and wide availability make it a reliable choice for classroom experiments. For example, in a digital logic lab, students can use the SN74LS138 to implement a 3-bit binary to octal display, demonstrating the principles of decoding and demultiplexing.

πŸ”§

Test and Measurement Equipment

In test and measurement equipment, the SN74LS138 is used for channel selection in multi-channel data acquisition systems. Its fast propagation delay (20 ns) ensures accurate timing in high-speed sampling applications. The active-low outputs can enable analog multiplexers or sample-and-hold circuits. The device's TTL compatibility allows easy integration with other logic families. For example, in a logic analyzer, the SN74LS138 can decode the channel address to select which input is routed to the acquisition memory, enabling simultaneous monitoring of multiple digital signals.

What is the SN74LS138?
The SN74LS138 is a 3-to-8 line decoder/demultiplexer from Texas Instruments, part of the 74LS family of Schottky-clamped TTL MSI circuits. It converts a 3-bit binary input into one of eight active-low outputs, with three enable inputs for flexible control. According to the TI datasheet, it operates from 0Β°C to 70Β°C and is designed for high-performance memory decoding and data-routing applications.
What is the propagation delay of SN74LS138?
The typical propagation delay of the SN74LS138 is 20 ns. This short delay makes it suitable for high-speed memory decoding and data routing. The exact value depends on load capacitance and supply voltage, but the datasheet specifies 20 ns typical under standard test conditions.
What is the difference between SN74LS138 and 74HC138?
The SN74LS138 is a TTL device with Schottky clamping, operating at 5V and featuring a typical propagation delay of 20 ns. The 74HC138 is a CMOS device that operates over a wider voltage range (2V to 6V) and has lower power consumption, but its propagation delay is typically longer (around 20 ns at 5V, but varies with voltage). The SN74LS138 has higher output drive capability (8 mA sink) compared to the 74HC138 (typically 4 mA). They are pin-compatible but not always drop-in replacements due to different input thresholds and drive levels.
Can SN74LS138 be used for memory decoding?
Yes, the SN74LS138 is ideally suited for memory chip select address decoding. Its three enable inputs allow cascading to create larger decoders, and its active-low outputs directly drive active-low chip select pins on memory devices. The short propagation delay (20 ns) ensures fast access times in microprocessor systems.
What is the price of SN74LS138?
As of 2026-08-27, the SN74LS138 is priced at approximately $0.45 for single-unit quantities, dropping to $0.19 at 1000 units. Prices vary by distributor and package type; for example, the SN74LS138N (PDIP) is commonly available from DigiKey and Mouser. Check current stock and pricing on distributor websites for the most accurate quotes.
Where can I buy SN74LS138 online?
The SN74LS138 is widely available from major distributors such as DigiKey, Mouser, and Octopart. For example, DigiKey lists the SN74LS138N (16-PDIP) with real-time stock and pricing. You can also purchase from TI.com directly. As of 2026-08-27, it is in stock at most distributors.
What is the lead time for SN74LS138?
The lead time for SN74LS138 is typically 1-2 weeks for standard quantities from major distributors like DigiKey and Mouser. For large orders or specific package variants, lead time may extend to 4-6 weeks. As of 2026-08-27, the part is in active production and readily available.
Is SN74LS138 in stock?
Yes, as of 2026-08-27, the SN74LS138 is in stock at major distributors including DigiKey and Mouser. For example, DigiKey shows the SN74LS138N (PDIP) as 'ships today' with inventory available. Check the specific distributor page for real-time stock levels.
What is the best drop-in replacement for SN74LS138?
The best drop-in replacement for SN74LS138 is the SN74LS138N from Texas Instruments itself, which is the same part in a PDIP package. Other pin-compatible alternatives include the SN74LS138D (SOIC) and SN74LS138NS (SOP). For a CMOS alternative, the 74HC138 is pin-compatible but has different electrical characteristics, so verify compatibility before substituting.
Can 74HC138 replace SN74LS138?
Yes, the 74HC138 can replace the SN74LS138 in most applications because they are pin-compatible and have the same logic function. However, the 74HC138 has CMOS input thresholds and lower output drive (4 mA vs 8 mA), so it may not be a direct drop-in for TTL loads. Ensure the input voltage levels and output current requirements are compatible with your circuit.
Where can I download the SN74LS138 datasheet PDF?
The SN74LS138 datasheet PDF is available from Texas Instruments at https://www.ti.com/lit/ds/symlink/sn74ls138.pdf. It is also hosted on third-party sites like alldatasheet.com and datasheet4u.com. The TI datasheet includes full specifications, pinout, and application information.
What is the pinout of SN74LS138?
The SN74LS138 has 16 pins. Pin 1 is A (select input), pin 2 is B, pin 3 is C, pin 4 is G2A (enable, active-low), pin 5 is G2B (enable, active-low), pin 6 is G1 (enable, active-high), pin 7 is Y7 (output), pin 8 is GND, pin 9 is Y6, pin 10 is Y5, pin 11 is Y4, pin 12 is Y3, pin 13 is Y2, pin 14 is Y1, pin 15 is Y0, and pin 16 is VCC. Refer to the datasheet for the exact diagram.
What are the key specifications of SN74LS138 that engineers should know?
The SN74LS138 is a 3-to-8 decoder/demultiplexer with a typical propagation delay of 20 ns, operating from a 5V supply (4.75V to 5.25V). It has three enable inputs (G1 active-high, G2A and G2B active-low) and eight active-low outputs that can sink 8 mA. Power dissipation is typically 32 mW. It operates from 0Β°C to 70Β°C and is available in PDIP, SOIC, and SOP packages.
What is the best Motorola equivalent for SN74LS138?
The Motorola equivalent for SN74LS138 is the MC74LS138, which is pin-compatible and functionally identical. Motorola (now onsemi) produced the 74LS138 under the MC74LS138 designation. It has the same specifications and is a drop-in replacement. onsemi also lists the SN74LS138 as a cross-reference for the MC74LS138.
How do I cascade multiple SN74LS138 to create a 4-to-16 decoder?
To create a 4-to-16 decoder, use two SN74LS138 devices. Connect the fourth address line to the G1 enable of one decoder and to the G2A (or G2B) of the other, using an inverter if needed. For example, connect the fourth bit to G1 of the first decoder and to G2A of the second decoder through an inverter. This enables one decoder for the lower 8 addresses and the other for the upper 8, effectively creating a 4-to-16 decoder.

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

Selection Guide

Choose the SN74LS138 when you need a reliable, high-speed 3-to-8 decoder with TTL compatibility and active-low outputs. It is ideal for memory decoding and data routing in 5V systems. If you require a CMOS alternative with lower power consumption and wider supply voltage range, consider the 74HC138, but verify input thresholds and output drive. For TTL-compatible CMOS with similar speed, the 74HCT138 is a good choice. The SN74LS138N (PDIP) is best for breadboarding and through-hole designs, while the SN74LS138D (SOIC) is suitable for surface-mount production. All alternatives are pin-compatible, but check electrical characteristics before substitution.

Comparison with Alternatives

Parameter This Product SN74LS138N SN74LS138D SN74LS138NS MC74LS138 74HC138 74HCT138
Package 16-PDIP 16-PDIP 16-SOIC 16-SOP 16-PDIP 16-PDIP 16-PDIP
Brand Texas Instruments Texas Instruments Texas Instruments Texas Instruments onsemi NXP Semiconductors NXP Semiconductors
Technology Schottky TTL (LS) Schottky TTL (LS) Schottky TTL (LS) Schottky TTL (LS) Schottky TTL (LS) High-speed CMOS High-speed CMOS (TTL compatible)
Propagation Delay (typical) 20 ns 20 ns 20 ns 20 ns 20 ns 20 ns (at 5V) 20 ns (at 5V)
Output Sink Current (IOL) 8 mA 8 mA 8 mA 8 mA 8 mA 4 mA 4 mA
Supply Voltage Range 4.75V to 5.25V 4.75V to 5.25V 4.75V to 5.25V 4.75V to 5.25V 4.75V to 5.25V 2V to 6V 4.5V to 5.5V
Power Dissipation (typical) 32 mW 32 mW 32 mW 32 mW 32 mW 0.5 mW (at 5V, no load) 0.5 mW (at 5V, no load)
Operating Temperature Range 0Β°C to 70Β°C 0Β°C to 70Β°C 0Β°C to 70Β°C 0Β°C to 70Β°C 0Β°C to 70Β°C -40Β°C to 85Β°C -40Β°C to 85Β°C

Key Differentiators

  • Three enable inputs for flexible cascading (vs 74HC138)
  • Higher output sink current (8 mA) (vs 74HC138)
  • Schottky-clamped TTL technology (vs 74HCT138)

Design Notes

Ensure the enable inputs are correctly biased: G1 must be high, and G2A and G2B must be low for the decoder to be active. If any enable is in the wrong state, all outputs will be high (inactive). Unused inputs should be tied to VCC or GND to prevent floating nodes, which can cause erratic behavior and increased power consumption.

Place decoupling capacitors (0.1 uF) close to the VCC and GND pins to reduce power supply noise. For high-speed applications, keep the traces from the select inputs and outputs short to minimize propagation delay and signal integrity issues. Use a solid ground plane to reduce noise coupling.

The SN74LS138 dissipates approximately 32 mW under typical conditions, which is negligible for thermal management. However, if driving multiple outputs at maximum sink current (8 mA each), the total power dissipation can increase. Ensure adequate airflow or copper area for heat dissipation if the device is used in a high-temperature environment.

Compliance Information

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

RoHS compliant per TI product page. Not AEC-Q100 qualified as it is a commercial logic device.

Related Searches

SN74LS138 datasheet SN74LS138N price SN74LS138 vs 74HC138 SN74LS138 pinout 3-to-8 line decoder SN74LS138 SN74LS138 memory decoding SN74LS138 equivalent SN74LS138 buy online SN74LS138 propagation delay SN74LS138N PDIP SN74LS138 vs 74HCT138 SN74LS138 lead time

Related Components & Terms

Texas Instruments SN74LS138 SN74LS138N SN74LS138D SN74LS138NS MC74LS138 74HC138 74HCT138 Decoder Demultiplexer MSI TTL Schottky-clamped PDIP SOIC SOP RoHS Memory decoding Data routing Propagation delay
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