在对新型单线可编程数字温度传感器DS18B20 的测温原理及其激光ROM 中序列号和存储器中数据的CRC 编码进行详细分析的基础上,通过实例给出了用查表法进行检验与纠错的算法。从而加大了数据的传输距离,提高了采集数据的可信度。 关键词: 单线数字温度传感器; 编码; 纠错; 生成多项式; 循环冗余校验 Abstract : Based on the analysis on the principle of temperature measurement ,the CRC’S code of serial number among the laser ROM and the data in the memory in the 12wire digital thermometer Ds181320 ,an algorithm that can check and correct the mistakes by table checking method is provided. The algorithm increases the trans2 mission distance and improves the transmission reliability. Key words : 12wire digital thermometer ; code ; correction ; generated polynomial ; cyclic redundancy code (CRC)