湖北某某大学毕业论文(设计)基于51单片机的数字温度计设计学生姓名:草泥马学号:5201314系别:不知道专业:不知道的什么系指导教师:是谁呢评阅教师:论文答辩日期答辩委员会主席版权归潘XX(030840635)所有。别重复上传啊混蛋~下载后请删除和修改首页I摘要随着科技的不断发展,电子设备的应用已经取得了非凡的成就。即使是高度集成化的今天,单片机技术依旧在我们的日常生活中占据着重要的地位。温度是日常生活、工业、医学、环境保护、化工、石油等领域最常用到的一个物理量。测量温度的基本方法是使用温度计直接读取温度。最常见到得测量温度的工具是各种各样的温度计。它们常常以刻度的形式表示温度的高低,人们必须通过读取刻度值的多少来测量温度。利用单片机和温度传感器构成的电子式智能温度计就可以直接测量温度,得到温度的数字值,既简单方便,有直观准确。本文讲叙了一种基于51系列单片机的数字温度计的设计过程与仿真结果。通过Proteus画图以及Keil编程,成功的仿真出了能够实时测量温度并显示温度的数字温度计,另外还能够通过外接的键盘设置一个基准值,若温度高于基准值则会报警并且发出控制动作。关键词:单片机,温度计,仿真,AT89C52,DS18B20IIAbstractWiththecontinuousdevelopmentofscienceandtechnology,theapplicationofelectronicequipmenthasmaderemarkableachievements.Eventhehighlyintegratedsingle-chiptechnologytoday,stillinourdailylifeplaysanimportantrolein.Temperatureisthedailylife,industry,medicine,environmentalprotection,chemicalindustry,petroleumandotherareasofthemostcommonlyusedofaphysicalquantity.Temperaturemeasurementisthebasicmethodusedtodirectlyreadtemperaturethermometer.Themostcommontomeasuringthetemperatureofthetoolisvariousthermometer.Theyoftengraduatedformhighandlowtemperature,peoplemustreadthroughthescalevaluenumbertomeasuretemperature.Usingsinglechipcomputerandatemperaturesensor.Theelectronictypeintelligentthermometercanmeasuretemperature,thetemperatureofthedigitalvalues,aresimpleandconvenient,isintuitiveandaccurate.ThisarticletellsofamicrocontrollerbasedontheSeries51digitalthermometer'sdesignprocessandsimulationresults.ThroughtheProteusdrawingandkeilprogramming,asuccessfulsimulationofareal-timetemperaturemeasurementanddisplaythetemperatureofthedigitalthermometer,alsocanpassthroughanexternalkeyboardtosetabaselinevalue,ifthetemperatureishigherthanthereferencevaluecanalarmandsendoutthefeedbackaction.Keywords:Single-chipMicrocomputer,Thermometer,simulation,AT89C52,DS18B20目录摘要.........................................................................................................IAbstract......................................................................................................II1绪言1.1课题背景.............................................................................................................11.2课题研究的目的和意义.....................................................................................11.3国内外研究现状.................................................................................................22系统设计方案的研究2.1系统的控制特点与性能要求.............................................................................42.2系统的实现原理.................................................................................................42.3系统的实现方案分析.........................................................................................52.4方案的分析比较.................................................................................................63系统的硬件设计3.1元件选取.............................................................................................................83.2主电路搭建.......................................................................................................133.3显示电路...........................................................................................................143.4外围电路建立...................................................................................................154系统的软件设计4.1软件Keil介绍..................................................................................................174.2程序介绍...........................................................................................................184.2.1传感器程序.................................................................................................184.2.2显示器程序.................................................................................................194.2.3键盘程序.....................................................................................................204.2.4主程序.........................................................................................................205系统仿真及结果分析5.1仿真软件Proteus介绍.....................................................................................225.1.1什么是Proteus仿真软件.........................................................................225.2仿真结果...........................................................................................................226总结与展望6.1总结...................................................................................................................276.1.1硬件方面.....................................................................................................276.1.2软件方面.....................................................................................................276.2展望...................................................................................................................286.2.1系统硬件.....................................................................................................286.2.2系统软件.....................................................................................................28致谢..............................................................................