Electronics Engineering Question:

Download Job Interview Questions and Answers PDF

How to design binary to gray code converter?

Electronics Engineering Interview Question
Electronics Engineering Interview Question

Answer:

It is easy to convert the binary number to gray number. First, for example take a binary number i.e ,101101.


Step 1: 101101 first write the MSB as it is i.e, darken bit i.e, 1

Step 2: add MSB and bit next to the MSB i.e, 1+0=1

Step 3: again add 0 and 1 we get i.e, 0+1=1
Step 4: again add 1 and 1 we get 1+1=0

Step 5: in previous step carry is occurred so neglect that carry . note that don't add carry to next add numbers
then again add 1+0 1+0=1

step 6: add 0+1 0+1= 1

Answer: Gray Code is : 111011

Download Electronics Engineering Interview Questions And Answers PDF

Previous QuestionNext Question
When a small amount of Cu is added to a Ni conductor, then the?

a) Resistivity of Ni will decrease at all temperatures because Cu is better conductor than Ni

b) Residual resistivity of Ni at low temperatures will increase as Cu atoms acts as defect centers

c) Resistivity of Ni will increase at all temperatures as Cu destroys the periodicity of Ni and acts as defects

d) Resistivity of Ni remains unaltered as Cu atoms give the same numbers of free electrons as Ni atoms
Explain how to convert binary to gray code and vice-verse?