DT - CO3 - Gray and Binary Code
DT - CO3 - Gray and Binary Code
Gray code to binary conversion is again a very simple and easy process.
Following steps can make your idea clear on this type of conversions.
1. The MSB of the binary number will be equal to the MSB of the given gray code.
2. Now if the second gray bit is 0, then the second binary bit will be the same as the previous or the first bit. If the gray bit is 1 the
second binary bit will alter. If it was 1 it will be 0 and if it was 0 it will be 1.
3. This step is continued for all the bits to do Gray code to binary conversion.
One example given below will make your idea clear.
To design a 4 bit gray to binary code converter, we first have to draw a gray code conversion table, as shown below:
Truth table:-
Applications:-
1. Gray code has applications in analog to digital converters as
well as being used for error correction in digital communication
2. Gray code is used to minimize errors in converting analog
signals to digital signals.