Plus Two Physics · Semiconductor Electronics

Logic gates: verifying truth tables with ICs

Connect the inputs A and B of a gate IC to switches and its output Y to an LED. A switch up (+5 V) is logic 1, down (0 V) is logic 0; a glowing LED means Y = 1. Try every combination of inputs and build the truth table.

+5 V GND (0 V)

Pin 14 of the IC goes to +5 V and pin 7 to ground. The notch marks the pin-1 end.

Inputs and power
What does the LED show?
Gate symbol

Truth table

    The gates

    • AND (7408): Y = A · B. Output 1 only when both inputs are 1
    • OR (7432): Y = A + B. Output 1 when at least one input is 1
    • NOT (7404): Y = Ā. Output is the opposite of the input
    • NAND (7400): Y = (A · B)‾. AND followed by NOT: 0 only when both inputs are 1
    • NOR (7402): Y = (A + B)‾. OR followed by NOT: 1 only when both inputs are 0
    • XOR (7486): Y = A ⊕ B. Output 1 when the inputs are different

    NAND and NOR are universal gates: any other gate can be built from them alone. Each 14-pin IC holds several identical gates (four 2-input gates, or six NOT gates), powered through pin 14 (+5 V) and pin 7 (ground).

    Precautions

    • Identify pin 1 from the notch or dot on the IC, and check the pin diagram before wiring.
    • Connect pin 14 to +5 V and pin 7 to ground. Never reverse the supply.
    • Use only 0 V and +5 V as inputs. Do not leave inputs unconnected (a floating TTL input behaves as 1).
    • Switch the power off while changing connections.
    • Try every combination of inputs: 4 for a two-input gate, 2 for NOT.