3. Binary to Gray:
● Invented by Frank Gray.
● Unweighted code.
● Also known as Reflected Binary
Code(RBC).
● Two successive value differs
only by one bit. It reduces
switching operation.
● Use in a K-map.
4. Binary conversion to Gray conversion
Step 1: Record the MSB as it is.
Step 2: Add the MSB to the next
bit, record the sum and neglect
the carry.
Step 3: Repeat the process.
5. Gray code to Binary code conversion
Step 1:Record the MSB as it is.
Step 2:Add to the next bit if Gray code,record
the sum and neglect the carry.
Step 3:Repeat the process.
7. Binary coded decimal(BCD)
● In this code each decimal
digit is represented by a 4-bit
binary number.
● Positional weights are
8-4-2-1.
● BCD is less efficient than
Binary.
8. Conversion of Decimal to
BCD
Example:
1. 17 ==>00010111
2. 156 ==>000101010110
3. 30 ==>00110000
Conversion of BCD to Decimal
Example:
1.00011001==>19
2.01000101==>45
3.01010100==>54
25
35
22