How to convert binary to gray code and vice-verse?



How to convert binary to gray code and vice-verse?..

Answer / Sunil Singh Chauhan

To convert Binary to Gray Code, follow these steps: 1. For the leftmost bit, do not perform any transformation. 2. For each subsequent bit, compare it with the corresponding bit on the left. If they are the same, keep the current bit as is; otherwise, invert it. To convert Gray Code back to Binary, you can follow these steps: 1. Take the first bit (leftmost) as it is. 2. For each subsequent bit, compare it with the corresponding bit on the right. If they are the same, keep the current bit as is; otherwise, invert it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Electronics Communications Interview Questions

wat should be the main steps for qualifying gate.

1 Answers  


What is Cell Splitting?

1 Answers  


hi, This is manglam.I have done BE(E&TC). I have been selected for icici po interview on 7th sept.So what type of questions they may ask? If u have any interview questions , plz mail me(vickymanglam@gmail.com). are the gd topics always related with economics?

1 Answers   ICICI,


why six transistors are used to store single bit in sram

1 Answers  


what is the source of time varying electric field?

1 Answers  


what is rectifier circuit?

3 Answers   TCS,


What is DNS server and resolver

1 Answers   Aricent,


what is the main diferance b/w the electronic and electrical?

5 Answers  


What are the advantages & disadvantages between analogue & digital communications?

3 Answers  


What do you understand by voltmeter multiplier?

1 Answers  


checking procedure of i.g.b.yt & diode by multimeter...

1 Answers   Badve,


Can you please share working of LED ?

3 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4453)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)