Binary Digital Systems
Systems that represent and process information using two discrete voltage levels mapped to 0 and 1.
Systems that represent and process information using two discrete voltage levels mapped to 0 and 1.
A binary digital system represents and stores all data using exactly two discrete values — conventionally 0 and 1. Every piece of information in a modern computer — text, images, programs, network packets — is ultimately a sequence of these bits.
Physical circuits are far more reliable at distinguishing two states (voltage high / voltage low) than at representing analog magnitudes precisely. A transistor is either on or off. Noise and manufacturing variation can shift an analog signal significantly without flipping a well-designed binary signal.
The two voltage levels are:
| Symbol | Meaning | Typical voltage |
|---|---|---|
0 (LOW) | Logic false | 0 V |
1 (HIGH) | Logic true | 3.3 V or 5 V |
The bit (binary digit) is the elementary unit of information — a single 0 or 1.
| Group | Size | Range |
|---|---|---|
| Nibble | 4 bits | 0–15 |
| Byte | 8 bits | 0–255 |
| Word | 16 / 32 / 64 bits | Architecture-dependent |
Unsigned binary: positional notation in base 2.
Two’s complement: the standard for signed integers.
To negate a number: invert all bits, add 1.
The MSB is the sign bit. This encoding makes arithmetic circuits identical for signed and unsigned addition.
All computation reduces to combinations of three fundamental gates:
| Gate | Symbol | Behavior |
|---|---|---|
| AND | A · B | Output 1 only if both inputs are 1 |
| OR | A + B | Output 1 if at least one input is 1 |
| NOT | ¬A | Output 1 if input is 0 |
From these three, all other gates (NAND, NOR, XOR, XNOR) and all arithmetic circuits (adders, multipliers) can be constructed. NAND and NOR are individually functionally complete — any logic function can be built from only NANDs or only NORs.
Raw binary numbers need a mapping to represent human-readable characters.
'A' = 65 = 0100 0001
'a' = 97 = 0110 0001
'0' = 48 = 0011 0000