Search for a tool
Gray Code

Tool to convert Gray code. Gray code, or reflected binary code, is a binary system which changes only one bit for each incrementation of one unity.

Results

Gray Code -

Tag(s) : Informatics,Electronics

dCode and you

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day!
You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!


Team dCode read all messages and answer them if you leave an email (not published). It is thanks to you that dCode has the best Gray Code tool. Thank you.

This page is using the new English version of dCode, please make comments !

Gray Code

Sponsored ads

This script has been updated, please report any problems.

Code Gray Decoder



Also on dCode: Binary Code

Code Gray Encoder



Also on dCode: Binary Code

Tool to convert Gray code. Gray code, or reflected binary code, is a binary system which changes only one bit for each incrementation of one unity.

Answers to Questions

How to convert using Gray code?

Conversion uses an algorithm to transform binary into reflected binary (Gray code)

If the binary is 1011, then 1101 is the reflected version.

What is the algorithm to convert binary in gray code?

The easiest principle uses binary operators (xorhref and shift) : gray = n ^ (n >> 1)

What is the algorithm to convert from gray code to binary?

The principle is the inverse of the previous one, it still uses binary operators (xorhref and shift) : n2 = n1;
while (n1 >>= 1) n2 ^= n1;
return n2;

What are the first values in Gray Code?

Gray Code allow to count in binaryhref but, to increment of one, only one bit changes. Here are the 16 first characters.

0000, 0001, 0011, 0010, 0110, 0111, 0101, 0100, 1100, 1101, 1111, 1110, 1010, 1011, 1001, 1000

What are the advantages of Gray Code?

Gray code is modified only one bit at once when incrementing, with simplifies calculations and speed them up.

When Gray Code have been invented?

Patent in 1953

Ask a new question

Source code

dCode retains ownership of the source code of the script Gray Code. Except explicit open source licence (free / freeware), any algorithm, applet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any snippet or function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in PHP (or Java, C#, Python, Javascript, etc.) which dCode owns rights can be transferred after sales quote. So if you need to download the Gray Code script for offline use, for you, your company or association, see you on contact page !

Questions / Comments


Team dCode read all messages and answer them if you leave an email (not published). It is thanks to you that dCode has the best Gray Code tool. Thank you.


Source : http://www.dcode.fr/gray-code
© 2016 dCode — The ultimate 'toolkit' website to solve every problem. dCode