fbpx

7400 Series Guide: 74HC238/74LS238 (3-to-8 line decoder)

The 74×238 (ex 74HC238) is a chip that contains a 3-to-8 line decoder/demultiplexer. This versatile component takes 3 binary inputs and decodes them into 8 distinct outputs, where only one output is active at a time.

In this guide, you’ll learn the things you need to know about this chip in order to use it in your own projects.

74HC238 / 74LS238 Package And Pinout

What does the 74HC238 / 74LS238 do?

The 74×238 is a 3-to-8 line decoder/demultiplexer. It takes three binary inputs (A, B, and C) and translates them into eight outputs (Y0 to Y7). Each output corresponds to a specific combination of the input values, and only one output is LOW at a time, depending on the input.

The chip also has three enable inputs (G1, G2A, and G2B). For the chip to work, G1 needs to be HIGH while both G2A and G2B need to be LOW. When these conditions are met, the chip decodes the input combination to activate one of the outputs by setting it LOW and keeping the rest HIGH.

The 74×238 is commonly used in applications for memory address decoding or routing signals in digital circuits.

How To Use This Chip

The 74HC238 comes in a 16-pin package, and you need to connect it to power before you can use it. Most 7400 ICs support a VCC voltage of 5V. One difference between the HC and LS version of the chip is that the 74HC238 supports 2V to 6V, while the 74LS238 only supports 5V.

74HC chips can normally supply a maximum of 4 mA from an output pin. If you’re using the 74LS version, the maximum current you can pull out of one output pin is 0.4 mA when the pin is high (sourcing) or 8 mA when the pin is low (sinking).

But these values can differ between models, so check the datasheet of your model to verify.

Once you’ve connected it to power, you can use the Decoder/Demultiplexer inside.

7400 series IC connected to 5V on a breadboard
The 74HC238/74LS238 IC connected to power

74×238 Pinout

The 74×238 has 16 pins and contains 1-of-8 noninverting decoder/demultiplexer laid out as shown in the pinout diagram below:

74238 Pinout
Pin NamePin #TypeDescription
S01InputSelect input (bit 0) for addressing the outputs.
S12InputSelect input (bit 1) for addressing the outputs.
S23InputSelect input (bit 2) for addressing the outputs.
EN34InputEnable input 3 (active low).
EN25InputEnable input 2 (active low).
EN16InputEnable input 1 (active high).
Y77OutputOutput bit 7 from the decoder.
GND8PowerConnect to ground (GND).
Y69OutputOutput bit 6 from the decoder.
Y510OutputOutput bit 5 from the decoder.
Y411OutputOutput bit 4 from the decoder.
Y312OutputOutput bit 3 from the decoder.
Y213OutputOutput bit 2 from the decoder.
Y114OutputOutput bit 1 from the decoder.
Y015OutputOutput bit 0 from the decoder.
VCC16PowerPositive power supply. Connect to +5V power.
Pin overview for the 74×238 IC

Alternatives and Equivalents for 74HC238 / 74LS238

There are many versions of the 74×238 chip. They all have the same functionality, but with different specifications such as supported voltages and maximum current output.

Here’s a list of a few equivalents of this chip:

  • 74HC238 (High-speed CMOS)
  • 74HCT238 (High-speed CMOS, TTL compatible)
  • 74LS238 (High-speed TTL)
  • 74LVC238 (Low Voltage TTL)
  • 74AC238 (Advanced CMOS)
  • 74ALS238 (Advanced Low-Power Schottky TTL)
  • 74F238 (Very High Speed)
  • 74C238 (CMOS, similar to the 4000-series)

Some manufacturers also add a prefix, such as the SN74HC238 and SN74LS238 by Texas Instruments.

Can’t find the 74×238 anywhere? Then try one of the following IC alternatives:

  • 74×137 – 3-to-8 line decoder/demultiplexer.
  • 74×138 – 3-to-8 line decoder/demultiplexer.
  • 74×139 – Dual 2-to-4 line decoder/demultiplexer.
  • 74×237 – 3-to-8 line decoder/demultiplexer.
  • CD4028 – BCD-to-decimal decoder.
  • CD4029 – BCD-to-decimal decoder with latch.

If you can’t find the 74×238 IC in your local electronics store, don’t worry, you’ll most likely find it in one of the stores listed on this page of online stores where you’ll find components and tools for all your electronics projects.

Datasheet for the 74LS238 and 74HC238 chips

Download the PDF datasheet for your version of the 74×238 here:

Leave a Comment