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

How to Use SN74HC86N: Examples, Pinouts, and Specs

Image of SN74HC86N
Cirkit Designer LogoDesign with SN74HC86N in Cirkit Designer

Introduction

The SN74HC86N is a logic IC that contains four independent 2-input Exclusive OR (XOR) gates. This integrated circuit is designed by Texas Instruments (TI) and is commonly used in digital circuits for performing the XOR logical operation. The XOR gate is a digital logic gate that outputs true or high only when the inputs to the gate are different.

Explore Projects Built with SN74HC86N

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
STM32-Controlled LED Display with 74HC595 Shift Register and 12-Bit DAC
Image of Harry Stim Breadboard: A project utilizing SN74HC86N 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 SN74HC86N 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
74HC00 NAND Gate-Based LED Driver Circuit
Image of full adder: A project utilizing SN74HC86N 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
NAND Gate Controlled LED Circuit with Pushbutton and Capacitor
Image of Nand Gate: A project utilizing SN74HC86N in a practical application
This circuit is a simple logic-based control system utilizing a SN74LS00N NAND gate IC, a pushbutton, and passive components like resistors, a capacitor, a diode, and an LED. The pushbutton controls the logic inputs to the NAND gates, which in turn drive the LED, indicating the output state of the logic circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with SN74HC86N

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 Harry Stim Breadboard: A project utilizing SN74HC86N 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 SN74HC86N 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 full adder: A project utilizing SN74HC86N 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 Nand Gate: A project utilizing SN74HC86N in a practical application
NAND Gate Controlled LED Circuit with Pushbutton and Capacitor
This circuit is a simple logic-based control system utilizing a SN74LS00N NAND gate IC, a pushbutton, and passive components like resistors, a capacitor, a diode, and an LED. The pushbutton controls the logic inputs to the NAND gates, which in turn drive the LED, indicating the output state of the logic circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Digital signal comparison
  • Parity generators and checkers
  • Encryption systems
  • Adders and subtractors in arithmetic logic units (ALUs)
  • Pattern recognition systems
  • Circuit error detection and correction schemes

Technical Specifications

Key Technical Details

  • Supply Voltage (Vcc): 2 V to 6 V
  • Input Voltage (Vin): 0 V to Vcc
  • Output Voltage (Vout): 0 V to Vcc
  • High-Level Output Current (IOH): -5.2 mA (max)
  • Low-Level Output Current (IOL): 5.2 mA (max)
  • Operating Temperature Range: -40°C to 85°C
  • Propagation Delay Time: 8 ns (typ) at Vcc = 5 V, CL = 15 pF
  • Package: 14-Pin PDIP

Pin Configuration and Descriptions

Pin Number Name Description
1 1A Input A for Gate 1
2 1B Input B for Gate 1
3 1Y Output for Gate 1
4 2Y Output for Gate 2
5 2A Input A for Gate 2
6 2B Input B for Gate 2
7 GND Ground (0 V)
8 3B Input B for Gate 3
9 3A Input A for Gate 3
10 3Y Output for Gate 3
11 4Y Output for Gate 4
12 4A Input A for Gate 4
13 4B Input B for Gate 4
14 Vcc Positive Supply Voltage

Usage Instructions

How to Use the SN74HC86N in a Circuit

  1. Power Supply Connection: Connect pin 14 (Vcc) to the positive supply voltage (2 V to 6 V) and pin 7 (GND) to the ground of the circuit.
  2. Input Connection: Apply the digital signals to the A and B inputs of the gates you intend to use.
  3. Output Connection: Connect the output pins (1Y, 2Y, 3Y, 4Y) to the next stage of your digital circuit or to an output device, such as an LED or a logic analyzer, to observe the XOR operation results.

Important Considerations and Best Practices

  • Ensure that the supply voltage (Vcc) is within the specified range to prevent damage to the IC.
  • Unused inputs should be tied to either Vcc or GND to avoid floating inputs which can lead to unpredictable behavior.
  • Decoupling capacitors (typically 0.1 µF) should be placed close to the Vcc pin to filter out noise and provide a stable power supply.
  • Avoid exceeding the maximum current ratings for the inputs and outputs to prevent damage to the IC.

Troubleshooting and FAQs

Common Issues Users Might Face

  • Outputs not behaving as expected: Ensure that all inputs are properly connected and that there are no floating inputs.
  • IC getting hot or damaged: Check if the supply voltage is within the specified range and that the current ratings are not exceeded.

Solutions and Tips for Troubleshooting

  • Double-check wiring and connections for any possible shorts or open circuits.
  • Use a multimeter to verify the supply voltage and input signals.
  • Replace the IC if it is suspected to be faulty after verifying the rest of the circuit.

FAQs

Q: Can I use the SN74HC86N at a supply voltage lower than 2 V? A: No, the IC may not function properly below the minimum specified supply voltage.

Q: What happens if I leave an input pin unconnected? A: An unconnected or floating input can pick up noise and cause unpredictable output. Always tie unused inputs to a defined logic level.

Q: Can I connect the outputs of two gates together? A: No, you should not directly connect the outputs of two gates as it can lead to contention and damage the IC.

Example Code for Arduino UNO

The following example demonstrates how to use the SN74HC86N with an Arduino UNO to perform an XOR operation on two digital inputs and display the result on an LED.

// Define the input and output pins
const int inputPinA = 2; // Connect to 1A of SN74HC86N
const int inputPinB = 3; // Connect to 1B of SN74HC86N
const int outputPin = 13; // Connect to 1Y of SN74HC86N

void setup() {
  // Set the input and output pin modes
  pinMode(inputPinA, INPUT);
  pinMode(inputPinB, INPUT);
  pinMode(outputPin, OUTPUT);
}

void loop() {
  // Read the state of the inputs
  int stateA = digitalRead(inputPinA);
  int stateB = digitalRead(inputPinB);

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

  // Write the result to the output pin
  digitalWrite(outputPin, xorResult);

  // Delay for a short period to debounce the inputs
  delay(50);
}

Remember to connect the Arduino's GND to the SN74HC86N's GND pin, and the 5V pin to the Vcc pin of the SN74HC86N. The inputs (1A and 1B) should be connected to the Arduino's digital pins 2 and 3, respectively, and the output (1Y) to the digital pin 13 or any other digital pin you choose to use as an output.