The circuit you built at the end of part 4 is more useful than it looks. Two buttons with pull-downs feed pins 1 and 2, and an LED shows pin 3. On a 74HC08 that tests an AND gate. But the 74HC00, 74HC08, 74HC32 and 74HC86 all share the same pinout, inherited from the original 7400, so you can pull one chip out, push another into the same holes, and the same rig tests a different gate.
Only the power and the decoupling capacitor stay exactly as they are. Everything else in this part is swapping chips, pressing buttons, and writing down what the LED does.
Two habits make swapping safe. Switch the power off first, every time. And lift a chip out evenly, by levering each end up a little in turn with the screwdriver, never by pulling one end: the legs bend easily, and a bent leg is the start of many mysteries. Before handling chips, touch something metal to discharge yourself; CMOS inputs are sensitive to static.
The bench
Choose a chip, press A and B (they stay down until you press again), and record what the LED does in each row of the table. Check it when you have all four. Then try the mystery chip, and the faults at the bottom.
A = 0, B = 0: the LED is off.
| A | B | LED |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
The same layout as the figures, with the LED driven by the chip you choose. The faults are the five most common reasons a rig like this does not work.
The 74HC04 is the odd one out. It holds six inverters, each with one input and one output, so its pins are arranged differently: input 1A on pin 1, output 1Y on pin 2, then 2A on 3, 2Y on 4, and so on. Pin 14 is still the supply and pin 7 ground.
So the rig needs rewiring before a 74HC04 goes in, and it matters: on this chip, pins 2, 4, 10 and 12 are outputs, and the AND rig connects them to button B and to ground. An output tied to ground, or to a button that pulls it to +5 V, fights the connection and can be damaged. With the power off:
- Take out button B, its pull-down and its green wire, and all six black tie wires.
- Move the LED’s orange wire from pin 3 to pin 2: h15 to h23, one column to the left.
- Tie the five unused inputs, pins 3, 5, 9, 11 and 13, to ground: j16 and j18 to the bottom − rail, a19, a17 and a15 to the top − rail.
Button A still feeds pin 1. Leave the five unused outputs alone: an unused output must never be connected to anything.
With the 74HC04: the LED is on while A is up, and off while A is held. The truth table has two rows: 0 → 1 and 1 → 0.
Rebuild the AND rig from part 4 and put the 74HC08 back. Test all four rows, one at a time, in order: neither button, B only, A only, both. Write each result down before moving on. The LED lights only in the last row.
Then swap in the 74HC32. Now the LED lights whenever A or B is held, and stays dark only when neither is. Compare the two tables row by row. They agree in the first and last rows and disagree in the middle two, which is exactly where “and” and “or” differ in everyday speech.
74HC08: 0 0 → 0, 0 1 → 0, 1 0 → 0, 1 1 → 1. 74HC32: 0 0 → 0, 0 1 → 1, 1 0 → 1, 1 1 → 1.
The 74HC86 is the most interesting to test. Press A: the LED lights. Keep A held and press B: it goes out. Release A: it lights again. The output is high when the buttons disagree. Try thinking of B as a switch that decides whether A is passed through or turned upside down: with B up, the LED copies A; with B down, it does the opposite of A. That is XOR’s second job, a NOT you can turn on and off, and part 12 uses it.
Last, the 74HC00, the chip that gives the whole family its name. Its LED is lit almost all the time, and goes out only while both buttons are held: AND, turned upside down. Part 9 builds every other gate from it.
74HC86: 0 0 → 0, 0 1 → 1, 1 0 → 1, 1 1 → 0. 74HC00: 0 0 → 1, 0 1 → 1, 1 0 → 1, 1 1 → 0.
Testing a chip properly means testing every row, in order, and writing down what you see rather than what you expect. It sounds obvious, but the commonest beginner’s mistake at this stage is to test the one row that matters, see the right answer, and move on. A missing pull-down or a swapped wire often gets one row right by chance.
For a game, ask someone to cover the print on one of your chips with tape and put it in the rig while you look away. Fill in its truth table, then compare it with the seven tables in part 4. Four rows are enough to tell AND, OR, XOR and NAND apart, because no two of them give the same four answers. The simulator’s mystery chip plays the same game.
Faults in logic circuits are rarely mysterious; there are only a few of them, and a multimeter finds each one in a minute. Work from the supply towards the LED:
- Power. Measure between pins 14 and 7 of the chip: 5 volts, or nothing else matters.
- Inputs. Measure each input pin against ground, with its button up and then held: about 0 volts up, about 5 volts held. Anything in between means a floating input or a bad contact.
- Output. Measure the output pin. If it follows the truth table but the LED does not, the fault is in the LED, its resistor or its wire to ground.
You have now tested every gate in the kit on its own. The next part puts them to work, in three small projects that each solve a real problem with a single gate.
Sources for this part
The gates and their chips
Handling CMOS
- Lessons in Electric Circuits, Volume IV, chapter 3: CMOS gate circuitry (Tony R. Kuphaldt, CC BY)