Contact US
JILIN PROVINCE SANSHENG SENSING TECHNOLOGY CO.,LTD
Tel:0431-81857464/13804324526
Contact: Ms PaulaZhang
Email: paulazhang@san-sheng.net
Website: www.san-sheng.net

NEWS

Current location >> Home>> Product

What is Gray Code

JILIN PROVINCE SANSHENG SENSOR TECHNOLOGY CO.,LTD  Time£º2018/11/16  Browse£º94times

Gray Code is a form of binary. The difference between Gray code and binary is the method of incrementing to the next number. In Gray code only one digit may change states for every increment. This means the count sequence would look something like this 0,1, 3, 2, 6, and 7. This is different than standard binary, where the sequence would be 0, 1, 2, 3, 4, and 5.

Gray Code Binary
  0000 0 0000 0
  0001 1 0001 1
  0011 2 0010 2
  0010 3 0011 3

Gray Code is used to prevent errors as transitions to the next state occur. An example of how an error could occur would be where both values in the sequence were true. This can occur due to the timing sequence and the capacitance of the cable. The transition from 0011 to 0100 could cause 0111 to be generated, with Gray code this is not possible.

Previous£º Wiring methods of Encoders


Next£º pulse cable optical incremental rotary encoder solid shaft 4mm mini shaft rotary position encoder

Copyright ? 2015 SANSHENG SENSOR TECHNOLOGY CO.,LTD.All rights reserved Technical support£ºRuijie Network Technology Company