answersLogoWhite

0


Best Answer

To convert Gray code to binary code you must be familiar with the logical XOR operator. XOR outputs a 1 bit if either of two input bits is 1, but not both. The truth table for XOR, for all possible inputs p and q, is as follows:

p q output

0 0 0

0 1 1

1 0 1

1 1 0

The algorithm to convert from Gray code to binary code is as follows:

Step 1: Fix the most-significant bit, the MSB, which is always the same for both codes. If there are no more bits, we're done, otherwise proceed to step 2.

Step 2: XOR the most recently fixed binary bit with the next available Gray bit. Fix the result as the next binary bit.

Step 3: If there is at least one more Gray bit available, go to step 2. Otherwise we're done.

Therefore, to convert 10101111 from Gray to binary, we proceed as follows:

Gray = 10101111

Fix MSB = 1

1 XOR 0 = 1

1 XOR 1 = 0

0 XOR 0 = 0

0 XOR 1 = 1

1 XOR 1 = 0

0 XOR 1 = 1

1 XOR 1 = 1

Thus: Binary = 11010101

Note that we carry the fixed bit (the bold bit) onto the next line as the l-value (left operand) of XOR. The r-value (right operand) of XOR is always the next available Gray bit after the MSB. Reading the fixed bits from top to bottom reveals the binary code.

We can also write this as follows:

Gray = 10101111

Binary = 1 XOR 0 = 1 XOR 1 = 0 XOR 0 = 0 XOR 1 = 1 XOR 1 = 0 XOR 1 = 1 XOR 1 = 1

Reading the fixed (bold) bits left to right reveals the binary code.

User Avatar

Wiki User

โˆ™ 2013-02-13 03:06:26
This answer is:
User Avatar
Study guides

Algebra

20 cards

A polynomial of degree zero is a constant term

The grouping method of factoring can still be used when only some of the terms share a common factor A True B False

The sum or difference of p and q is the of the x-term in the trinomial

A number a power of a variable or a product of the two is a monomial while a polynomial is the of monomials

โžก๏ธ
See all cards
3.75
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
865 Reviews
More answers
User Avatar

Jeanne de chantal

Lvl 2
โˆ™ 2021-07-27 16:37:27

[object Object]

This answer is:
User Avatar

User Avatar

Anonymous

Lvl 1
โˆ™ 2020-09-11 04:15:21

1010

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Convert the gray code 10101111 to binary?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you convert binary code 1100110 to gray code?

1001011


How i can Convert the gray code 110111101 to binary code and design the circuit?

110111101


Write a program to convert binary code to gray code using 8085 microprocessor?

just add 3 to the number which you want ti convert into gray code


How do you convert n-bits binary to gray code?

The best way is with a lookup table.


How do you convert gray to binary code?

To convert a gray code to binary1.write the the MSB bit as the MSB of the binary.2.if the 2nd grey bit is 0,then the 2nd binary bit is the same as the first binary bit.... and if the grey bit is 1 the 2nd binary bit is the complement of the first binary bit3.step 2 is repeated for every bit....EXAMPLE:the binary of the grey code 1110011 is 1011101


How do you convert gray code to binary?

Its often done in hardware with a lookup ROM, or in software with a lookup table.


Does special gray code property have any value?

The Gray Code is a type of binary code developed by a programmer named Frank Gray. Gray code is a binary numeral system that differ than normal binary code, and is used widely to detect errors in software.


What is binary cyclic code?

The reflected binary code, also known as Gray codeafter Frank Gray, is a binary numeral system where two successive values differ in only one bit.Here is an example of a 4-bit Gray code:0000000100110010011001110101010011001101111111101010101110011000


What is the Binary equivalent of the gray code 11100?

10111


Applications of binary to GRAY code converter?

gray code is one which changes one bit at a time but binary code is one which changes one or more bit at a time. for example three bit binary and gray code the left one is binary and the right one is gray code.binary gray000 000001 001010 011011 010100 110101 111110 101111 100000 000


How do you convert excess-3 to gray code?

help PLA use convert excess-3 to gray code


What is the difference between gray code and binary code?

Gray code is where only one bit changes at a time. Binary code is where one or more bits change at a time. An example, for three bits, with binary on the left and gray on the right, with the changing bits underlined...000 000001 001010 011011 010100 110101 111110 101111 100000 000 Repeating...The advantage of binary code is that it is easy to convert to a numeric value. The advantage of gray code is that it makes very stable position digitizers, because only one bit changes at a time, resulting in uncertainty of only one bit.

People also asked