To convert a gray code to a binary code, lets consider the formula below:
G7 is the most significant bit and G0 is the least significant bit for the gray code.
B7 is the most significant bit and B0 is the least significant bit for the binary code.
Step 1:
B7 becomes G7
Step 2:
B6 becomes the addition of B7 and G6 (B7 + G6)
B7 is the most significant bit and B0 is the least significant bit for the binary code.
Step 1:
B7 becomes G7
Step 2:
B6 becomes the addition of B7 and G6 (B7 + G6)