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

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

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

Introduction

The 74HC86 integrated circuit is a high-speed CMOS device that contains four independent 2-input Exclusive OR (XOR) gates. These gates perform the Boolean function Y = A ⊕ B, where Y is the output and A and B are the inputs. XOR gates are fundamental components in digital electronics, used in applications such as parity generators/checkers, adders, and digital comparators.

Explore Projects Built with 74HC86

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Logic Gate and Binary Adder Experimentation Board
Image of BCD to full adder and subtractor: A project utilizing 74HC86 in a practical application
This circuit is a digital logic system that likely performs arithmetic operations and logical processing based on user inputs from push switches. It includes binary full adders for arithmetic functions, various logic gates for processing signals, and output interfaces such as 7-segment displays and LEDs for displaying results or statuses.
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 74HC86 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
Teensy 4.0 and MAX7219-Based 7-Segment Display Counter
Image of dispay: A project utilizing 74HC86 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 74HC86 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

Explore Projects Built with 74HC86

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 BCD to full adder and subtractor: A project utilizing 74HC86 in a practical application
Logic Gate and Binary Adder Experimentation Board
This circuit is a digital logic system that likely performs arithmetic operations and logical processing based on user inputs from push switches. It includes binary full adders for arithmetic functions, various logic gates for processing signals, and output interfaces such as 7-segment displays and LEDs for displaying results or statuses.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Harry Stim Breadboard: A project utilizing 74HC86 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
Image of dispay: A project utilizing 74HC86 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 74HC86 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

Common Applications

  • Digital logic circuits
  • Parity generators and checkers
  • Binary adders and subtractors
  • Encryption systems
  • Signal modulation

Technical Specifications

Key Technical Details

  • Logic Type: XOR (Exclusive OR)
  • Operating Voltage Range: 2V to 6V
  • High-Level Output Current: -5.2 mA (max)
  • Low-Level Output Current: 5.2 mA (max)
  • Propagation Delay Time: 8 ns (typical at Vcc = 5V)
  • Operating Temperature Range: -40°C to +125°C

Pin Configuration and Descriptions

Pin Number Description
1 1A (Input gate 1)
2 1B (Input gate 1)
3 1Y (Output gate 1)
4 2Y (Output gate 2)
5 2A (Input gate 2)
6 2B (Input gate 2)
7 GND (Ground)
8 3B (Input gate 3)
9 3A (Input gate 3)
10 3Y (Output gate 3)
11 4Y (Output gate 4)
12 4A (Input gate 4)
13 4B (Input gate 4)
14 Vcc (Power supply)

Usage Instructions

How to Use the 74HC86 in a Circuit

  1. Power Supply: Connect pin 14 (Vcc) to a positive power supply within the range of 2V to 6V and pin 7 (GND) to the ground.

  2. Input Signals: Apply the digital signals to the A and B inputs of the gates you intend to use. Ensure that the input voltage levels are compatible with the logic levels of the 74HC86.

  3. Output Connection: Connect the output pins (1Y, 2Y, 3Y, 4Y) to the next stage of your digital circuit or to an output device, ensuring that the current requirements do not exceed the specified limits.

  4. Unused Inputs: For any unused gates, connect the inputs directly to Vcc or GND to avoid floating inputs which can lead to unpredictable behavior.

Important Considerations and Best Practices

  • Avoid applying voltages to the inputs when the chip is not powered, as this can damage the device.
  • Decoupling capacitors (typically 0.1 µF) should be placed close to the Vcc pin to filter out noise.
  • Ensure that the total power dissipation does not exceed the maximum ratings of the package.

Troubleshooting and FAQs

Common Issues

  • Floating Inputs: Ensure that all unused inputs are tied to Vcc or GND.
  • Output Not Switching: Verify that the input signals are reaching the threshold voltage levels for a logical HIGH or LOW.
  • Excessive Power Consumption: Check for short circuits or incorrect connections that may cause higher current draw.

Solutions and Tips

  • Use a multimeter to check for continuity and proper voltage levels at the inputs and outputs.
  • If the outputs are not as expected, verify the truth table of the XOR gate to ensure correct logic levels are applied.

FAQs

Q: Can I use the 74HC86 at a voltage lower than 2V? A: No, the 74HC86 is designed to operate within a voltage range of 2V to 6V.

Q: What is the maximum frequency the 74HC86 can handle? A: The maximum frequency depends on the supply voltage, but typically the device can handle several megahertz at 5V.

Q: Can I replace a 74LS86 with a 74HC86? A: Yes, but be aware of the differences in power supply levels and output current capabilities between LS (Low-power Schottky) and HC (High-speed CMOS) logic families.

Example Code for Arduino UNO

The following example demonstrates how to use the 74HC86 with an Arduino UNO to perform an XOR operation on two input signals.

// Define the input and output pins
const int inputPinA = 2; // Connect to 1A on 74HC86
const int inputPinB = 3; // Connect to 1B on 74HC86
const int outputPin = 4; // Connect to 1Y on 74HC86

void setup() {
  pinMode(inputPinA, INPUT);
  pinMode(inputPinB, INPUT);
  pinMode(outputPin, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  // Read the input states
  int stateA = digitalRead(inputPinA);
  int stateB = digitalRead(inputPinB);

  // Perform the XOR operation using digital logic
  int xorResult = stateA ^ stateB;

  // Output the result to the 74HC86
  digitalWrite(outputPin, xorResult);

  // Print the result to the Serial Monitor
  Serial.print("Input A: ");
  Serial.print(stateA);
  Serial.print(" Input B: ");
  Serial.print(stateB);
  Serial.print(" XOR Result: ");
  Serial.println(xorResult);

  // Wait for a short period before the next read
  delay(500);
}

Remember to limit the line length of code comments to 80 characters for readability. This example code is a simple demonstration and does not account for debouncing or other input signal conditioning that may be necessary in a real-world application.