Aiken code

The Aiken code is a complementary binary-coded decimal code . A group of four bits is assigned to the decimal digits from 0 to 9 according to the following table . The code was developed by Howard Hathaway Aiken and is still used today in digital clocks , pocket calculators and similar devices.

The Aiken code differs from the BCD code in that the Aiken code does not weight the 4th digit as 8 with the BCD code but with 2.

The following weighting is obtained for the Aiken code: 2-4-2-1

One might think that double codes are possible for a number, For example 1011 and 0101 could represent 5. However, here one makes sure that the digits 0 to 4 are mirror image complementary to the numbers 5 to 9.

Example of Aiken code
Decimal-
digit
Aiken-
code
BCD-
code
0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 1
2 0 0 1 0 0 0 1 0
3 0 0 1 1 0 0 1 1
4 0 1 0 0 0 1 0 0
5 1 0 1 1 0 1 0 1
6 1 1 0 0 0 1 1 0
7 1 1 0 1 0 1 1 1
8 1 1 1 0 1 0 0 0
9 1 1 1 1 1 0 0 1

See also

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.