Half adder

The half adder adds two single-digit binary numbers (each 1 bit) and outputs a carry, where applicable. It has the label HA.

The two inputs A and B represent the bits to be added. The output S (sum) represents the last digit of the sum and the output C (carry) represents the carry.

Truth table

A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1

Adjustable parameters

Input
Designation Range Default value
Voltage level (lo) 0.1 ... 24 V 0.8
Voltage level (hi) 0.1 ... 24 V 2
Output
Designation Range Default value
Voltage level (lo) 0 ... 24 V 0
Voltage level (hi) 0.1 ... 24 V 5
Resistance 0.1 ... 1000 Ohm 50