更新时间:03-18 (随心所欲)提供原创文章
摘要:本论文介绍了一种以单片机为主要控制器件,以DS18B20为温度传感器的新型数字温度计。主要包括硬件电路的设计和系统程序的设计。硬件电路主要包括主控制器,测温控制电路和通信电路等,主控制器采用单片机AT89S52,温度传感器采用美国DALLAS半导体公司生产的DS18B20,采用RS232标准串口与上位机进行实时通信。系统程序主要包括主程序,测温子程序和通信子程序等。DS18B20新型单总线数字温度传感器是DALLAS 公司生产的单线数字温度传感器, 集温度测量和 A /D转换于一体 ,直接输出数字量,具有接口简单、精度高、抗干扰能力强、工作稳定可靠等特点。
由于采用了改进型智能温度传感器DS18B20作为检测元件,与传统的温度计相比,本数字温度计减少了外部的硬件电路,具有低成本和易使用的特点。DS18B20温度计还可以在高温报警、远距离多点测温控制等方面进行应用开发,具有很好的发展前景。此外,还介绍了系统的调试和性能分析。
关键词:单片机,AT89S52,温度传感器,DS18B20,单总线
Abstract:The present paper introduced one kind take the monolithic integrated circuit as the primary control component, take DS18B20 as temperature sensor's new digital thermometer. Mainly includes hardware circuit's design and the system program design. The hardware circuit mainly includes the master-control unit, the temperature measurement control circuit and the communication circuit and so on, the master-control unit uses monolithic integrated circuit AT89S52, the temperature sensor uses DS18B20 which the American DALLAS Semiconductor Company produces, uses the RS232 standard serial port and the superior machine carries on the real-time communication. The system program mainly includes the master routine, the temperature measurement subroutine and the correspondence subroutine and so on. The DS18B20 new single main line digit temperature sensor is the single track digit temperature sensor which DALLAS Corporation produces, the collection temperature survey and A /D transforms in a body, the direct output digit quantity, has the connection to be simple, the precision is high, antijamming ability is strong, work stable reliable and so on characteristics.
Because used advanced version intelligence temperature sensor DS18B20 to take the detecting element, compared with the traditional thermometer, this digital thermometer reduced the exterior hardware circuit, has characteristic which the low cost and easy to use. The DS18B20 thermometer may also in the high temperature warning, aspects and so on long-distance range multi-spot temperature measurement control carry on the application development, has the very good prospects for development. In addition, but also introduced system's debugging and the performance analysis
Key word: Monolithic integrated circuit, AT89S52, temperature sensor, DS18B20, single main line