A Half adder is used to perform a single bit addition where the sum and carry is displayed in the output.
The sum of the adder is given by XORing the inputs A and B
The carry of the adder is given by performing an AND operation between A and B
Half adder can be tested and expressed by
Sum (S) = A XOR B Carry (C) = A . B
The Truth table is given by
Two LED bulbs are connected at the output of sum and carry The LED will blink when the respective values are high
(When A=0 and B=0, S=OFF and C= OFF) (When A=0/1 or B=0/1, S=ON and C= OFF) (When A=1 and B=1, S=OFF and C=ON)
# | Input | Output | Bidirectional |
---|---|---|---|
0 | IN0 | OUT0 | |
1 | IN1 | OUT1 | |
2 | |||
3 | |||
4 | |||
5 | |||
6 | |||
7 |