Digital Electronics - Number Systems and Codes - Discussion
Discussion Forum : Number Systems and Codes - General Questions (Q.No. 50)
50.
Convert the binary number 1100 to Gray code.
Discussion:
5 comments Page 1 of 1.
Vijayalakshmi said:
8 years ago
Please explain in detail.
A.UDHAYAKUMAR said:
1 decade ago
MSB DOES NOT CHANGE THEN ADJACENT BIT IS ADDED TO NEXT BIT
1100
MSB=1
1+1=0
1+0=1
0+0=0
SO THAT RESULT IS 1010.
1100
MSB=1
1+1=0
1+0=1
0+0=0
SO THAT RESULT IS 1010.
Muskaan said:
1 decade ago
Gray code is one bit change code which is used in certain circuits to reduce the switching of circuit.
e.g. after 0001 there will come 0011 and not 0010 because there is one bit switching (3rd bit) from 0001 to 0011.
e.g. after 0001 there will come 0011 and not 0010 because there is one bit switching (3rd bit) from 0001 to 0011.
Divya senthil said:
1 decade ago
What is gray code?
Preethi said:
1 decade ago
Let b0 b1 b2 b3 = 1 1 0 0
g0 = b0 = 1
g1 = b0 xor b1 = 0
g2 = b1 xor b2 = 1
g3 = b2 xor b3 = 0
Therefore g0 g1 g2 g3 = 1 0 1 0
Hence 1010.
g0 = b0 = 1
g1 = b0 xor b1 = 0
g2 = b1 xor b2 = 1
g3 = b2 xor b3 = 0
Therefore g0 g1 g2 g3 = 1 0 1 0
Hence 1010.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers