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

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

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

Introduction

The 74HC139N is a high-speed CMOS dual 2-to-4 line decoder/demultiplexer. It features two independent decoders, each with two binary inputs and four mutually exclusive outputs. The device is designed for use in high-performance digital systems and is compatible with TTL logic levels. The 74HC139N is commonly used in applications requiring address decoding, data routing, or device selection.

Explore Projects Built with 74HC139N

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
74HC00 NAND Gate-Based LED Driver Circuit
Image of full adder: A project utilizing 74HC139N in a practical application
This circuit is a logic-based control system using multiple 74HC00 quad NAND gate integrated circuits to perform complex logic operations. The output of these operations is visualized through two LEDs, each with a current-limiting resistor, powered by a 9V battery. The circuit is likely designed for educational or demonstration purposes to show how NAND gates can be used to create various logic functions and control outputs.
Cirkit Designer LogoOpen Project in Cirkit Designer
Teensy 4.0 and MAX7219-Based 7-Segment Display Counter
Image of dispay: A project utilizing 74HC139N in a practical application
This circuit uses a Teensy 4.0 microcontroller to control a MAX7219 LED driver, which in turn drives three 7-segment displays. The microcontroller runs code to display numbers from 0 to 999 on the 7-segment displays, with the SN74AHCT125N buffer providing signal integrity and the necessary capacitors and resistors ensuring stable operation.
Cirkit Designer LogoOpen Project in Cirkit Designer
74HC93-Based LED Counter with Pushbutton Control
Image of 74HC93: A project utilizing 74HC139N in a practical application
This circuit is a 4-bit binary counter using a 74HC93 IC, with a pushbutton to provide the clock input. The counter's outputs drive four red LEDs, which visually represent the binary count.
Cirkit Designer LogoOpen Project in Cirkit Designer
STM32-Controlled LED Display with 74HC595 Shift Register and 12-Bit DAC
Image of Harry Stim Breadboard: A project utilizing 74HC139N in a practical application
This circuit uses a 74HC595 shift register to control multiple LEDs via a common ground configuration, with a microcontroller providing serial data input. It includes decoupling capacitors for stability and a 12-Bit DAC, potentially for analog signal generation or reference voltage application.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 74HC139N

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 full adder: A project utilizing 74HC139N in a practical application
74HC00 NAND Gate-Based LED Driver Circuit
This circuit is a logic-based control system using multiple 74HC00 quad NAND gate integrated circuits to perform complex logic operations. The output of these operations is visualized through two LEDs, each with a current-limiting resistor, powered by a 9V battery. The circuit is likely designed for educational or demonstration purposes to show how NAND gates can be used to create various logic functions and control outputs.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of dispay: A project utilizing 74HC139N in a practical application
Teensy 4.0 and MAX7219-Based 7-Segment Display Counter
This circuit uses a Teensy 4.0 microcontroller to control a MAX7219 LED driver, which in turn drives three 7-segment displays. The microcontroller runs code to display numbers from 0 to 999 on the 7-segment displays, with the SN74AHCT125N buffer providing signal integrity and the necessary capacitors and resistors ensuring stable operation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of 74HC93: A project utilizing 74HC139N in a practical application
74HC93-Based LED Counter with Pushbutton Control
This circuit is a 4-bit binary counter using a 74HC93 IC, with a pushbutton to provide the clock input. The counter's outputs drive four red LEDs, which visually represent the binary count.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Harry Stim Breadboard: A project utilizing 74HC139N in a practical application
STM32-Controlled LED Display with 74HC595 Shift Register and 12-Bit DAC
This circuit uses a 74HC595 shift register to control multiple LEDs via a common ground configuration, with a microcontroller providing serial data input. It includes decoupling capacitors for stability and a 12-Bit DAC, potentially for analog signal generation or reference voltage application.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Address decoding in memory systems
  • Data demultiplexing in communication systems
  • Selection of multiple devices or peripherals
  • Logic signal routing in digital circuits

Technical Specifications

Key Technical Details

  • Supply Voltage (Vcc): 2V to 6V
  • Input Voltage (VI): 0V to Vcc
  • Output Voltage (VO): 0V to Vcc
  • Maximum Output Current (IO): ±25mA per pin
  • Propagation Delay: ~16ns at Vcc = 5V
  • Power Dissipation: 500mW (maximum)
  • Operating Temperature Range: -40°C to +125°C
  • Logic Family: HC (High-Speed CMOS)

Pin Configuration and Descriptions

The 74HC139N is a 16-pin IC with the following pinout:

Pin Number Pin Name Description
1 G1 Enable input for decoder 1 (active LOW)
2 A1 Input A for decoder 1
3 B1 Input B for decoder 1
4 Y0_1 Output 0 for decoder 1
5 Y1_1 Output 1 for decoder 1
6 Y2_1 Output 2 for decoder 1
7 Y3_1 Output 3 for decoder 1
8 GND Ground
9 Y3_2 Output 3 for decoder 2
10 Y2_2 Output 2 for decoder 2
11 Y1_2 Output 1 for decoder 2
12 Y0_2 Output 0 for decoder 2
13 B2 Input B for decoder 2
14 A2 Input A for decoder 2
15 G2 Enable input for decoder 2 (active LOW)
16 Vcc Positive supply voltage

Usage Instructions

How to Use the 74HC139N in a Circuit

  1. Power Supply: Connect the Vcc pin (pin 16) to a voltage source between 2V and 6V, and connect the GND pin (pin 8) to ground.
  2. Enable Inputs: Each decoder has an active LOW enable input (G1 for decoder 1 and G2 for decoder 2). To activate a decoder, set its enable input to LOW.
  3. Input Selection: Provide binary inputs (A and B) to select one of the four outputs. For example:
    • A = 0, B = 0 → Y0 is active (LOW)
    • A = 0, B = 1 → Y1 is active (LOW)
    • A = 1, B = 0 → Y2 is active (LOW)
    • A = 1, B = 1 → Y3 is active (LOW)
  4. Outputs: The selected output will be LOW, while all other outputs remain HIGH.

Important Considerations

  • Ensure that the enable inputs (G1 and G2) are properly controlled to avoid unintentional activation of the decoders.
  • Use pull-up or pull-down resistors on unused inputs to prevent floating states.
  • Avoid exceeding the maximum voltage and current ratings to prevent damage to the IC.

Example: Connecting the 74HC139N to an Arduino UNO

The following example demonstrates how to use the 74HC139N with an Arduino UNO to control a set of LEDs.

Circuit Connections

  • Connect the Vcc pin (pin 16) to the Arduino's 5V pin.
  • Connect the GND pin (pin 8) to the Arduino's GND.
  • Connect the enable input (G1, pin 1) to the Arduino's digital pin 7.
  • Connect inputs A1 (pin 2) and B1 (pin 3) to Arduino digital pins 8 and 9, respectively.
  • Connect outputs Y0_1 to Y3_1 (pins 4–7) to LEDs with current-limiting resistors.

Arduino Code

// Define pins for the 74HC139N
const int enablePin = 7; // Enable input for decoder 1
const int inputA = 8;    // Input A for decoder 1
const int inputB = 9;    // Input B for decoder 1

void setup() {
  // Set pin modes
  pinMode(enablePin, OUTPUT);
  pinMode(inputA, OUTPUT);
  pinMode(inputB, OUTPUT);

  // Enable the decoder (active LOW)
  digitalWrite(enablePin, LOW);
}

void loop() {
  // Cycle through all outputs (Y0 to Y3)
  for (int i = 0; i < 4; i++) {
    digitalWrite(inputA, i & 0x01); // Set A based on LSB of i
    digitalWrite(inputB, (i >> 1) & 0x01); // Set B based on MSB of i
    delay(1000); // Wait 1 second before switching
  }
}

Troubleshooting and FAQs

Common Issues

  1. No Output Activation:

    • Ensure the enable input (G1 or G2) is set to LOW.
    • Verify that the power supply voltage is within the specified range.
    • Check for loose or incorrect connections.
  2. Multiple Outputs Active:

    • Verify that the inputs (A and B) are not floating. Use pull-up or pull-down resistors if necessary.
    • Ensure that only one decoder is enabled at a time.
  3. Overheating:

    • Check that the output current does not exceed the maximum rating of ±25mA per pin.
    • Use current-limiting resistors for connected devices like LEDs.

FAQs

Q: Can I use the 74HC139N with a 3.3V system?
A: Yes, the 74HC139N is compatible with supply voltages as low as 2V, making it suitable for 3.3V systems.

Q: What happens if both decoders are enabled simultaneously?
A: Both decoders will function independently, but ensure that their outputs are not connected to the same load to avoid conflicts.

Q: Are the outputs active HIGH or active LOW?
A: The outputs are active LOW, meaning the selected output will go LOW while the others remain HIGH.