Method To Convert Binary To Gray Code Using Any Tool

Asked By 0 points N/A Posted on -
qa-featured

I was learning methods of digital data storage in computer memory. I want to convert binary to Gray code numbers so that I can understand a piece of machine code. How can I do it?

SHARE
Answered By 0 points N/A #300320

Method To Convert Binary To Gray Code Using Any Tool

qa-featured

The computer understands only machine language. The machine language comprises only of two bits, 0s, and 1s since there are only two states a semiconductor device can be. Either high conduction state or low resistive state. This binary numbers can be compressed using the Gray code as follows.

  1. The MSB stays the same for both binary code and corresponding Gray code.
  2. Make a XOR operation of the first two bits of the binary number to get the second bit of Gray code. But you need to reject the first bit in this operating.
  3. Iteratively perform this operation till the LSB
  4. The final result is the equivalent result in Gray code.

Related Questions