Binary Code

Efficiency of BCD codes

Q- Calculate the efficiency of BCD codes wrt Binary number representation for (a) 4-bit (b) 8-bit. Ans: (a) With 4-bits we have 10 numbers represented in BCD while 16 in Binary hence Efficiency = (10/16)* 100 = 62.5% (b) With 8-bits we have 100(102) numbers represented in BCD while 256(28) in Binary hence Efficiency = (100/256)* 100 […]

Binary Code

BCD Codes

It is an abbreviation of Binary coded decimal. In this coding each decimal digit is represented by the equivalent 4 bits. So if we are to represent 1110 in binary it is 1011 while in BCD it is 0001 0001. So we can see corresponding binary & BCD equivalent of decimal numbers in the following table: […]

Binary Code

Type of BINARY CODES

We can categorize binary codes in following types: Weighted codes: These codes have fixed weights for different binary positions e.g.  BCD codes, 8 4 -2 -1, 2 4 2 1 etc Non-weighted codes: These codes don’t have fixed weights for different binary positions e.g. excess-3 codes, gray code Sequential codes: In this coding system, we have consecutive codeswhosedecimal equivalents […]