摘 要:随着时代的进步和发展,温度不再是一个普通的环境参数,它与人们的生活密切相关,需要实时测量温度在生活以及工业生产的过程中的变化,这样才能使我们的生活更加美好。单片机的应用已经普及到我们生活中的方方面面,相比过去集成化程度不高,技术不成熟等硬伤,现在这一技术则显得较为成熟,更大程度的对我们的生活领域有些改进。 本论文主要讲述了怎样用单片机和温度传感器相结合制作精密温度计,其主要以单片机为主要控制器件,用DS18B20作为温度传感器。文中不仅详细描述了如何利用DS18B20开发测温系统的过程,也介绍了传感器和单片机如何相互配合使用。主要设计电路包括主控制器、温度控制电路和显示电路。具体硬件设计为用C51系列单片机系统作为主控制器。DS18B20温度传感器在本设计中被用作检测元件,由于传感器的使用,使其解决了以往寻常温度计所不能解决的问题。这也将在温度测量领域刮起一阵旋风。40529
毕业论文关键词:AT89C52,温度传感器,DS18B20
The Design of DS18B20 Precision Thermometer
With the progress and development of the times, the temperature of the environment is no longer a common parameter, which is closely related to people's lives, need real-time measurement of the temperature change in life and industrial production processes, so as to make our life better.
SCM applications have spread to all aspects of our lives, compared to the past is not high degree of integration, technology immature flawed, and now it appears that this technology is more mature, our areas of life to a greater extent in some improvement. This paper focuses on how to use a combination of microcontroller and temperature sensor production of precision thermometer, the main microcontroller as the main control device, use DS18B20 as a temperature sensor. This paper not only describes in detail how to use DS18B20 temperature measurement system development process, but also introduces the sensor and the microcontroller used in conjunction with each other. The main design of the circuit includes a main controller, temperature control circuit and display circuit. Specific hardware designed for use C51 MCU system as the main controller, using the Dallas Semiconductor company's production DS18B20 temperature sensor temperature control circuit, use eight common cathode LED digital tube display circuit as well as make use ULN2803A driven dynamic Scan direct reading display.
DS18B20 temperature sensor in this design is used as a sensing element, the use of the sensor, it solves the ordinary thermometer can not solve the problem. It will also all the rage in the field of temperature measurement.
Keywords: AT89C52, temperature sensor, DS18B20, System debugging
目 录
摘要 1
引言 2
1. 绪论 2
2. 硬件电路的设计 3
2.1系统设计的框架 3
2.2单片机最小系统电路 4
2.3 STC89C52组成简介 4
3. 显示电路 4
3.1数码管的工作原理 4
3.2数码管驱动电路 6
3.3温度传感器工作原理 6
3.3.1 DS18B20的概述 6
3.3.2 DS18B20 的ROM指令集 7
3.4 DS18B20使用中注意事项 8
4. DS18B20与单片机的接口电路 9
5. 系统软件设计 9
5.1子程序的读出 9
5.2温度转换命令子程序 10
5.3输出温度值得计算与判断 10
5.4数显以及子程序的刷新 11
6.系统的安装与调试 11
6.1仿真图像 11 AT89C52单片机精密温度计的设计+电路图+程序:http://www.youerw.com/zidonghua/lunwen_38852.html