(毕业设计)数字温度计论文

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

河南科技大学本科毕业设计(论文)I数字温度计的设计摘要温度是一种最基本的环境参数,人们生活与环境温度息息相关,在工业生产过程中需要实时测量温度,在工业生产中也离不开温度的测量,因此研究温度的测量方法和控制具有重要的意义。本论文介绍了一种以单片机为主要控制器件,以DS18B20为温度传感器的新型数字温度计。主要包括硬件电路的设计和系统程序的设计。硬件电路主要包括主控制器,测温控制电路和显示电路等,主控制器采用单片机AT89C52,温度传感器采用美国DALLAS半导体公司生产的DS18B20,显示电路采用8位共阴极LED数码管,ULN2803A为驱动的动态扫描直读显示。测温控制电路由温度传感器和预置温度值比较报警电路组成,当实际测量温度值大于预置温度值时,发出报警信号,即发光二极管亮。系统程序主要包括主程序,测温子程序和显示子程序等。DS18B20新型单总线数字温度传感器是DALLAS公司生产的单线数字温度传感器,集温度测量和A/D转换于一体,直接输出数字量,具有接口简单、精度高、抗干扰能力强、工作稳定可靠等特点。由于采用了改进型智能温度传感器DS18B20作为检测元件,与传统的温度计相比,本数字温度计减少了外部的硬件电路,具有低成本和易使用的特点。DS18B20温度计还可以在高温报警、远距离多点测温控制等方面进行应用开发,具有很好的发展前景。此外,还介绍了系统的调试和性能分析。关键词:显示电路,单片机,AT89C52,温度传感器,DS18B20,单总线河南科技大学本科毕业设计(论文)IITheDesignofDS18B20DigitThermometerABSTRACTTemperatureisabasicparametersoftheenvironment,people'slivesandtheenvironmentarecloselyrelatedtotemperature.inthecourseofindustrialproductionimmediateneedfortemperaturemeasurementinindustrialproductionhastodowithtemperaturemeasurement,Thestudyofthetemperaturemeasurementandcontrolisofgreatsignificance.ThepaperintroducedonekindnewdigitalthermometerthattaketheMicroControllerUnitastheprimarycontrolcomponentandtakeDS18B20asthetemperaturesensor.Mainlyincludedthedesignofthehardwareelectriccircuitandthedesignofthesystemprogram.Thehardwareelectriccircuitmainlyincludedthemastercontroller,thetemperaturemeasuredelectriccircuitandthedisplaycircuitandsoon,themastercontrollerusedMicroControllerUnitAT89C52,thetemperaturesensorusedDS18B20whichtheAmericanDALLASsemiconductorcompanyproduces,thedisplaycircuitused8altogetheranodesLEDnumericalcodetubebythedynamicscanningmethodstraighttoreadthedemonstration.ULN2803A-drivendynamicscanshowedstraighttime.Temperaturecontrolcircuitfromtemperaturesensorsandpresettemperaturevaluecomparedalarmcircuitcomponents,Whenmeasuredtemperaturegreaterthanpresettemperaturevalue,issuedwarningsignalthatthebrightlightemittingdiodes.Thesystemprogrammainlyincludedthemasterroutine,thetemperaturesubroutine,thedatarenovatessubroutineandsoon.DS18B20isadigitaltemperaturesensorofsinglebus.ItisproductedbyDALLAScooperation.DS18B20assemblestemperaturemeasureandA/Dconverter,exportsdigitalsignaldirectly,operationeasily,betterprecise,protectingdisturb,runningsteablyandsoon.河南科技大学本科毕业设计(论文)IIIBecauseusedtheadvancedversionintelligencetemperaturesensorDS18B20astheexaminepart,comparedwiththetraditionalthermometer,thisdigitalthermometerreducedtheexteriorhardwareelectriccircuit,hascharacteristicthatthelowcostandwaseasytouse.TheDS18B20thermometeralsomayusedtothehightemperaturewarning,thelong-distancerangemulti-spotstemperaturemeasuredaspectandsoontemperaturecontrolcarriesontheapplicationdevelopment,hastheverygoodprospectsfordevelopment.Inaddition,introducedthesystemdebuggingandtheperformanceanalysis.KEYWORDS:DisplayCircuit,MicrocontrollerUnit,AT89C52,TemperatureSensor,DS18B20,1-Wire河南科技大学本科毕业设计(论文)IV目录前言................................................................................................1第1章设计任务及方案分析...........................................................2§1.1设计任务及要求................................................................2§1.2设计总体方案及方案论证.................................................2§1.3温度测量的方案与分析....................................................2§1.3.1芯片选择...................................................................2§1.3.2实现方法简介...........................................................3§1.3.3测温流程图...............................................................3第2章芯片功能简介.......................................................................4§2.1AT89C52的功能简介.........................................................4§2.1.1AT89C52芯片简介....................................................4§2.1.2引脚功能说明...........................................................4§2.2DS18B20的功能简介.........................................................7§2.2.1芯片简介...................................................................7§2.2.2DS18B20外形和内部结构........................................8§2.2.3DS18B20的工作时序..............................................11§2.2.4DS18B20与单片机的典型接口设计.......................12§2.2.5DS18B20的各个ROM命令...................................13第3章系统硬件电路的设计.........................................................15§3.1主控制电路和测温控制电路原理图...............................15§3.2驱动电路模块原理图......................................................16§3.3显示模块原理图..............................................................17第4章软件编程调试及性能分析.................................................18§4.1主程序流程图..................................................................18§4.2主程序..............................................................................19§4.3温度子程序......................................................................21§4.3.1DS18B20复位子程序..............................................22河南科技大学本科毕业设计(论文)V§4.3.2读DS18B20子程序................................................23§4.3.3写DS18B20子程序................................................25§4.3.4比较报警子程序.....................................................26§4.3.5按键子程序.......................

1 / 55
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功