Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use 74LVC138AD: Examples, Pinouts, and Specs

Image of 74LVC138AD
Cirkit Designer LogoDesign with 74LVC138AD in Cirkit Designer

Introduction

The 74LVC138AD is a low-voltage, high-speed 3-to-8 line decoder/demultiplexer. It takes three binary inputs (A, B, and C) and activates one of the eight outputs (Y0 to Y7) based on the input combination. The device also features three enable inputs (G1, G2A, and G2B), which allow for flexible control of the decoding operation. The outputs are active low, meaning the selected output will be pulled low while the others remain high.

This component is widely used in digital circuits for:

  • Address decoding in memory systems
  • Data routing in multiplexing/demultiplexing applications
  • Logic signal decoding in microcontroller-based systems

Explore Projects Built with 74LVC138AD

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32 and ADXL343-Based Battery-Powered Accelerometer with SPI Communication
Image of vibration module: A project utilizing 74LVC138AD in a practical application
This circuit features an ESP32 microcontroller interfaced with an ADXL343 accelerometer via SPI communication, powered by a 12V battery regulated down to 5V and 8V using 7805 and 7808 voltage regulators. The ESP32 reads accelerometer data and outputs it via serial communication, with additional components including a pushbutton and a rocker switch for user input.
Cirkit Designer LogoOpen Project in Cirkit Designer
STM32F103C8T6-Based Spectral Sensor with ST7735S Display and Pushbutton Control
Image of ColorSensor: A project utilizing 74LVC138AD in a practical application
This circuit features an STM32F103C8T6 microcontroller interfaced with a China ST7735S 160x128 display and two spectral sensors (Adafruit AS7262 and AS7261). It also includes two pushbuttons for user input, with the microcontroller managing the display and sensor data processing.
Cirkit Designer LogoOpen Project in Cirkit Designer
Cellular-Enabled IoT Device with Real-Time Clock and Power Management
Image of LRCM PHASE 2 BASIC: A project utilizing 74LVC138AD in a practical application
This circuit features a LilyGo-SIM7000G module for cellular communication and GPS functionality, interfaced with an RTC DS3231 for real-time clock capabilities. It includes voltage sensing through two voltage sensor modules, and uses an 8-channel opto-coupler for isolating different parts of the circuit. Power management is handled by a buck converter connected to a DC power source and batteries, with a fuse for protection and a rocker switch for on/off control. Additionally, there's an LED for indication purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Controlled RGB LED, Vibration Motor, and Bluetooth Communication System
Image of Smarttt: A project utilizing 74LVC138AD in a practical application
This circuit features an Arduino UNO microcontroller connected to various components for a multi-functional device. It includes an RGB LED with current-limiting resistors, a vibration motor, a loudspeaker, a pushbutton for input, and an HC-05 Bluetooth module for wireless communication. The TP4056 module with a polymer lithium-ion battery provides a rechargeable power source, and the Arduino is programmed to control these components, likely for some form of interactive or notification-based application.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 74LVC138AD

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of vibration module: A project utilizing 74LVC138AD in a practical application
ESP32 and ADXL343-Based Battery-Powered Accelerometer with SPI Communication
This circuit features an ESP32 microcontroller interfaced with an ADXL343 accelerometer via SPI communication, powered by a 12V battery regulated down to 5V and 8V using 7805 and 7808 voltage regulators. The ESP32 reads accelerometer data and outputs it via serial communication, with additional components including a pushbutton and a rocker switch for user input.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ColorSensor: A project utilizing 74LVC138AD in a practical application
STM32F103C8T6-Based Spectral Sensor with ST7735S Display and Pushbutton Control
This circuit features an STM32F103C8T6 microcontroller interfaced with a China ST7735S 160x128 display and two spectral sensors (Adafruit AS7262 and AS7261). It also includes two pushbuttons for user input, with the microcontroller managing the display and sensor data processing.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of LRCM PHASE 2 BASIC: A project utilizing 74LVC138AD in a practical application
Cellular-Enabled IoT Device with Real-Time Clock and Power Management
This circuit features a LilyGo-SIM7000G module for cellular communication and GPS functionality, interfaced with an RTC DS3231 for real-time clock capabilities. It includes voltage sensing through two voltage sensor modules, and uses an 8-channel opto-coupler for isolating different parts of the circuit. Power management is handled by a buck converter connected to a DC power source and batteries, with a fuse for protection and a rocker switch for on/off control. Additionally, there's an LED for indication purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Smarttt: A project utilizing 74LVC138AD in a practical application
Arduino UNO Controlled RGB LED, Vibration Motor, and Bluetooth Communication System
This circuit features an Arduino UNO microcontroller connected to various components for a multi-functional device. It includes an RGB LED with current-limiting resistors, a vibration motor, a loudspeaker, a pushbutton for input, and an HC-05 Bluetooth module for wireless communication. The TP4056 module with a polymer lithium-ion battery provides a rechargeable power source, and the Arduino is programmed to control these components, likely for some form of interactive or notification-based application.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

The 74LVC138AD is designed for high-speed operation and low power consumption. Below are its key technical details:

Key Specifications

Parameter Value
Supply Voltage (Vcc) 1.65 V to 3.6 V
Input Voltage Range 0 V to 5.5 V
Output Voltage Range 0 V to Vcc
Maximum Output Current ±24 mA
Propagation Delay 4.5 ns (typical at 3.3 V)
Operating Temperature -40°C to +125°C
Package Type SOIC-16 (Surface Mount)

Pin Configuration and Descriptions

The 74LVC138AD comes in a 16-pin SOIC package. The pinout and descriptions are as follows:

Pin Number Pin Name Description
1 G1 Enable input (active high)
2 A Address input A (LSB)
3 B Address input B
4 C Address input C (MSB)
5 G2A Enable input (active low)
6 G2B Enable input (active low)
7 Y7 Output 7 (active low)
8 GND Ground
9 Y6 Output 6 (active low)
10 Y5 Output 5 (active low)
11 Y4 Output 4 (active low)
12 Y3 Output 3 (active low)
13 Y2 Output 2 (active low)
14 Y1 Output 1 (active low)
15 Y0 Output 0 (active low)
16 Vcc Positive supply voltage

Usage Instructions

How to Use the 74LVC138AD in a Circuit

  1. Power Supply: Connect the Vcc pin to a supply voltage between 1.65 V and 3.6 V, and the GND pin to ground.
  2. Enable Inputs:
    • G1 must be set high (logic 1) to enable the decoder.
    • Both G2A and G2B must be set low (logic 0) to enable the decoder.
  3. Address Inputs: Provide a 3-bit binary input (A, B, C) to select one of the eight outputs.
  4. Outputs: The selected output (Y0 to Y7) will be pulled low (active low), while the others remain high.

Example Circuit

Below is an example of how to connect the 74LVC138AD to an Arduino UNO for address decoding:

// Arduino UNO example for controlling the 74LVC138AD
// Connect the 74LVC138AD pins as follows:
// A -> Pin 2, B -> Pin 3, C -> Pin 4
// G1 -> Pin 5 (HIGH), G2A -> GND, G2B -> GND
// Y0 to Y7 can be connected to LEDs or other devices

const int pinA = 2; // Address input A
const int pinB = 3; // Address input B
const int pinC = 4; // Address input C

void setup() {
  // Set address pins as outputs
  pinMode(pinA, OUTPUT);
  pinMode(pinB, OUTPUT);
  pinMode(pinC, OUTPUT);
}

void loop() {
  // Example: Cycle through all outputs (Y0 to Y7)
  for (int i = 0; i < 8; i++) {
    digitalWrite(pinA, i & 0x01); // Set LSB (A)
    digitalWrite(pinB, (i >> 1) & 0x01); // Set middle bit (B)
    digitalWrite(pinC, (i >> 2) & 0x01); // Set MSB (C)
    delay(500); // Wait 500 ms before changing output
  }
}

Important Considerations

  • Ensure that the enable inputs (G1, G2A, G2B) are correctly configured to avoid unexpected behavior.
  • Use pull-up or pull-down resistors on unused inputs to prevent floating states.
  • Avoid exceeding the maximum output current of ±24 mA to prevent damage to the device.

Troubleshooting and FAQs

Common Issues

  1. No Output Activation:

    • Verify that G1 is high and both G2A and G2B are low.
    • Check the power supply connections (Vcc and GND).
    • Ensure the address inputs (A, B, C) are receiving valid logic levels.
  2. Incorrect Output Activation:

    • Confirm that the address inputs are correctly wired and not floating.
    • Check for short circuits or incorrect connections on the output pins.
  3. Device Overheating:

    • Ensure the output current does not exceed the maximum rating of ±24 mA.
    • Verify that the supply voltage is within the specified range (1.65 V to 3.6 V).

FAQs

Q: Can the 74LVC138AD operate at 5 V?
A: No, the maximum supply voltage for the 74LVC138AD is 3.6 V. Operating it at 5 V may damage the device.

Q: What happens if multiple enable inputs are active simultaneously?
A: The decoder will only function correctly if G1 is high and both G2A and G2B are low. Any other combination will disable the outputs.

Q: Can I use the 74LVC138AD for driving LEDs directly?
A: Yes, but ensure that the current through each output does not exceed ±24 mA. Use current-limiting resistors for the LEDs.