毕设论文—基于单片机数字温度计设计.doc
文本预览下载声明
本科生毕业设计(论文)
题 目: 基于单片机的数字温度计的设计
学生姓名:
系 别: 机械与电气工程系
专业年级:
指导教师:
2013年 6 月 20 日摘要
本文主要介绍了一个基于AT89C51单片机的测温系统,详细描述了利用数字温度传感器DS18B20开发测温系统的过程,重点对传感器在单片机下的硬件连接,软件编程以及各模块系统流程进行了详尽分析,对各部分的电路进行了介绍,该系统可以方便的实现温度采集和显示,并可以根据需要,任意设定上下限报警温度,它适合我们日常生活和工农业生产中的温度测量,也可以当做温度处理模块嵌入其他系统中,作为其他主系统的辅助扩展。DS18B20和AT89C51结合实现最简温度检测系统。本温度计属于多功能温度计,可以设置上下限报警温度,当温度不在设置范围内时,可以报警。
关键词:单片机;数字控制;温度计; DS18B20;AT89C51
ABSTRACT
This paper introduces a temperature measurement system based on AT89C51 microcontroller, a detailed description of the process of using digital temperature sensor DS18B20 temperature measurement system development, focusing on the sensor under the SCM hardware connection, software programming and system flow of each module were analyzed in detail on the part of the circuit, the system can realize temperature acquisition convenient and display, and can according to need, set the alarm temperature, it is suitable for our daily life and industrial and agricultural production in the temperature measurement, it can also be used as a temperature processing module embedded in other systems, as other auxiliary system. DS18B20 and AT89C51 combine to achieve the most simple temperature detection system. The multi-purpose thermometer, you can set the alarm temperature, when the temperature is not in the set range,it can alarm.
Keywords: single chip microcomputer; digital control; thermometer; DS18B20; AT89C51
目录
前 言 6
第一章 硬件设计 7
1.1 AT89C51芯片功能简介 7
1.1.1 AT89C51芯片简介 7
1.1.2 引脚功能 7
1.2 数字温度传感器模块 8
1.2.1 DS18B20性能 8
1.2.2 DS18B20引脚说明 9
1.2.3 DS18B20测温原理 9
1.2.4 DS18B20的工作时序 10
1.3测温电路设计 11
1.4 按键模块设计 12
1.5 报警电路设计 12
1.6 显示电路设计 13
1.7 串口电路设计 13
第二章 系统软件设计 14
2.1 各模块的程序设计 14
2.1.1主程序流程图 14
2.1.2 读出温度子程序 14
2.1.3 温度转换命令子程序 15
2.1.4 计算温度子程序 16
2.1.5 显示数据刷新子程序 17
2.1.6 报警子程序 17
2.1.7 按键扫描处理子程序 18
2.2 K
显示全部