Binary Code

Gray Code

This is also called unit distance code or reflected code. This coding system has a property that there is only one bit change between consecutive gray codes. The following table would show gray codes of decimal values.

Binary to gray conversion:

Starting from right to left

  1. If it is MSB then place it as it is
  2. Otherwise, Add the bit to the previous bit and place the sum in GRAY, ignoring any carry
  3. Repeat step 2 till end

Eg.  Convert 1011 to gray

Gray to Binary conversion:

Starting from right to left  

  1. If it is MSB then place it as it is
  2. Otherwise, Add the bit to the previous than corresponding bit of GRAY code and place the sum in GRAY, ignoring any carry
  3. Repeat step 2 till end

Eg.  Convert 1110 to gray

50 Replies to “Gray Code

  1. Pingback: โคมไฟ
  2. Pingback: Alon Alexander
  3. Pingback: bangkok tattoo
  4. Pingback: Ford Everest
  5. Pingback: Herbalife account
  6. Pingback: GAMING WORLD
  7. Pingback: pgslot
  8. whoah thiss weboog iis great i reallly like reading your
    articles. Keep upp the great work! You already know, a lot of indiiduals aree searching rouund forr this information, yoou can help
    tbem greatly.

  9. You’ve made somke good points there. I looked onn the
    web foor more inflrmation about tthe issue andd found mostt individuals wiill go along witth your viewss
    oon this site.

  10. Pingback: Diyala Science1
  11. Pingback: lazywin888
  12. Pingback: massage Bangkok
  13. Pingback: let's chat
  14. Pingback: 789bet
  15. Pingback: fruit cash
  16. Pingback: ricky casino
  17. Pingback: YUC
  18. Pingback: ufa777
  19. Pingback: pin-up
  20. Pingback: betflix wallet
  21. Definitely imagine that which you stated. Your favourite justification appeared to be on the net the easiest factor to understand of.
    I say to you, I certainly get irked while other people consider worries that they just do not
    know about. You managed to hit the nail upon the highest and also defined out
    the entire thing with no need side effect , other people could take
    a signal. Will probably be again to get more. Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *