You're currently on: Catalog » Guides » TC4077BP: compare two bits with an XNOR gate
A bit can be 0 or 1. In this experiment, 0 means a connection to GND and 1 means a connection to +5 V. An XNOR gate compares two bits: its output is high when they match and low when they differ. This is useful for checking whether an input signal matches a chosen reference.
The TC4077BP contains four independent two-input XNOR gates. XNOR stands for exclusive-NOR. Unlike an ordinary OR gate, it also gives a high output for 0 and 0. It is the opposite of XOR. The IC has no memory, clock, reset or enable: the output follows the current input combination after a short delay. X1–X4 are signal names, not four bits of storage.
This guide covers the Toshiba TC4077BP in through-hole plastic DIP-14, designated DIP14 (3D14A-P) in the datasheet. Lead pitch is 2.54 mm and nominal row spacing is 7.62 mm. TC4077BF is a different surface-mount package. The shop part is NOS, unused and untested, marked TC4077BP / 8733H / JAPAN; the secondary code has not been dated with certainty. The datasheet is not an individual test of this stock.
Top view, notch upwards; pins run anticlockwise. In particular, gate 2 has its output on pin 4, while gate 3 has its output on pin 10. Do not confuse this pinout with that of a 74HC86.
Use a regulated 5 V supply, breadboard, wires, two 10 kΩ resistors, two jumpers, a 100 nF ceramic capacitor and a high-impedance voltmeter. No microcontroller or oscillator is needed. Switch off before changing permanent wiring.
Start: A1=0 and B1=0 gives X1=1. Fit the B1 jumper: A1=0, B1=1 gives X1=0. Next fit the A1 jumper: 1 and 1 gives X1=1. Remove the B1 jumper: 1 and 0 gives X1=0. Finally remove the A1 jumper: 0 and 0 gives X1=1 again. You have tested all four combinations and returned to the starting state. High here means close to the supply voltage with a high-impedance meter, not permission to draw a large current.
Comparing several bits takes more than chaining XNOR gates. Compare each pair separately, then AND all the equality outputs so the result is high only when every pair matches. An XNOR chain instead computes a parity-related function; it is not a general multi-bit equality test. This experiment compares just one pair of bits.
Original Toshiba 1988 CMOS logic databook. Printed pages 253–255: function, pins, levels and timing. Printed page 651: DIP-14 (3D14A-P). These correspond to PDF pages 255–257 and 649. An archived manufacturer document, not a distributor-generated pinout.
See the XOR guide for the opposite logic and the 4-input AND gate guide for the idea of combining four equality results. Check levels and timing in a real circuit; functional similarity does not make chips electrically or pin compatible.
View Toshiba TC4077BP in the shop
We use cookies to provide you with the best possible experience. They also allow us to analyze user behavior in order to constantly improve the website for you.