Home › Lessons › Digital logic › AND gate

AND gate

Digital logic · Beginner · about 10 minutes · part of Zen’s Electronics Design Mastery

The output is 1 only when every input is 1. Think of two switches in series.

AND gate: the circuit on the simulator's bench

Open this lesson in the labFree, in your browser, no account needed.

How it works

Y = A · B

ABYbench
000—
010—
100—
111—

Flip the switches to try every row. “bench” fills in with what the chip actually did.

74HC08: quad 2-input and in one 14-pin chip. Pin 14 is +5 V, pin 7 is ground. Every unused input should be tied to VCC or GND in a real build.

Try it on the bench

  1. Click switches 1 and 2 to step through 00, 01, 10 and 11. Each combination fills a row of the table.
  2. Select U1 and change its family to 74LS: the high output drops to about 3.5 V, because TTL outputs cannot pull all the way to VCC.
  3. Delete the wire to input B. A floating CMOS input is undefined: the output flickers. Switch the chip to 74LS and the floating input reads as 1.

Parts on the bench

In the course

Zen’s Electronics Design Mastery, module “Digital Electronics”.

More on digital logic