Extremely important topic for Digital electronics, digital circuits, computer architecture and computer science.
Full video is available on Youtube: https://youtu.be/oyOaXqx06pY
2. What is Gray Code?
1. This code is named after Frank Gray, an American physicist and researcher at
the Bell Laboratories.
2. It is a non-weighted code – the position of the bit doesn’t carry any weight.
3. Successive code words differ in one bit only.
4. Also called minimum change code, unit-distance code, or minimum error code
5. It is called a cyclic code because successive words differ in one bit position only.
6. This code is also called self-reflecting code.
7. Used in analog-to-digital converters and for error-detection & correction.
8. Gray code will be used when we study Karnaugh maps.
9. Due to change of only one bit, switching operations reduced and power
efficient.
10. This code is not suitable for arithmetic operations.
Mukesh N. Tekwani
4. Gray Code As a Reflected Code
1. Suppose we have a Gray code representation of n-bits.
2. To obtain the Gray code representation of (n+1) bits, we write down the two n-
bit representations one below the other, with the second one being a mirror
image of the first.
3. We then add (append) a 0 at the beginning of every code in the first group and
a 1 at the beginning of every code in the second group.
4. The n least significant bits for
Mukesh N. Tekwani