1、 毕业论文 自动恒温控制系统的设计 学 生: 指 导 教 师: 专 业: 所 在 单 位: 答 辩 日 期: 2013 年 6 月 目录 目 录 摘 要 . I ABSTRACT II 第 1 章 绪论 1 1.1 引言 . 1 1.2 论文工作的背景、内容及意义 . 1 1.2.1 研究背景 1 1.2.2 论文主要内容 2 1.2.3 研究意义 2 第 2 章 系统总体方案设计 3 2.1 系统总体设计方案 3 2.2 系统部分功能模块设计 3 2.2.1 温度采集电路选择 3 2.2.2 显示电路 6 2.2.3 按键输入电路 6 2.3 开发环境及编程语言的选择 7 2.3.1 硬件开
2、发环境的选择 7 2.3.2 软件开发环境的选择 8 2.3.3 编程语言的选择 9 第 3 章 硬件电路设计 11 3.1 单片机的选型 11 3.1.1 STC89C52 单片机简介 11 3.1.2 STC89C52 单片机时序 11 3.1.3 STC89C52 单片机引脚介绍 11 3.2 单片机最小系统电路 13 3.3 系统电源电路的设计 14 3.4 温度传感器电路 15 3.4.1 温度采集电路 15 3.4.2 A/D 转换电路 18 3.5 按键输入电路 20 3.6 时钟电路 21 3.7 LCD 显示电路 21 3.8 报警电路 23 3.9 串口通信电路 23 3.
3、9.1 MAX232 资料简介 . 24 3.9.2 RS232 接口介绍 . 24 3.10 存储器接口电路 26 第 4 章 系统软件设计 27 4.1 读取温度子程序 27 4.3 按键处理子程序 28 4.4 计算温度子程序 30 4.5 报警子程序 30 吉林建筑大学电子信息工程专业毕业论文 总结 34 致谢 35 参考文献 36 附录 1 . 37 附录 2 . 38 摘要 I 摘 要 随着微机测量和控制技术的迅速发展与广泛应用,以单片机为核心的温度采 集与控制系统的研发与应用在很大程度上提高了生产生活中对温度的控制水平。 本设计论述了一种以 STC89C52 单片机为主控制单元,
4、以 PT100 为温度传感 器的温度采集系统,并通过 ADC0809 进行模数转换传给单片机。该采集系统可以 实时存储相关的温度数据并记录当前的时间。系统设计了相关的硬件电路和相关 应用程序。硬件电路主要包括 STC89C52 单片机最小系统,测温电路、实时时钟 电路、LCD 液晶显示电路以及通讯模块电路等。系统程序主要包括主程序,读出 温度子程序,计算温度子程序、按键处理程序、LCD 显示程序以及数据存储程序 等。 关键词 STC89C52 单片机;PT100;LCD 显示电路;ADC0809 II ABSTRACT Along with the computer measurement a
5、nd 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, f
6、or temperature sensor PT100 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 calculat