In 8 - 4 - 2 - 1 BCD code, the decimal numbers 0, 1, 2, 3,..., 9 are represented in weighted binary form. There are six representations which are not used in this code, namely, 1010, 1011, 1100, 1101, 1110, and 1111. Thus, there is an error if any of these six numbers appears in a system using 8 - 4 - 2 - 1 code.
Changing a BCD number to its equivalent decimal number requires the use of a decoder with four inputs and ten outputs. One decoder for each digit of the decimal number to be decoded is needed. An example IC is the 7445 which is a BCD - to - decimal decoder/driver.
Decimal | A | B | C | D |
---|---|---|---|---|
0 | 0 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 1 |
2 | 0 | 0 | 1 | 0 |
3 | 0 | 0 | 1 | 1 |
4 | 0 | 1 | 0 | 0 |
5 | 0 | 1 | 0 | 1 |
6 | 0 | 1 | 1 | 0 |
7 | 0 | 1 | 1 | 1 |
8 | 1 | 0 | 0 | 0 |
9 | 1 | 0 | 0 | 1 |