he Gray code equivalent of the binary number 11001011 is
Answers
Here ia a look up table or XOR Gate:
0 0 = 0
0 1 = 1
1 0 = 1
1 1 = 0
-----------------------------------------------------------------------------------------------------------------
Given, Binary Equivalent is 1 1 0 0 1 0 1 1.
(i) Write the 1st number as it is.
= > 1
(ii) Compare 1st and 2nd digits.
= > 1 1 = 0
(iii) Compare 2nd and 3rd digits
= > 1 0 = 1
(iv) Compare 3rd and 4th digits
= > 0 0 = 0
(v) Compare 4th and 5th digits.
= > 0 1 = 1
(vi) Compare 5th and 6th digits.
= > 1 0 = 1
(vi) Compare 6th and 7th digits
= > 0 1 = 1
(vi) Compare 7th and 8th digits
= > 1 1 = 0.
----------------------------------------------------------------------------------------------------------------
Therefore, The Gray code Equivalent is (10101110).
Hope this helps!
Binary code: Data representation in 0 and 1 is referred to as binary code.
Gray code: Data where consecutive numbers are represented using binary digits that differs in only one digit is referred to as gray code.
Given:
Binary code = 11001011
To find:
Gray code
Solution:
In gray code,
10101110
Hence, Gray code = 10101110