你好,欢迎来到经管之家 [登录] [注册]

设为首页 | 经管之家首页 | 收藏本站

基于DS18B20的数字温度计的设计_电子信息工程毕业论文

发布时间:2015-01-14 来源:人大经济论坛
电子信息工程论文范文电子信息工程毕业论文范文 目 录 摘 要I ABSTRACTII 目 录IV 第1章 绪论1 1.1 课题背景1 1.2 温度计的应用1 1.3 温度计设计的现状1 1.4 温度计未来的发展趋势2 第2章 相关知识3 2.1 单片机技术3 2.1.1 单片机的概述3 2.1.2 单片机的应用领域3 2.1.3 单片机AT89C20514 2.2 传感器技术4 2.2.1 传感器概述4 2.2.2 智能温度传感器发展的新趋势5 2.2.3 温度传感器DS18B206 2.3 调试环境6 第3章 硬件设计8 3.1 硬件设计方案8 3.2 各功能模块介绍9 3.2.1 主控制模块9 3.2.2 测温模块10 3.2.3 DS18B20的测温过程11 3.2.4 温度数据的计算处理方法12 3.2.5 DS18B20的精确延时问题13 第4章 软件的设计和实现14 4.1 主设计流程14 4.2 各个软件模块的设计15 4.2.1 温度数据处理函数15 4.2.2 DS18B20复位函数16 4.2.3 DS18B20写字节函数17 4.2.4 DS18B20读字节函数18 第5章 调试及性能分析20 5.1 调试20 5.1.1 硬件调试20 5.1.2 软件调试20 5.2 性能分析20 第6章 总结22 致谢23 参考文献24 摘 要 随着现代工业的发展,人们的生活水平得到了前所未有的提高。也为人类社会创造了巨大的财富。而现代工业的发展水平的关键就是人类对工业控制当中的各种参数的准确的测量和控制,也就要依靠各种各样的传感器的发展水平。其中又以温度的测量为工业生产中的关键技术。 本论文介绍了一种以单片机为主要控制器件,以DS18B20为温度传感器的新型数字温度计。主要包括硬件电路的设计和系统程序的设计。硬件电路主要包括主控制器,测温电路和显示电路等,主控制器采用单片机AT89C2051,温度传感器采用美国DALLAS半导体公司生产的DS18B20,显示电路采用4位共阳极LED数码管以动态扫描法直读显示。系统程序主要包括主程序,读出温度子程序,温度转换命令子程序,计算温度子程序,显示数据刷新子程序等。此外,还介绍了系统的调试和性能分析。 由于采用了改进型智能温度传感器DS18B20作为检测元件,与传统的温度计相比,该数字温度计减少了外部的硬件电路,具有低成本和易使用的特点。DS18B20温度计还可以在高温报警、远距离多点测温控制等方面进行应用开发,具有很好的发展前景。 关键词:单片机,主控制器,温度传感器,DS18B20,AT89C2051,显示电路,数字温度计 ABSTRACT Along with modern industry development, people's living standard obtained the unprecedented enhancement.Also has created the huge wealth for the human society. The Key for modern industry level of development is humanity's accurate survey and the control for each kind of parameter in industry control, and mustdepend upon the level of development of various sensor. Temperature survey is taken as essential technology in industrial production. The present paper introduced one kind of new digital thermometer which take single-chip as the primary control component,take DS18B20 as the temperature sensor. Mainly includes the hardware circuit design and the system program design. The hardware circuit mainly includes the master control, temperature measured circuit and the display circuit and so on, the master control uses single-chip AT89C2051, the temperature sensor uses DS18B20 which the American DALLAS semiconductor company produces, the display circuit uses numerical code tube with 4 altogether anodes LED and straight to read the display by dynamic scanning method. The system program mainly includes the master routine, the read-out temperature subroutine, the temperature transformation order subroutine, the calculated temperature subroutine; displayed data renovate subroutine and so on. In addition, also introduced the system debugging and the performance analysis. Because used the advanced version of intelligence temperature sensor DS18B20 as examination component, compared with the traditional thermometer, this digital thermometer reduced the external hardware electric circuit, and has characteristicwhich is low cost and easy to use. The DS18B20 thermometer can carry on application development in different aspect: alarm inhigh temperature, temperature measurement with long-distance range and multi- spots. and it has the very good prospects for development. Key word: single chip, master control, temperature sensor, DS18B20, AT89C2051, display circuit, digital thermometer
经管之家“学道会”小程序
  • 扫码加入“考研学习笔记群”
推荐阅读
经济学相关文章
标签云
经管之家精彩文章推荐