摘 要随着微机测量和控制技术的迅速进展与广泛应用,以单片机为核心的温度采集与控制系统的研发与应用在很大程度上提高了生产生活中对温度的控制水平。本设计论述了一种以 STC89C52 单片机为主控制单元。该控制系统可以实时存储相关的温度数据。系统设计了相关的硬件电路和相关应用程序。硬件电路主要包括 STC89C51 单片机最小系统,测温电路、实时时钟电路、LED 显示以及通讯模块电路等。系统程序主要包括主程序,读出温度子程序,计算温度子程序、按键处理程序、LCD 显示程序以及数据存储程序等。关键词: STC89C52 单片机;DS18B20;显示电路AbstractAlong with the computer measurement and control technology of the rapid development and wide application, based on singlechip temperature gathering and control system development and application greatly improve the production of temperature in life level of control. This design STC89C52 describes a kind of mainly by MCU control unit, for temperature sensor DS18B20 temperature control system. The control system can real-time storage temperature data and record related to the current time. System design related hardware circuit and related applications. STC89C52 microcontroller hardware circuit include temperature detection circuit smallest system, and real-time clock circuit, LCD display circuit, communication module circuit, etc. System programming mainly include main program, read temperature subroutine, the calculation of temperature subroutines, key processing procedures, LCD display procedures and data storage procedures, etc. Keywords :STC89C52 microcontroller;DS18B20;display circuit第 1 章 51 单片机结构和原理单片微型计算机简称单片机,也称为微控制器(Micro Controller Unit),英文缩写为 MCU.单片机的结构及功能均是根据工业控制要求而设计的,它把微型计算机的宫格功能部件(中央处理器 CPU、随机存取存储器 RAM、只读存储器ROM、输入输出 I/O 接口、定时器/计数器以及串行通信接口等)集成在一块芯片上,构成一个完整的微型计算机...