数字体温计的设计大连理工大学城市学院本科生毕业设计(论文)学院:电子与自动化学院专业:电子信息工程学生:李斌指导教师:李美花完成日期:2015年5月20号数字体温计的设计大连理工大学城市学院本科生毕业设计(论文)数字体温计的设计总计毕业论文(论文)54页插图34幅表格0个数字体温计的设计I摘要随着人们物质生活水平的提高和科学技术的快速发展,采用微型控制器单片机控制是一个好的方向,它所带来的便利是我们大家有目共睹的,在此数字体温计就是一个非常典型的例子,但人们对它的要求越来越高,要做到为工作,科研,生活,提供更便捷的服务,就需要从单片机技术开始,向着数字化控制,智能化控制方向发展。本设计主要研究了基于单片机的原理而实现的数字体温计。设计分为硬件与软件两部分,其中硬件设计部分由数据采集模块,数据处理模块,体温显示模块,按键及报警模块,电源模块组成。采用C51语言进行编程,设计软件流程,通过调用各个子程序来实现体温计的功能。该设计应用单片机技术,实现了整体电路的设计及数据采集模块,数据处理模块,显示模块的整合,该设计可以实时监测体温,减少医务人员的工作负担。数字体温计在设计上主要体现方便实用的特点,操作起来简单,在很大程度上减少因测体温带来的一些不必要的麻烦,可以提高医护人员的工作效率,从而减少因测温不准确带来一系列问题。该数字体温计与平时我们使用的体温计相比,具有测温范围广,读数准确方便,并且携带方便,不易破碎,精度高,最重要的是节能环保。关键词:单片机;数字体温计;温度传感器数字体温计的设计IIAbstractWiththedevelopmentofthepeople’slivelihoodandthesciencetechnology,tousethesinglechipmicrocomputercontrolisoneofthegoalsthatmostpeoplepursue.ItisnodoubtthattheMCUcontributesalottopeople’slifeofwhichthedigitalthermometeristhemosttypicalexample.Withtheincreasingdemandfordigitalthermometer,peopleneedtostartbythesingle-chipmicrocomputertechnologytoprovidemoreconvenientfacilitiesforpeople’swork,sciencetechnology,aswellastheirlifeandtodevelopthetechnologyinthedirectionofdigitalcontrolandtheintelligentcontrol.Thedesignofthispaperfocusonthedigitalthermometerbasedonthefundamentalsof51-Mono-chipcomputers.Withthetwopartsofhardwareandsoftware,theformerpartwasmadeupbydataacquisitionmodule,dataprocessingmodule,temperaturedisplaymodule,keyandalertmoduleaswellasthepowermodule.Ontheotherhand,thewholeprocessofdesigningthesoftwareistoimplementthethermometerfunctionbycallingeachsubroutineinlightoftheC51programminglanguage.dataacquisitionmodule,dataprocessingmoduleandthedisplaymoduleinapplicationofthesingle-chipmicrocomputertechnologywhichcanalsomonitorthebodytemperatureallthetimeandreducetheburdenofthemedicalstaff.Onthewhole,thedigitalthermometermentionedabovecombinesallthemeritsofeasyreading,widemeasurerange,accuracy,unbreakableandhighprecisioncomparedtothetraditionalthermometers.KeyWords:Mono-chipcomputers;digitalthermometer;DS18B20数字体温计的设计III目录摘要..............................................................................................................I目录...........................................................................................................III第1章绪论...................................................................................................11.1设计的目的及意义...........................................................................11.1.1设计论文的目的....................................................................11.1.2设计论文的意义....................................................................11.2课题研究任务及工作内容...............................................................21.2.1设计论文的任务....................................................................21.2.2重点研究内容......................................................................21.3国内外应用现状............................................................................3第二章数字体温计总体设计方案...............................................................42.1数字温度计的设计方案...................................................................42.2方案分析与论证:...........................................................................52.3方案的选择.......................................................................................52.4设计系统的组成..............................................................................6第三章数字体温计的硬件组成...................................................................73.1数字体温计设计电路组成..............................................................73.2主控制芯片STC89C52...................................................................73.2.1STC89C52芯片的介绍:.....................................................73.2.2STC89C52的管脚配置和内部结构......................................83.3单片机最小系统的设计.................................................................103.4体温数据采集模块.........................................................................133.4.1DS18B20的性能特点..........................................................143.5温度显示模块LCD1602................................................................153.5.1主要技术参数......................................................................163.5.2引脚功能说明......................................................................163.6报警电路的实现.............................................................................17数字体温计的设计IV3.7电源模块.........................................................................................17第四章系统软件设计.................................................................................194.1Keil-C51语言介绍.........................................................................194.2KeilC51的优势..........................................................................194.3程序流程图.....................................................................................204.4测温模块程序.................................................................................214.4.1读温度子程序......................................................................214.4.2温度转换命令子程序..............................