智能温度传感器序列号读取程序设计研究  被引量:3

Research of Program Design and Reading 64-Bit ROM Code about Intelligent Temperature Sensor

在线阅读下载全文

作  者:艾红[1] 厉虹[1] 万明明[1] 

机构地区:[1]北京机械工业学院计算机及自动化系,北京100085

出  处:《微计算机信息》2007年第10期211-213,共3页Control & Automation

基  金:北京市教育委员会科技发展计划面上项目资助(KM200511232010)

摘  要:单总线智能温度传感器在单总线上传送的是数字信号,并且可以挂接多个传感器,工作时可以通过不同序列号识别每个传感器而读取其温度值。文章中阐述了读出传感器序列号的两种方法。搜索ROM方法和读ROM命令方法。详细地说明了搜索ROM的实现原理与步骤,搜索ROM命令允许主设备使用逐步淘汰的方法识别总线上所有从设备的64位ROM码。其步骤繁琐。当总线上挂接一个传感器时,可以用读ROM命令获得64位序列号,此方法简单易行。文章中基于AT89C52用两种方法读取序列号进行了程序设计。序列号的正确读取已经在实际系统中已得到了验证。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.

关 键 词:序列号 搜索ROM 单总线 温度传感器 

分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象