如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
第PAGEI页共II页基于单片机的数字温度计设计摘要随着时代的进步和发展,单片机技术已经普及到我们生活、工作、科研、各个领域,已经成为一种比较成熟的技术,本文主要介绍了一个基于单片机的测温系统,详细描述了利用数字温度传感器DS18B20开发测温系统的过程,重点对传感器在单片机下的硬件连接,软件编程以及各模块系统流程进行了详尽分析,对各部分的电路也一一进行了介绍,该系统可以方便的实现实现温度采集和显示,并可根据需要任意设定上下限报警温度,它使用起来相当方便,具有精度高、量程宽、灵敏度高、体积小、功耗低等优点,适合于我们日常生活和工、农业生产中的温度测量,也可以当作温度处理模块嵌入其它系统中,作为其他主系统的辅助扩展。DS18B20与AT89S52结合实现最简温度检测系统,该系统结构简单,抗干扰能力强,适合于恶劣环境下进行现场温度测量,有广泛的应用前景。关键词:单片机;温度检测;AT89S52;DS18B20;AbstractAlongwiththeprogressanddevelopmentoftheages,singleslicethemachinetechniquehasalreadymakewidelyavailablethelifeistous,work,research,eachrealm,havealreadybecomethetechniqueofakindofcomparisonmaturity.ThispapermainlydescribesatemperaturemeasurementsystembasedonDS18B20,detaileddescribingthedevelopmentprocessusedigitaltemperaturesensor,thepaperintroducesthehardwareconnectivityandsoftwareprogrammingoftheDS18B20basedonthesingle-chip,andgivethesoftwareflowchartofeachmodule,aswellasintroducedeachcircuitofthesystem.Systemcaneasilytocollectanddisplaythetemperature,itcanalsoarbitrarysetalarmtemperatureaccordingtotheactualneed,Itisusedconvenience,ithashighprecision,widerange,highsensitivity,smallsize,andlowpowerdissipation,Thedeviceisespeciallyappliedtomeasuretemperatureinpeople'sdailylives,industrialandagriculturalproduction,andalsoeasilyasatemperatureprocessingmoduleembedintheothersystem,turnintoasacomplementaryexpansion.Keywords:Singlechip;temperaturemeasurement;AT89S52;DS18B20目录引言………………………………………………………………………………………11系统方案比较1.1方案一……………………………………………………………………………………11.2方案二……………………………………………………………………………………22主要器件介绍2.1单片机…………………………………………………………………………………32.1.1AT89S52系列单片机简介……………………………………………………………32.1.2主要性能……………………………………………………………………………32.1.3引脚说明……………………………………………………………………………42.2温度传感器………………………………………………………………………………72.2.1DS18B20简介…………………………………………………………………………72.2.2DS18B20内部结构与原理……………………………………………………………72.2.3DS18B20使用的注意事项…………………………………………………………122.3显示和报警…………………………………………………………………………122.3.1数码管的结构和原理………………………………………………………………122.3.2蜂鸣器的结构和原理…………………………………………