首页 | 本学科首页   官方微博 | 高级检索  
     

数字温度传感器DS18B20读出数据错误分析
引用本文:雷建龙,. 数字温度传感器DS18B20读出数据错误分析[J]. 电子器件, 2007, 30(6): 2183-2185
作者姓名:雷建龙  
作者单位:武汉船舶职业技术学院,电子系,430050
摘    要:为了在超声波液位测量仪中准确地测定环境温度,采用了单总线数字温度传感器DS18B20.针对单片机在读出DS18B20中数据时常出现错误的问题,从DS18B20的读出数据时序入手,分析了测量程序,特别是读出DS18B20的程序,发现了读出错误的原因,在KeilC单片机集成开发环境中,通过实验反复比较证实了所作的分析,也提出解决了这一问题的方法.实际应用表明,修改单片机读出DS18B20程序后,从未出现此问题.

关 键 词:数字温度传感器  读出错误分析  单片机  DS18B20  单总线  温度测量
文章编号:1005-9490(2007)06-2183-03
修稿时间:2007-01-10

Error Analyzing of Read-out Data of 1-wire Bus Digital Temperature Sensor DS18B20
LEI Jian-long. Error Analyzing of Read-out Data of 1-wire Bus Digital Temperature Sensor DS18B20[J]. Journal of Electron Devices, 2007, 30(6): 2183-2185
Authors:LEI Jian-long
Affiliation:Department of Electronics of Wuhan Institute of Shipbuilding Technology; Wuhan 430050; China
Abstract:For the purpose of accurately detecting the environment temperature in ultrasonic oil-level meter, the 1-wire bus digital temperature sensor DS18B20 was applied in the system. Aimed at the problem of reading error when MCU read DS18B20, by analyzing the timing of DS18B20 when reading, the detecting program, especially the reading out program is analyzed,by which the causes of reading out error is discovered. In the IDE of Keil C, the analysis is approved by many times experiment, and also the method of how to solve this problem is put forward. The practice application indicates that the error has never taken place after amending the program of reading DS18B20.
Keywords:digital temperature sensor  analysis of reading out error  MCU  DS18B20  1-wir bus  temperature detecting.
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《电子器件》浏览原始摘要信息
点击此处可从《电子器件》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号