摘要
运用数字型传感器DS18X20按一线总线方式进行多点测温的关键技术是传感器的地址编码问题。使用少数几位十进制编码取代48位二进制序列号作地址编码容易在工程中实施。根据地址码与序列号的关系介绍了3种处理方式:手工编制关系表、逐次比较式建立关系表和内嵌式智能建表,并对3种处理方式的可行性和实用性进行了比较。根据器件结构特征重点分析了效率最高的了第3种方法,并阐述了编码器的设计和使用方法。
It is critical technology to encode the digital sensor DS18X20,while measure multiple temperatures with the 1-wire bus.It is easy to practice for project engineering that addressing code is used decimal code instead of 48-bit serial number.By the structure of DS18X20 and the table of addressing code with serial number,introduce three modes to realize it.These are manual mode table,successive approximation mode table and embedded inteligence table.A comparison between the three modes in the performability and availability is also drawn.As focal point,analyze the third mode.It is because that is efficiency.In the mode,make two or three BCD instead of the 6 bytes of serial number on DS18X20 and write the BCD into register TH/TL.Then,describe the design of encoder and application method,which have simple interface,good reliability and practical value.
出处
《仪表技术与传感器》
CSCD
北大核心
2004年第1期41-43,共3页
Instrument Technique and Sensor
关键词
多点测温
传感器识别
编码优化
编码器
设计
温度传感器
Measuring Multiple Temperatures
Destinguish Sensors
Optimize Code
Design of Encoder