摘 要
DALLAS公司单线数字温度传感器DS18B20具有体积小、适用电压宽等特点。由于其具有单总线的独特优点,可以使用户轻松地组建起传感器网络,并可使多点温度测量电路变得简单、可靠。本文介绍了单线数字温度传感器DS18B20的特点和工作原理以及DS18B20数字温度传感器在单片机下的硬件连接,并给出了软件流程图。
该系统采用ATMEL公司的AT89C51单片机和DALLAS公司的DS18B20数字温度传感器。单片机软件编程的自由度大,可通过编程实现各种各样的算术算法和逻辑控制。[1]最后通过数码管显示所测的温度数据。
关键字: 温度测量;单总线;数字温度传感器;单片机
ABSTRACT
1-wire interface digital sensor DS18B20 of DALLAS company is small in size, wide application in voltage and so on. It can also make the net simple and reliable with it's special 1-wire interface. This paper introduces the characteristics and working principle of a 1-wire interface digital sensor DS18B20 and the application of DS18B20 with single chip processor and gives the software flow chart.
The system uses AT89C51 of ATMEL company and DS18B20 of DALLAS company .It’s freely of SCM’s software programming. We can program to achieve a variety of arithmetic algorithms and logic control. Finally it uses numerical code tube to display the temperature data.
Keywords: temperature measure; single bus; digital thermometer; single chip processor