基于单片机数字温度计设计设计.doc
《基于单片机数字温度计设计设计.doc》由会员分享,可在线阅读,更多相关《基于单片机数字温度计设计设计.doc(37页珍藏版)》请在启牛文库网上搜索。
1、 本科生毕业设计(论文)题 目: 基于单片机的数字温度计的设计 学生姓名: 系 别: 机械与电气工程系 专业年级: 指导教师: 2013年 6 月 20 日中国石油大学胜利学院本科毕业设计(论文)摘要本文主要介绍了一个基于AT89C51单片机的测温系统,详细描述了利用数字温度传感器DS18B20开发测温系统的过程,重点对传感器在单片机下的硬件连接,软件编程以及各模块系统流程进行了详尽分析,对各部分的电路进行了介绍,该系统可以方便的实现温度采集和显示,并可以根据需要,任意设定上下限报警温度,它适合我们日常生活和工农业生产中的温度测量,也可以当做温度处理模块嵌入其他系统中,作为其他主系统的辅助扩展
2、。DS18B20和AT89C51结合实现最简温度检测系统。本温度计属于多功能温度计,可以设置上下限报警温度,当温度不在设置范围内时,可以报警。关键词:单片机;数字控制;温度计; DS18B20;AT89C51ABSTRACTThis paper introduces a temperature measurement system based on AT89C51 microcontroller, a detailed description of the process of using digital temperature sensor DS18B20 temperature measu
3、rement 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
4、 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 d
5、etection 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第一章 硬件设计71.1 AT89C51芯片功能简介71.1.1 AT89C51芯片简介71.1.2 引脚功能71.2 数字温度传感器模块8
6、1.2.1 DS18B20性能81.2.2 DS18B20引脚说明91.2.3 DS18B20测温原理91.2.4 DS18B20的工作时序101.3测温电路设计111.4 按键模块设计121.5 报警电路设计121.6 显示电路设计131.7 串口电路设计13第二章 系统软件设计142.1 各模块的程序设计142.1.1主程序流程图142.1.2 读出温度子程序142.1.3 温度转换命令子程序152.1.4 计算温度子程序162.1.5 显示数据刷新子程序172.1.6 报警子程序172.1.7 按键扫描处理子程序182.2 Keil C51编程软件182.2.1 Keil C51简介18
7、2.2.2 Keil C51软件应用18第三章 系统的仿真与总结203.1 Protues仿真203.1.1 Protues简介203.1.2 proteus 的工作过程203.1.3 Protues测温仿真213.1.4 性能分析233.2 总结233.2.1硬件方面233.2.2软件方面23致谢26附录27附录A 程序清单27附录B 系统总设计图37前 言随着新技术的不断开发与应用,近年来单片机发展十分迅速,一个以微机应用为主的新技术革命浪潮正在蓬勃兴起,单片机的应用已经渗透到电力、冶金、化工、建材、机械、食品、石油等各个行业。传统的温度采集方法不仅费时费力,而且精度差,单片机的出现使得温
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 单片机 数字 温度计 设计