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.

What does it mean for two bits to match?

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.

An XNOR gate compares two inputs; its output is 1 for matching bits and 0 otherwise
Gate 1 compares A1 and B1. The steps describe power, resistors and decoupling.
Truth table: 0 = low, 1 = high
A1B1X1
001
010
100
111

Exact device and pinout

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.

TC4077BP top view with all 14 numbered pins and Toshiba signal names
Top-view pinout for the BP package. All four gates share VDD and VSS.

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.

Build a slow 5 V test

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.

  1. Place the IC across the breadboard centre gap. Connect VDD (14) to +5 V and VSS (7) to GND. Fit 100 nF directly between the supply pins close to the IC.
  2. Use gate 1: A1 is pin 1, B1 is pin 2 and X1 is pin 3. Connect each input to GND through its own 10 kΩ resistor. A separate jumper from each input to +5 V selects logic 1; without the jumper the resistor holds it at 0. The resistor prevents a direct short circuit through this connection.
  3. Tie unused inputs 5, 6, 8, 9, 12 and 13 to GND. Leave unused outputs 4, 10 and 11 unconnected. Connect the voltmeter between X1 (3) and GND; start without an LED load.
  4. Check pins and polarity, then apply power. Begin with neither jumper fitted. Change only one jumper at a time as described below, and wait at least 1 ms before each reading. Contact bounce is acceptable for a settled voltmeter reading, but not for a clean control signal.

One complete comparison sequence

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.

Levels, delay and troubleshooting

  • At 5 V, a guaranteed high input must be at least 3.5 V and a guaranteed low no more than 1.5 V. A 3.3 V signal is not guaranteed high. Use a suitable level translator when interfacing; also protect non-5-V-tolerant inputs from the IC’s 5 V output.
  • Recommended VDD is 3–18 V, but this setup uses 5 V only. Keep all inputs between VSS and VDD and never leave an input floating. The 20 V absolute maximum is not an operating voltage.
  • At 5 V, 25 °C and 50 pF load, the datasheet specifies up to 280 ns propagation delay in either direction; 130 ns is typical, not guaranteed. Our 1 ms wait gives a large margin for this slow test. These figures are not full-temperature guarantees.
  • These are ordinary actively driven CMOS outputs, not open-drain or tri-state outputs. Never wire outputs directly together or directly to a supply rail. Larger loads require a suitable driver.
  • If the result is wrong, first measure 5 V between pins 14 and 7, check notch orientation and measure the actual inputs. Remember that 0 and 0 must give a high output. If both inputs change together, unequal delays can cause brief unwanted pulses; do not use the result uncritically as a clock or asynchronous reset.

Datasheet and next steps

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