Free Shipping over ₹1299

Lesson-08 XOR Gate (IC 7486) – Difference Detector

Introduction

In this lesson, we will learn about the XOR gate, one of the most interesting and useful logic gates in digital electronics.

XOR stands for Exclusive OR.
An XOR gate gives an output HIGH (1) only when the inputs are different.

This gate is widely used in:

  • Comparison circuits
  • Error detection
  • Digital decision making

What Is an XOR Gate?

An XOR gate is a two-input logic gate.

Simple meaning:

Output is ON when inputs are NOT the same.

  • One input ON → Output ON
  • Both inputs same → Output OFF

Truth Table of XOR Gate

Input AInput BOutput
000
011
101
110

Output is HIGH only when A ≠ B.


IC 7486 – Quad 2-Input XOR Gate

IC 7486 contains four XOR gates inside one IC.

Key Features:

  • 4 independent XOR gates
  • Works at 5V
  • TTL logic IC (74xx family)
  • Very common in digital systems

IC 7486 Pin Configuration

PinFunction
1Input A1
2Input B1
3Output Y1
4Input A2
5Input B2
6Output Y2
7GND
8Output Y3
9Input A3
10Input B3
11Output Y4
12Input A4
13Input B4
14VCC (5V)

Why Do We Use an XOR Gate?

XOR gates are used when:

  • Difference between two signals is needed
  • Comparison logic is required
  • Error detection is required

Real-life example:

  • Two switches controlling a staircase light
  • Password comparison
  • Parity checking in data transmission

Components Required

ComponentQuantityPurpose
IC 74861XOR logic
Push Buttons2Input control
LED1Output indication
220Ω Resistor1LED protection
Breadboard1Circuit building
Jumper WiresAs requiredConnections
5V Power Supply1Power source

Circuit Diagram / Wiring

  1. Place IC 7486 on the breadboard
  2. Connect Pin 14 to +5V
  3. Connect Pin 7 to GND
  4. Connect Push Button A to Pin 1 (Input A)
  5. Connect Push Button B to Pin 2 (Input B)
  6. Connect Pin 3 (Output) to LED through 220Ω resistor
  7. Connect LED’s other end to GND

Working Principle

Case 1: Both Buttons OFF (0,0)

  • Output = LOW
  • LED OFF

Case 2: Only One Button ON (1,0 or 0,1)

  • Output = HIGH
  • LED ON

Case 3: Both Buttons ON (1,1)

  • Output = LOW
  • LED OFF

This confirms XOR logic behavior.


Observation Table

Button AButton BOutputLED
OFFOFF0OFF
ONOFF1ON
OFFON1ON
ONON0OFF

Common Mistakes & Troubleshooting

❌ LED not glowing when one button pressed
✔ Check input wiring

❌ LED always OFF
✔ Check VCC and GND connections

❌ IC output unstable
✔ Inputs may be floating


Real-Life Applications

  • Staircase wiring
  • Parity generators
  • Digital comparison circuits
  • Error detection systems
  • Cryptography basics

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Need Help?