格雷码与二进制代码的转换规矩(国外英文资料).docVIP

  • 8
  • 0
  • 约2.92万字
  • 约 8页
  • 2017-06-08 发布于河南
  • 举报

格雷码与二进制代码的转换规矩(国外英文资料).doc

格雷码与二进制代码的转换规矩(国外英文资料)

格雷码与二进制代码的转换规则(国外英文资料) Gray code and binary code conversion rules What is a gray? First we try to understand the gray code. We introduced some common BCD code, 8421BCD, 2421BCD, 5421BCD, and other code, then the gray code we contact less, what is gray? The code was invented in 1953 by a man called Frank Gray, originally used for communications. Gray code, also known as cyclic binary code or reflective binary code, its basic feature is that any two adjacent code is only one binary number is different, which will be explained in detail below. In digital systems, code is often required to change in a certain order. For example, according to the natural increasing number of counts, if the 8421 yards is number 0111 to 1000 when the four were to change, while the change in the actual circuit, 4 bits cant happen at the same time, the count may appear in other code short (1100, 1111). In a particular case, the circuit may result in state errors or input errors. The use of gray code can avoid this error. Belong to the gray code encoding is a reliability, error minimization encoding. For example, if the temperature of said hot water kettle with a 8 bit binary number, the temperature is continuously changing, 36 degrees C, 37 degrees C, 38 degrees C... So..., the temperature is increased by one time, the binary number will increase 1. At this time, the binary number may be a change at the same time: when the temperature from 119 DEG C to 120 DEG C, the binary number varied fromto with four bit change; when the binary number changes from 177 ~ C to 178 ~ C, the binary number varied fromto a 8 bit change. That is to say, the natural binary number in the numerical representation of a continuous change, there may be a change at the same time, each bit flipping (change) frequency is relatively high, which in some applications is very unfavorable. But because of the gray code, cyclic characteristics and characteristics of single step, when nu

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档