ABSTRACT
In daily life and industrial production process, often used in the detection and control of temperature, temperature is the production process and scientific experiments in general and one of the important physical parameter. In the production process, in order to efficiently carry out the production, to be its main parameters, such as temperature, pressure, flow control, etc... Temperature control in the production process of a large proportion. Temperature measurement is the basis of temperature-controlled, more mature technology. Traditional thermocouple and temperature components are the second resistor. The thermocouple and thermal resistance are generally measured voltage, and then replaced by the corresponding temperature, these methods are relatively complex, requiring a relatively large number of external hardware support. We use a relatively simple way to measure. We use the United States following DALLAS Semiconductor DS1820 improved after the introduction of a smart temperature sensor DS18B20 as the detection element, a temperature range of -55 ~ 125 º C, up to a maximum resolution of 0.0625 º C. DS18B20 can be directly read out the temperature on the north side, and three-wire system with single-chip connected to a decrease of the external hardware circuit, with low-cost and easy use. Key words: Sensor; Thermometer; Single chip microcomputer AT89C52;
DS18B20.
目 录
摘 要 2
ABSTRACT 3
第1章 绪 论 5
1.1 课题背景 5
1.2 国内外在该方向的研究现状及分析 5
第2章 系统总体分析和设计 6
2.1 系统整体结构框图 6
2.2 系统总体分析 6
第3章 系统硬件电路的设计 7
3.1 主控制器 7
3.1.1 AT89C52功能简介 7
3.1.2 主要性能参数 7
3.2 温度传感器 7
3.2.1 DS DS18B20的工作原理 8
3.2.2 DS18B20的性能特点 9
3.3 电路的设计 9
3.3.1 电源电路设计 9
3.3.2温度采集电路设计 10
3.3.3显示电路设计 12
第4章 系统软件设计 13
4.1 DS18B20的单线协议和命令 13
4.2 程序流程图 14
4.2.1主程序流程图 14
4.2.3温度转换及读取数据程序流程图 14
4.2.4显示数据子程序流程图 15
结 论 16
参考文献 17
附录 原理图 18