2421 Codes || Self complementing codes || Weighted codes || Reciprocating codes || BCD codes ||

Опубликовано: 10 Октябрь 2024
на канале: The Learner's Channel
24,045
442

In 2421 code, the weights assigned to the four digits are 2, 4,
2, and 1. The 2421 code is the same as that in BCD from 0 to 4; however, it varies from 5 to 9. For example, in this case the bit combination 0100 represents decimal 4; whereas
the bit combination 1101 is interpreted as the decimal 7, as obtained from 2 × 1 + 1 × 4
0 × 2 + 1 × 1 = 7. This is also a self-complementary code, that is, the 9’s complement of
the decimal number is obtained by changing the 1s to 0s and 0s to 1s.

Number System and Codes:    • Number System and Codes  

Weighted codes:    • Weighted codes || Classification of b...