GeekInterview.com
Series: Subject: Topic:
Question: 106 of 188

Gray to Binary Code Converter

Design gray to binary code converter?
Asked by: gayatrisegu | Member Since Jun-2008 | Asked on: Jun 14th, 2008

View all questions by gayatrisegu

Showing Answers 1 - 1 of 1 Answers
linzmath

Answered On : Oct 30th, 2008

View all answers by linzmath

A small example

Binary of 1011 -
1101

Steps

1. write the msb as itseif (here retain fourth bit say 1 ) and it will be the
msb of binary.

2. add the msb of binary (say 1) with next bit of gray (say 0 ie third bit )and
the sum (1) becomes next bit of binary. note: if any carry generated just discard
it.

3. previous sum (1) is again added with next bit of gray(1 ie second bit) and
this sum(0) becomes second bit of binary .

4. previous sum (0) is again added with next bit of gray (1 ie first bit) and
the sum (1) becomes first bit of binary.
 

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

Micro Processor Interview Questions

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.