1、 I 毕业设计毕业设计( (论文论文) )中文摘要中文摘要 题目:题目:基于单片机的数字温度计设计 摘要摘要:本文将介绍一种基于单片机控制的数字温度计。在硬件方面介绍单片机温度 控制系统的设计, 对硬件原理图做简洁的描述。系统程序主要包括主程序、读出温 度子程序、温度转换命令子程序、计算温度子程序、显示数据刷新子程序。软硬件 分别调试完成以后,将程序下载入单片机中,电路板接上电源,电源指示灯亮,按 下开关按钮,数码管显示当前温度。由于采用了智能温度传感器 DS18B20,所以本 文所介绍的数字温度计与传统的温度计相比它的转换速率极快,进行读、写操作非 常简便。它具有数字化输出,可测量远距离的点
2、温度。系统具有微型化、微功耗、 测量精度高、功能强大等特点,加之 DS18B20 内部的差错检验,所以它的抗干扰能 力强,性能可靠,结构简单。 关键词:单片机 数字控制 温度计 DS18B20 II 毕业设计毕业设计( (论文论文) )外文摘要外文摘要 TitleTitle : : microcomputer-based control of digital thermometers from the hardware description Temperature Control system design Abstract : This article introduces a micro
3、computer-based control of digital thermometers from the hardware description Temperature Control system design, hardware schematics and concise description. System program includes the main program, subroutine read temperature, the temperature conversion command subroutine, subroutines calculate the
4、 temperature, display data refresh routines. Debugging of hardware and software were completed, the program downloaded into the MCU, the circuit board connected to the power supply, power indicator light, press the switch button, digital display the current temperature. As a result of smart temperat
5、ure sensor DS18B20,therefore, this article describes the traditional thermometer digital thermometer and the conversion rate compared to its fast, read, write with ease. It has a digital output, measurable distance of the point temperature. System has a micro, micro-power, high precision, powerful c
6、haracteristics, combined with the internal error DS18B20 test, its anti-interference ability, reliable, simple in structure. keywords: Single-chip microcomputer, digital control, thermometer, DS18B20 III 目录 1 引言 1 1.1 背 景 . 1 1.2 设计的目的和意义 1 2 设计要求与方案论证 2 2.1 设计要求 2 2.2 方案论证 2 2.3 总体设计方案 3 3 硬件设计 4 3.1 主要元件介绍 4 3.1.1 主控制器. 4 3.1.2 温度传感器 DS18B20 . 7 3.2 显示电路 . 13 3.3 DS18B20 与单片机的接口电路. 16 3.4 复位电路 . 18 4 软件设计. 19 5 调试. 20 5.1 软件调试 . 20 5.2 系统调试 . 20 5.3 数据检测 . 20 总结. 22 致谢. 23 参考