1、 1 摘要 2 Abstract 3 第一章 引言 4 第二章 设计要求和工作原理 5 2.1 设计要求 5 第三章 方案设计 7 3.1 温度测量部分方案. 7 3.2 主控制部分方案. 7 第四章 各单元的设计 14 4.1 键盘单元 14 4.2 温度控制及超温和超温警报单元 16 4.3 温度测试单元 16 4.4 温度控制器件电路. 16 4.5 七段数码管显示单元 17 4.7 电源输入部分 20 第五章 程序设计 22 5.1 程序结构分析. 22 5.2 主程序 22 5.3 程序代码(详见附录 程序清单). 23 结 论 24 参 考 文 献 25 致 谢 26 附
2、录 1:使用说明. 27 附录 2:程序清单 . 28 2 摘要 本设计以 AT89S51 单片机为核心的温度控制系统的工作原理和设计方法。 本文来自毕设资料网()温度信号由温度芯片 DS18B20 采集,并以数字信号的方式传送给单片机。文中介 绍了该控制系统的硬件部分,包括:温度检测电路、温度控制电路、PC 机与单 片机串口通讯电路和一些接口电路 。单片机通过对信号进行相应处理,从而实 现温度控制的目的。文中还着重介绍了软件设计部分,在这里采用模块化结构, 主要模块有:数码管显示程序、键盘扫描及按键处理程序、温度信号处理程序、 继电器控制程序、超温报警程序。 关键词:AT89S51
3、 单片机 DS18B20 温度芯片 温度控制 串口通讯 3 Abstract This design take at89S51 monolithic integrated circuit as core temperature control system's principle of work and design method. The temperature signal by the temperature chip DS18B20 gathering, and transmits by digital signal's way for the monolithic i
4、ntegrated circuit. In the article introduced this control system's hardware part, including: Temperature examination electric circuit, temperature-control circuit, PC machine and monolithic integrated circuit serial port communication channel and some interface circuit. The monolithic integrated
5、 circuit through carries on corresponding processing to the signal, thus realizes the temperature control goal. In the article also emphatically introduced the software design part, uses the modular structure in here, the main module includes: Nixietube display sequence, keyboard scanning and presse
6、d key disposal procedure, temperature signal processing procedure, black-white control procedure, excess temperature warning procedure. KeyKeywordswords:AT89S51 Monolithic Integrated Circuit ;DS18B20 Temperature Chip;Temperature Control;Serial Port Communication 4 第一章 引言 温度控制系统广泛应用于社会生活的各个领域 ,如家电、汽车、材料、电力 电子等 ,常用的控制电路根据应用场合和所要求的性能指标有所不同 , 在工业 企业中,如何提高温度控制对象的运行性能一直以来都是控制人员和现场技术人 员努力解决的问题。这类控制对象惯性大,滞后现象严重,存在很多不确定的因素, 难以建立精确的数学模型,从而导致控制系统性能不佳,甚至出现控制不稳定、失 控现象。传统的继电器调温电路简单实用 ,但由于继电器动作频繁 ,可能会因触 点不良而影响正常工作。控制领域还大量采用传统的 PID 控制方式,但 P