ARTICLE CONTENT · UPDATED 2026
CODE CONVERSION
Code Converters - BCD to/from Excess-3 Code
BCD (Binary Coded Decimal) and Excess-3 are numeric representations used in digital arithmetic circuits. This guide details truth tables, K-map simplifications using don't-care conditions (X), minimized logic expressions, and circuit designs.
1. Overview of BCD and Excess-3 Codes
What is BCD (8421 Code)?
Binary Coded Decimal (BCD) represents decimal digits 0 through 9 using 4-bit binary values (0000 to 1001). Bit combinations from 1010 to 1111 (10 to 15) are invalid in BCD and treated as don't-care conditions (X) in K-maps.
What is Excess-3 Code?
Excess-3 is an unweighted, self-complementing code derived by adding 3 (0011 in binary) to each decimal digit's BCD representation. Self-complementing means taking the 1's complement of an Excess-3 code yields the 9's complement of the corresponding decimal digit.
Key Characteristics:
Unweighted Code
Self-Complementing
Don't-Care States (10–15 in BCD)
2. Converting BCD to Excess-3 Code
Let B3, B2, B1, B0 (or A, B, C, D) be the 4 BCD input bits and E3, E2, E1, E0 (or w, x, y, z) be the 4 Excess-3 output bits.
Truth Table
| Decimal Digit |
BCD Input (B3 B2 B1 B0) |
Excess-3 Output (E3 E2 E1 E0) |
| 0 | 0000 | 0011 |
| 1 | 0001 | 0100 |
| 2 | 0010 | 0101 |
| 3 | 0011 | 0110 |
| 4 | 0100 | 0111 |
| 5 | 0101 | 1000 |
| 6 | 0110 | 1001 |
| 7 | 0111 | 1010 |
| 8 | 1000 | 1011 |
| 9 | 1001 | 1100 |
| 10–15 | 1010 to 1111 | XXXX (Don't Care) |
K-Map Simplifications
| CDAB |
00 | 01 | 11 | 10 |
| 00 |
1 |
0 |
0 |
1 |
| 01 | 1 | 0 | 0 | 1 |
| 11 | X | X | X | X |
| 10 | 1 | 0 | X | X |
z = D'
| CDAB |
00 | 01 | 11 | 10 |
| 00 |
1 |
0 |
1 |
0 |
| 01 | 1 | 0 | 1 | 0 |
| 11 | X | X | X | X |
| 10 | 1 | 0 | X | X |
y = CD + C'D'
| CDAB |
00 | 01 | 11 | 10 |
| 00 |
0 |
1 |
1 |
1 |
| 01 |
1 |
0 |
0 |
0 |
| 11 |
X |
X |
X |
X |
| 10 | 0 | 1 | X | X |
x = B'C + B'D + BC'D'
| CDAB |
00 | 01 | 11 | 10 |
| 00 | 0 | 0 | 0 | 0 |
| 01 |
0 |
1 |
1 |
1 |
| 11 |
X |
X |
X |
X |
| 10 | 1 | 1 | X | X |
w = A + BC + BD
Minimized Boolean Expressions
- E0 (z) = B0'
- E1 (y) = B1 B0 + B1' B0' = (B1 ⊕ B0)'
- E2 (x) = B2' B1 + B2' B0 + B2 B1' B0' = B2 ⊕ (B1 + B0)
- E3 (w) = B3 + B2 B1 + B2 B0 = B3 + B2(B1 + B0)
3. Converting Excess-3 to BCD Code
Reverse conversion processes 4-bit Excess-3 inputs (E3, E2, E1, E0) to produce BCD outputs (B3, B2, B1, B0). Excess-3 input states 0000, 0001, 0010 (0 to 2) and 1101, 1110, 1111 (13 to 15) are invalid states, marked as don't-care conditions (X).
Truth Table
| Decimal Digit |
Excess-3 Input (E3 E2 E1 E0) |
BCD Output (B3 B2 B1 B0) |
| 0–2 (Invalid) | 0000 to 0010 | XXXX (Don't Care) |
| 0 | 0011 | 0000 |
| 1 | 0100 | 0001 |
| 2 | 0101 | 0010 |
| 3 | 0110 | 0011 |
| 4 | 0111 | 0100 |
| 5 | 1000 | 0101 |
| 6 | 1001 | 0110 |
| 7 | 1010 | 0111 |
| 8 | 1011 | 1000 |
| 9 | 1100 | 1001 |
| 13–15 (Invalid) | 1101 to 1111 | XXXX (Don't Care) |
K-Map Simplifications
| E1E0E3E2 |
00 | 01 | 11 | 10 |
| 00 |
X |
X |
0 |
X |
| 01 | 1 | 0 | 0 | 1 |
| 11 | 1 | X | X | X |
| 10 | 1 | 0 | 0 | 1 |
B0 = E0'
| E1E0E3E2 |
00 | 01 | 11 | 10 |
| 00 |
X |
X |
1 |
X |
| 01 |
0 |
0 |
0 |
0 |
| 11 |
X |
X |
X |
X |
| 10 |
0 |
1 |
1 |
0 |
B1 = (E1 ⊕ E0)'
| E1E0E3E2 |
00 | 01 | 11 | 10 |
| 00 |
X |
X |
0 |
X |
| 01 |
1 |
1 |
0 |
1 |
| 11 |
0 |
X |
X |
X |
| 10 |
1 |
1 |
0 |
1 |
B2 = E2 ⊕ (E1 + E0)'
| E1E0E3E2 |
00 | 01 | 11 | 10 |
| 00 | X | X | 0 | X |
| 01 | 0 | 0 | 0 | 0 |
| 11 |
1 |
X |
X |
X |
| 10 |
0 |
0 |
1 |
0 |
B3 = E3E2 + E3E1E0
Minimized Boolean Expressions
- B0 = E0'
- B1 = E1' E0' + E1 E0 = (E1 ⊕ E0)'
- B2 = E2 ⊕ (E1 + E0)'
- B3 = E3 E2 + E3 E1 E0
4. Applications of BCD and Excess-3 Converters
-
Decimal Arithmetic Units:
Simplifies 9's complement subtraction algorithms in digital calculators and financial computing hardware.
-
Seven-Segment Display Controllers:
Facilitates digital display driving where decimal inputs must be encoded into self-complementing logic formats.
-
Legacy Computing & Counters:
Used in multi-digit decimal counters and early electronic data processing systems.