1、毕业论文设计 第 1 页 共 48 页 基于单片机温度控制系统的设计 中文摘要 随着微机测量和控制技术的迅速发展与广泛应用,以单片机为核心的温度采集与控制 系统的研发与应用在很大程度上提高了生产生活中对温度的控制水平。本设计论述了一种 以 STC89C52 单片机为主控制单元,以 DS18B20 为温度传感器的温度控制系统。该控制系 统可以实时存储相关的温度数据并记录当前的时间。系统设计了相关的硬件电路和相关应 用程序。硬件电路主要包括 STC89C52 单片机最小系统,测温电路、实时时钟电路、LCD 液 晶显示电路以及通讯模块电路等。系统程序主要包括主程序,读出温度子程序,计算温度 子程序、
2、按键处理程序、LCD 显示程序以及数据存储程序等。 关键词关键词 STC89C52 单片机;DS18B20;显示电路 毕业论文设计 第 2 页 共 48 页 Based on single chip microcomputer temperature control system design Abstract Along with the computer measurement and control technology of the rapid development and wide application, based on singlechip temperature gathe
3、ring 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 tempera
4、ture 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 procedure