2. NOT Gate
Input A Output P
A P
0 1
1 0
A not gate only has 1 input. 1
or a 0. In a NOT gate the
input is not the output. The
output is always the opposite
of the input.
3. AND Gate
Input A
Output P
Input B
A B P
0 0 0
1 0 0
0 1 0
1 1 1
In an AND gate there are 2
inputs. Input A and Input B
both have to be the same for
the same output. If they are
different it will be 0 (off).
4. OR Gate
Input A
Output P
Input B
A B P
0 0 0
1 0 1
0 1 1
1 1 1
The OR gate also has 2 inputs.
Input A or B has to be 1 for the
output to be 1.