What must you have before you can go?
Imagine your teacher says:
βYou can only go on the school trip if you have your permission slip AND your payment.β
Having only one is not enough. You need both.
The AND gate produces an output of 1 only when both of its inputs are 1.
Imagine your teacher says:
βYou can only go on the school trip if you have your permission slip AND your payment.β
Having only one is not enough. You need both.
An AND gate has two inputs and one output.
The output is 1 only when input A and input B are both 1.
Two input lines enter the left side of the gate. One output line leaves the right side.
The inputs are labelled A and B. The output is labelled X.
A truth table shows every possible pair of inputs and the output produced.
| A | B | X |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
The inputs are labelled A and B. The output is labelled X.
This means X is 1 only when A and B are both 1.
An AND gate receives A = 1 and B = 0. What is the output X?
A = 1 and B = 0 gives X = 1.
A = 1 and B = 0 gives X = 0.