毕业设计(论文)报告
题目名称: 基于单片机的数字温度器的设计 学生姓名: 陈美娟 学 号: 1104163239 二级学院(系)/专业:能源与电气工程学院/电子信息工程 班 级: 电信1121 指导教师: 赵艳启
2014年 5 月 27 日
毕业设计(论文)报告
摘 要
伴随着时期的提高和成长,单片机技术仍然是遍及到各个领域:咱们生活、事业、科研,成为了一种对比成熟的技能。 本论文重要讲述了一个基于AT89S51单片机的测温体系,详细描述了使用数字温度传感器DS18B20建设测温系统的进程,要点对传感器在单片机下的硬件衔接,软件编程和各模块系统程序举行的详细分析,也一一介绍对各部分的电路,该系统能够容易的达成温度收集和温度显示,而且该系统能够按照我们的需要,然后再任意设定上下限报警温度,所以说它行使起来特别的方便,其拥有的精度高、体积小、功耗低量程宽、灵敏度上等优点,也很适合于我们日常生活和工、农业生产中的温度测量,也可以把该系统当作温度处理模块嵌入到其它的系统当中去,作为其他主系统的辅助扩展系统。由温度传感器DS18B20与单片机AT89S51组成一个最简温度检测系统,该系统结构简单,实现方便,抗干扰能力强,同样适应于恶劣情况下进行现场温度测量,有很广的应用远景。 关键字:单片机AT89S51、DS18B20、温度报警
I
毕业设计(论文)报告
Abstract
With the improvement and growth period, single-chip technology is still in all fields of our life, career:, scientific research, has become a mature skills.This paper describes a temperature measurement system based on AT89S51 microcontroller, a detailed description of the use of digital temperature sensor DS18B20 temperature measuring system construction process, features of the sensor hardware interface in microcontroller, a detailed analysis of the software programming and system modules program at one one, also introduces the circuit of each part, the system can easily a temperature collection and temperature display, and the system can according to our needs, and then set the alarm temperature, so it is particularly convenient exercise together, it has high precision, small volume, low power consumption, wide measuring range, sensitivity advantages,Is also verysuitable for our daily lives and industrial,agricultural production in the temperature measurement,can also takethis systemasthe temperatureprocessing moduleembedded in othersystems,as other auxiliary systemsystem.A temperature sensor DS18B20and microcontroller AT89S51consisting of asimpletemperature detection system,the systemhas the advantages of simple structure,easy implementation,strong anti-interference ability,alsomeet theon-site temperaturemeasurementin theworst case,hasa wideapplicationprospect.
Keywords: MCU,DS18B20,temperature alarm
II
毕业设计(论文)报告
目 录
1 绪论 ...................................................... 1 1.1 基于单片机温度测量系统的研究背景 ..................... 1 1.2基于单片机温度测量系统的发展现状 ..................... 1 1.3于单片机温度测量系统的研究的目的和意义 ............... 2 1.4基于单片机温度测量系统主要研究内容 ................... 2 2 温度测量系统总体设计方案 .................................. 3 2.1方案一 ............................................... 3 2.2方案二 ............................................... 4 2.3方案比较与选择 ....................................... 5 3系统器件选择 .............................................. 6 3.1单片机选择 ........................................... 6 3.2温度传感器的选择 ..................................... 8 4 硬件设计电路 ............................................. 12 4.1温度计电路设计原理图 ................................ 12 4.2单片机模块 .......................................... 13 4.3显示电路 ............................................ 14 4.4温度采集模块 ........................................ 15 4.5 温度报警电路 ........................................ 17 5 软件设计 ................................................. 18 5.1 概述 ................................................ 18 5.2主程序模块 .......................................... 18 5.3显示数据刷新子程序 .................................. 19 5.4 温度数据处理程序 .................................... 20 5.5报警模块流程 ........................................ 22 5.6 中断设定流程 ........................................ 22 结论和体会 ................................................. 24 致谢 ....................................................... 25 参考文献 ................................................... 26 附录一 ..................................................... 27
III