节点文献
智能温度传感器序列号读取程序设计研究
Research of Program Design and Reading 64-Bit ROM Code about Intelligent Temperature Sensor
【摘要】 单总线智能温度传感器在单总线上传送的是数字信号,并且可以挂接多个传感器,工作时可以通过不同序列号识别每个传感器而读取其温度值。文章中阐述了读出传感器序列号的两种方法。搜索ROM方法和读ROM命令方法。详细地说明了搜索ROM的实现原理与步骤,搜索ROM命令允许主设备使用逐步淘汰的方法识别总线上所有从设备的64位ROM码。其步骤繁琐。当总线上挂接一个传感器时,可以用读ROM命令获得64位序列号,此方法简单易行。文章中基于AT89C52用两种方法读取序列号进行了程序设计。序列号的正确读取已经在实际系统中已得到了验证。
【Abstract】 The digital signal is transferred on the data bus for 1-Wire intelligent temperature sensor. Many sensors can be connected on the data bus. Because every sensor can be identified by different serial number, the temperature of each sensor can be read. Two methods of for reading serial number are expounded in this paper. These two methods are Search ROM method and Read ROM method. The realization principle and approach of search ROM are illustrated in detail. 64-bit ROM codes of all the slave devices on the bus can be identified through a process of elimination that requires the master to perform a Search ROM command. It is fussy. When there is only one slave on the bus, the 64-bit ROM codes can be accepted by the simpler Read ROM command. The programs reading serial number by use of two methods based on AT89C52 are designed. The correct reading of serial number is al-ready proved in the practical system.
- 【文献出处】 微计算机信息 , 编辑部邮箱 ,2007年10期
- 【分类号】TP311.11;TP212.6
- 【被引频次】4
- 【下载频次】169