没有合适的资源?快使用搜索试试~ 我知道了~
本科毕业设计--基于单片机数字温度计设计.doc
3 下载量 134 浏览量
2023-07-08
19:20:43
上传
评论 2
收藏 783KB DOC 举报
温馨提示
试读
37页
本科毕业设计--基于单片机数字温度计设计.doc
资源推荐
资源详情
资源评论
中国石油大学胜利学院本科毕业设计(论文)
摘要
本文主要介绍了一个基于 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 Keil C51 编程软件 ....................................................................................................................................18
2.2.1 Keil C51 简介 ....................................................................................................................................18
2.2.2 Keil C51 软件应用 ............................................................................................................................18
第三章 系统的仿真与总结...................................................................................................20
3.1 Protues 仿真...............................................................................................................................................20
3.1.1 Protues 简介.......................................................................................................................................20
3.1.2 proteus 的工作过程 ..........................................................................................................................20
3.1.3 Protues 测温仿真...............................................................................................................................21
3.1.4 性能分析...........................................................................................................................................23
3.2 总结...........................................................................................................................................................23
3.2.1 硬件方面............................................................................................................................................23
3.2.2 软件方面............................................................................................................................................23
致谢.........................................................................................................................................26
中国石油大学胜利学院本科毕业设计(论文)
附录.........................................................................................................................................27
附录 A 程序清单..........................................................................................................................................27
附录 B 系统总设计图 ....................................................................................................................................37
剩余36页未读,继续阅读
资源评论
matlab大师
- 粉丝: 2375
- 资源: 9万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功