基于单片机的数字温度计系统设计摘要:传统的温度计性能单一、寿命短并且精度不高,用起来不可靠。而数字温度计的出现解决了这些问题。它不仅拓宽了温度计的应用范围,而且具有具有实时性、准确性、高效性的优点。这篇论文仔细的探讨了一种基于51单片机,热敏电阻Pt100和12位串行模数转换器ADS7816的温度测量方法。包括总体设计方案、详细硬件电路设计和软件设计实现。最终做出的温度计的的测量和控制的范围是0到100摄氏度,而且它的精度可以达到0.1度。在温度控制模块中,分别利用PID算法和模糊控制的算法对温度进行控制。关键词:数字温度计;单片机;模数转换器;PID控制DesignofDigitalThermometerSystemBasedonSingleChipMicrocomputerAbstract:Thetraditionalthermometerissingleinperformance,shortinservicelifeandnothighinaccuracy,soitisnotreliabletouse.Theemergenceofdigitalthermometershassolvedtheseproblems.Itnotonlybroadenstheapplicationrangeofthermometer,butalsohastheadvantagesofreal-time,accuracyandhighefficiency.Inthispaper,atemperaturemeasurementmethodbasedon51MCU,thermistorPt100and12-bitserialanalog-to-digitalconverterADS7816iscarefullydiscussed.Includingtheoveralldesignscheme,detailedhardwarecircuitdesignandsoftwaredesignandimplementation.Themeasurementandcontrolrangeofthethermometerfinallymadeis0to100degreesCelsius,anditsaccuracycanreach0.1degrees.Inthetemperaturecontrolmodule,PIDalgorithmandfuzzycontrolalgorithmareusedtocontrolthetemperaturerespectively.Keywords:Digitalthermometer;Singlechipmicrocomputer;Analog-to-digitalconverter;PIDcontrol目录第一章绪论.....................................................................................................................................................21.1研究背景..........................................................................................................................................21.2研究目的与意义..............................................................................................................................21.3研究现状..........................................................................................................................................31.4技术特点..........................................................................................................................................31.5课题研究的内容..............................................................................................................................3第二章系统总体简介.....................................................................................................................................32.1单片机的概述..................................................................................................................................32.2主控芯片AT89C51简介...................................................................................................................42.3数字的显示......................................................................................................................................52.4系统设计步骤..................................................................................................................................62.5总体设计方案..................................................................................................................................6第三章系统的硬件电路设计...........................................................................................................