您好,欢迎访问三七文档
摘要随着现代信息技术的飞速发展,在生产中温度的准确测量是一个比较困难的事情从最初的酒精、水银温度计到现在的数字化、集成化的温度检测系统。可见传感器的发展是飞快的。它快速的发展必将带来新一轮的工业化的革命和社会发展的飞跃。本文从硬软件两个方面介绍了基于AT89S52单片机温度自动检测系统的设计。系统硬件由控制电路、温度采集电路、键盘和LED显示电路组成。软件设计从设计思路、软件系统框图出发,先介绍整体的思路后,再逐一分析各模块程序算法的实现,最终编写出满足任务需求的程序。最终通过DS18B20采集温度并显示出来,由此对周围环境的温度进行有效检测与报警。基本上满足了温度检测与报警的要求,具有超调量小,采样值与设定值基本一致,操作简单等优点。本设计创新点在于采用数字式温度传感器DS18B20作为感温元件,占用单片机引脚少,因而可以利用空余引脚通过软件模拟和温度显示。关键词:温度检测;AT89S52;LED显示器;DS18B20温度传感器ABSTRACTWiththerapiddevelopmentofmoderninformationtechnology,accuratemeasurementoftemperatureintheproductionisadifficultthingfromtheinitialalcohol,mercurythermometertothepresentdigital,integratedtemperaturedetectionsystem.Visiblesensordevelopmentisfast.Itsrapiddevelopmentwillbringaboutanewroundofindustrialrevolutionandaleapofsocialdevelopment.ThispaperintroducesthedesignofautomaticdetectionsystemoftemperaturebasedonAT89S52fromtwoaspectsofhardwareandsoftware.Thesystemhardwareconsistsofcontrolcircuit,temperatureacquisitioncircuit,keyboardandLEDdisplaycircuit.Softwaredesignfromthedesignideas,softwaresystemblockdiagram,firstintroducedtheoverallidea,andthenonebyonetoanalyzetheimplementationofeachmoduleprogramalgorithm,andultimatelytowriteprogramstomeettheneedsofthetask.FinallythroughtheDS18B20collectiontemperatureanddisplay,thesurroundingenvironmentofthetemperatureforeffectivedetectionandalarm.Basicallymeettherequirementsoftemperaturedetectionandalarm,withasmallovershoot,thesamplingvalueandthesetvalueisbasicallythesame,easytooperateandsoon.ThedesigninnovationistheuseofdigitaltemperaturesensorDS18B20asatemperaturesensor,theuseofsingle-chippin,andthuscanbeusedinthesparepinthroughthesoftwaresimulationandtemperaturedisplay.Keyword:Temperaturedetection;LEDAT89S52display;DS18B20temperaturesensor目录引言...............................................................11温度采集系统的设计说明......................................................................................21.1温度控制系统完成的功能..........................................................................................................21.2温度采集系统方案......................................................................................................................21.3设计思路......................................................................................................................................22硬件电路设计..........................................................................................................32.1系统总体设计..............................................................................................................................32.2各部分硬件电路设计..................................................................................................................32.2.1、时钟电路设计........................................................................................................................32.2.2系统复位电路...........................................................................................................................42.2.3报警与控制电路设计...............................................................................................................42.2.4LED显示电路设计...................................................................................................................52.2.5温度检测电路设计...................................................................................................................62.2.6按键电路设计...........................................................................................................................83软件设计..................................................................................................................93.1主程序方案..................................................................................................................................93.2各个模块子程序设计.................................................................................................................113.2.1温度采集..................................................................................................................................113.2.2数码管显示模块......................................................................................................................123.2.3温度处理程序..........................................................................................................................124系统调试................................................................................................................134.1测试环境及工具.........................................................................................................................134.2测试方法.....................................................................................................................................134.3测试结果分析.............................................................................................................................135结论........................................................................................................................14谢辞..................................................................................................
本文标题:课程设计论文
链接地址:https://www.777doc.com/doc-3133025 .html