1、 学生毕业设计(论文)报告 系 别: 电子与电气工程学院 专 业: 电子信息工程 班 号: 学 生 姓 名: 学 生 学 号: 设 计 ( 论 文 )题 目 : 基于AT89C51 的数字温度计的设计 指 导 教 师: 设 计 地 点: 起 迄 日 期: 2010.5.4-2010.7.3 目录目录 摘要摘要 Abstract 第第 1章章 前言前言 1 第第 2章章 数字温度计总体设计方案数字温度计总体设计方案 . 2 2.1 数字温度计设计方案. 2 2.2 总体设计框图. 2 第第 3章章 数字温度计的硬件设计数字温度计的硬件设计 . 3 3.1 主控制器 AT89C51 3 3.1.1
2、 AT89C51 的特点及特征 . 3 3.1.2 管脚功能说明 3 3.1.3 片内振荡器 5 3.1.4 芯片擦除 5 3.2 单片机的主板电路. 6 3.3 温度采集部分的设计. 6 3.3.1 温度传感器 DS18B20 . 6 3.3.2 DS18B20 温度传感器与单片机的接口电路 . 10 3.4 显示部分设计. 10 3.4.1 74LS164 引脚功能及特征 10 3.4.2 温度显示电路 11 3.5 报警系统电路. 12 第第 4章章 数字温度计的软件设计数字温度计的软件设计 . 13 4.1 系统软件设计流程图. 13 4.2 数字温度计部分程序清单. 15 第第 5章
3、章 结束语结束语 20 答谢辞答谢辞 参考文参考文献献 摘摘 要要 随着人们生活水平的不断提高,单片机控制无疑是人们追求的目标之一,它 所给人带来的方便也是不可否定的,其中数字温度计就是一个典型的例子。 本设计所介绍的数字温度计与传统的温度计相比,具有读数方便,测温范围 广,测温准确,其输出温度采用数字显示。该设计控制器使用单片机 AT89C51, 测温传感器使用 DS18B20,用 3 位共阳极 LED 数码管以串口传送数据,实现温 度显示。本温度计属于多功能温度计,可以设置上下报警温度,当温度不在设置 范围内时,可以报警。 此外本文还介绍了数字温度计的硬件设计和软件设计, 硬件设计主要包括
4、主 控制器、单片机的主板电路、温度采集部分电路、显示电路以及报警系统电路。 软件设计包括系统软件的流程图和数字温度计的部分程序清单。 关键词:关键词:AT89C51 单片机,数字控制,测温传感器,多功能温度计 Abstract As peoples living standard rising, SCM is undoubtedly one of the objectives pursued by the people, the convenience it brings is equally negative, and one digital thermometer is a typical
5、 example. The design presented in the traditional thermometer digital thermometer and compared with a reading convenience, a wide range of temperature measurement, temperature measurement accuracy, the output of the temperature digital display. The design of the controller using microcontroller AT89
6、C51, temperature sensor uses DS18B20, with three common anode LED digital tube to serial transmission of data, to achieve temperature display. The thermometer is multi-functional thermometer, you can set the upper and lower alarm temperature range when the temperature is not set, you can alarm. Besides, the paper also describes the digital thermometer in hardware design and software design,