CD4077 – An IC with Four XNOR Gates

IC 4077 Pinout

The CD4077 is a CMOS chip with four XNOR gates. Because each gate has two inputs and it has four gates inside, it’s usually called a Quad 2-Input XNOR Gate.

An XNOR gate is basically an XOR gate with a NOT gate on the output: It gives a HIGH output whenever its two inputs are equal. If the inputs are both HIGH or both LOW, then the output will be HIGH, otherwise LOW.

Pin Overview

Pin NamePin #TypeDescription
VDD14PowerSupply Voltage (+3 to +15V)
GND7PowerGround (0V)
A1 to A41, 5, 8, 12InputInputs A of the four XNOR gates
B1 to B42, 6, 9, 13InputInputs B of the four XNOR gates
Q1 to Q43, 4, 10, 11OutputOutputs from the four XNOR gates
Pin overview for the 4077 IC

What is an XNOR gate?

An XNOR gate is a logic gate that works like an XOR gate with a NOT gate on the output. So it gives the exact opposite output compared to an XOR.

XNOR gate made from XOR and NOT gates
An XNOR gate built from XOR and NOT gates

The XNOR gives a HIGH output whenever its inputs are the same. So if both inputs are HIGH, or if both inputs are LOW, the output will be HIGH.

Check the truth table below to see what the value will be for any two inputs:

Input AInput BOutput Q
The XNOR gate truth table

How To Use the CD4077?

For any IC in the 4000 series, you need a power supply voltage of 3 to 15V. Some versions of the chip support up to 20V. Check the datasheet of your version of the chip for exact values.

You need to connect the VDD pin to the positive supply terminal and the GND pin to the negative supply terminal. Then you can use any of the XNOR gates in the chip.

The A and B pins are the inputs to the four XNOR gates in the IC.

The Q pins are the outputs from the XNOR gates.

CD4077 Example Circuit – Edge Detection Circuit

This circuit detects a signal going from low to high, or from high to low, and converts it to a pulse that keeps an LED on for a short while. No matter if the input pulse is long or short, the LED will stay on for the same amount of time.

CD4077 Example circuit: Edge detection or one-shot pulse

To build this you’ll need:

  • An LED (D1)
  • A chip with XNOR gates such as the CD4077BE
  • 100 kΩ resistor (R1)
  • 1 kΩ resistor (R2)
  • 100 µF Capacitor (C1)

Alternatives and Equivalents for CD4077

You likely find the 4077 IC marked as CD4077, NTE4077, MC14077, HCF4077, TC4077, or HEF4077. Usually with a few extra characters at the end (Ex: CD4077BE).

This has to do with the manufacturer of the chip and the technology used. But the functionality and the pins are the same.

If they don’t have any of these chips in your local electronics store, check out my list of online stores where you can find components and tools for all your electronics projects.

Can’t find the 4077? Then try one of the following IC alternatives with 2-input XNOR gates:

  • 74HC7266: Quad 2-input XNOR
  • 74HC266: Quad 2-input XNOR (open collector outputs)
  • 74HC810/811: Quad 2-input XNOR

4077 Datasheet

Download the PDF datasheet for the IC 4077 here:

CD4077B (Texas Instruments)
HEF4077B (Nexperia)

Go back to the full overview of the 4000-series integrated circuits