大气与环境光学学报 ›› 2010, Vol. 5 ›› Issue (4): 322-.

• 光电技术 • 上一篇    

单总线技术及DS18B20的温度测量实现

孙明利, 鲍健, 张铄   

  1. (中国科学院安徽光学精密机械研究所,  安徽 合肥,  230031)
  • 收稿日期:2009-10-15 修回日期:2009-12-13 出版日期:2010-07-28 发布日期:2010-07-21
  • 通讯作者: 孙明利 (1983- ),男(汉),安徽省宿州人,硕士,研究方向:计算机应用。 E-mail:mlsun@mail.ustc.edu.cn
  • 作者简介:孙明利 (1983- ),男(汉),安徽省宿州人,硕士,研究方向:计算机应用。

1-Wire Bus Technology and Realization of Temperature Measurement of DS18B20

SUN Ming-li, BAO Jian, ZHANG Shuo   

  1. (Anhui Institute of Optics and Fine Mechanics, Chinese Academy of Sciences, Hefei, 230031,China)
  • Received:2009-10-15 Revised:2009-12-13 Published:2010-07-28 Online:2010-07-21

摘要:

介绍了单总线技术的特点。设计了以PIC16F73单片机和单总线数字温度传感器DS18B20构成的温度测量系统, 并且给出了该系统的硬件结构和相应的软件设计。与传统温度测量设备相比,具有结构简单、测温精度高、抗干扰能力强等特点。此外,由于每个DS18B20都有一个唯一的序列号,所以多只DS18B20可以挂接在同一根总线上。

关键词: 单总线, DS18B20, PIC16F73单片机

Abstract:

Characteristics of 1-wire technique were introduced. A temperature survey system based on 1-wire digital sensor DS18B20 and PIC16F73 was designed. The hardware structure and the software design were also described. Compared with the traditional temperature control devices, this system has simpler structure, higher precision and better anti-disturbance performance. In addition, each DS18B20 has a unique serial code, which allows many DS18B20s to function on the same 1–wire bus.

Key words: 1-wire bus, DS18B20, PIC16F73MCU

中图分类号: