检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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.
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.229