1、 本科毕业设计本科毕业设计( (论文论文) ) 题目题目: 基于单片机的测温系统设计基于单片机的测温系统设计 教学单位:教学单位: 专专 业:业: 学学 号:号: 姓姓 名:名: 指导教师:指导教师: 2012013 3 年年 4 4 月月 I 摘要摘要 温度与人们的生活环境息息相关,所以温度测量常被关注,研究温度测量方法 和装置显得尤为重要。采用单片机对温度进行控制,不仅电路简单,控制方便,更 重要的是采集数据更为准确,很好的满足了生活中的许多要求。本设计以AT89S52 单片机为核心部件,外加温度采集电路、显示电路和越限报警等电路。采用单总线 型数字式的温度传感器DS18B20,使系统具有
2、测温误差小、分辨率高、抗干扰能力强 等特点。本设计既可以对当前温度进行检测又可以对温度进行数码显示,采用四位 数码管显示方式具有高的显示精度,若超越极限温度则触发蜂鸣器报警。利用功能 强大的Keil软件和DXP进行程序的编写和原理图绘制。 关键词关键词:测温 AT89S52 DS18B20 报警 II Abstract Temperature is closely related to peoples living environment, so the temperature measurement is often the attented, the temperature measure
3、ment method and the device is particularly important. temperature controlling by single chip microcomputer , not only the circuit is simple , but also can you control conveniently, collect data more accurately so that to meet the many demands in life. The core components of this design is AT89S52 ,
4、plus with the temperature acquisition circuit, display circuit and out-of-limit alarm circuit etc. With one main line digital temperature sensor DS18B20, the system has a temperature measurement error is small, high resolution, strong anti-interference ability, etc. This design can either to test th
5、e current temperature and the temperature digital display, using four digital tube display method has high precision, if beyond the limit temperature is triggered buzzer alarm. Using the powerful Keil software and DXP the preparation of the program and schematic drawing. Keywords: temperature;measur
6、ing;AT89S52;DS18B20;alarm III 目录目录 第 1 章 绪论 1 1.1 选题背景.1 1.2 研究意义.1 1.3 国内外相关研究情况 .2 1.4 本文研究的主要内容 .2 1.5 重点、难点及研究的方法 2 1.5.1 重点 2 1.5.2 难点 2 1.5.3 研究方法 .3 第 2 章 总体设计方案 3 2.1 设计方案.3 2.1.1 方案一.3 2.1.2 方案二.3 2.2 系统的组成与工作原理4 第 3 章 系统硬件设计 4 3.1 系统硬件电路的构成及测量原理4 3.1.1 系统硬件电路构成 .4 3.1.2 系统工作原理 5 3.2 单片机 AT89S526 3.2.1 单片机功能特性概述6 3.2.2 A T89S52 引脚功能介绍 6 3.3 单片机的最小系统.8 3.3.1 晶振电路 .9 3.3.2 复位电路 . 10 3.4 测温电路设计 1