Characters and Other Codes (1)
To represent information as strings of alpha-numeric characters.
Binary Coded Decimal (BCD)
- Used to represent the decimal digits 0 - 9.
- 4 bits are used.
- Each bit position has a weight associated with it (weighted code).
- Weights are: 8, 4, 2, and 1 from MSB to LSB (called 8-4-2-1 code).
- BCD Codes:
0: 0000 1: 0001 2: 0010 3: 0011 4: 0100
5: 0101 6: 0110 7: 0111 8: 1000 9: 1001
- Used to encode numbers for output to numerical displays
- Used in processors that perform decimal arithmetic.
- Example: (9750)10 = (1001011101010000)BCD