基于AT89C51单片机的数字温度计设计(1).doc
基于AT89C51单片机的数字温度计设计
摘要
在日常生活及工业生产过程中,经常要用到温度的检测及控制,温度是生产过程和科学实验中普遍而且重要的物理参数之一。在生产过程中,为了高效地进行生产,必须对它的主要参数,如温度、压力、流量等进行有效的控制。温度控制在生产过程中占有相当大的比例。温度测量是温度控制的基础,技术已经比较成熟。传统的测温元件有热电偶和二电阻。而热电偶和热电阻测出的一般都是电压,再转换成对应的温度,这些方法相对比较复杂,需要比较多的外部硬件支持。我们用一种相对比较简单的方式来测量。
本文介绍一种基于AT89C51单片机作为控制器、使用数字温度传感器DS18B20作为温度采集器的数字温度计。重点阐述了AT89C51的结构性能和引脚功能,DS18B20的性能结构、工作原理和控制方法,以及单片机AT89C51和数字温度传感器DS18B20之间的接口、数据传递。该数字温度计能够测出-20~﹢70℃之间的温度,适合日常生活、工业生产和科学研究等领域对温度测量的需要。
关键词:温度测量;DS18B20;AT89C51
DesignofDigitalThermomerBasedonSCMAT89C51
Abstract
Indailylifeandindustrialproductionprocess,oftenusedinthedetectionandcontroloftemperature,temperatureistheproductionprocessandscientificexperimentsingeneralandoneoftheimportantphysicalparameter.Intheproductionprocess,inordertoefficientlycarryouttheproduction,tobeitsmainparameters,suchastemperature,pressure,flowcontrol,etc...Temperaturecontrolintheproductionprocessofalargeproportion.Temperaturemeasurementisthebasisoftemperature-controlled,morematuretechnology.Traditionalthermocoupleandtemperaturecomponentsarethesecondresistor.Thethermocoupleandthermalresistancearegenerallymeasuredvoltage,andthenreplacedbythecorrespondingtemperature,thesemethodsarerelativelycomplex,requiringarelativelylargenumberofexternalhardwaresupport.Weusearelativelysimplewaytomeasure.
Adigitalthermometercollectionisdesigned,whichusesSCMAT89C51asacontroller,digitaltemperaturesensorDS18B20astemperaturecollector.Thestructure,pinandfunctionoftheAT89C51,theperformanceofthestructure,workingprincipleandcontrolmethodsofDS1B20,andtheinterface,datatransmissionbetweenSCMAT89C51anddigitaltemperaturesensorDS18B20isintroduced.Thisdigitalthermometercandetectthetemperaturefrom-20℃to70℃.Itissuitablefordailylife,industrialproductionandscientificresearchinareassuchasthetemperaturemeasurementneeds