摘 要 本文论述的是单片机温度控制系统的设计及功能实现。此系统能存储通过传感器输入的温度信号:还可以响应指令,控制输出,即加热或停止加热,这项功能的完成一是对中断程序的响应,二是由不断输入的温度与设定温度比较控制的。 在设计过程中,重点学习了包括89C51,8279,ADC0809,74LS373等一些芯片的基本原理及应用,了解了用protel 99绘制电路图,及关于传感器的一些知识。应用了单片机基础,传感器选型与使用等方面的知识,对自动控制系统的概念有了更进一步的理解。 整个设计过程主要由硬件设计,软件设计构成,可以看出此单片机温度检测系统检测速度快,操作简单,应该可以应用于多个温度值连续存储及控制系统。 关键词:单片机;温度;传感器;加热 ABSTRACT This paper mainly indules the design and the function realization of the temperature_control system of singleship . The system can not only memory the tempature signals which are transmitted by sensors,but also would respond to the dicates to control the output.In order to complete this funtion.on one hand,it depends on the respondence to those signals that can be also called disrupt procedures.on the other hand,it can be got in the comparation between the reference temperatures and virtual ones too. During the process of designing.the basis theoryies and applications of some CMOSchips can be studies.such as 89C51,28C256,ADC0809,the skill of drawing electorircuit by protel 99 and maniprlation of weifu emlrator.Meanwhile I got into deeper understanding of the concept of automatic control system and delicated myself to the knowledge of automatic control system and delicated myself to the knowledge of CMOSclips and seasors. The whole designing course is composed of the hardware and softwared designs. It is proved that this kind of CMOSchip temperatre detecting system that be realized easily is prority in detecting velocity.So it could be applied widely in many control systems which need memory and control temperature signals constantly. Keywords:singlechip ,Tempatature,Sensor,Heat. 目 录 第1章 绪论………………………………………………1 1.1概述…………………………………………………………1 1.2 具体指标与要求………………………………………………1 1.3 设计过程的划分………………………………………………2 1.3.1 硬件设计…………………………………………………2 1.3.2 软件设计…………………………………………………2 1.4 本章小结………………………………………………………2 第2章 基础理论………………………………………………3 2.1 单片机概述…………………………………………………………3 2.1.1 单片机的分代发展……………………………………………3 2.1.2 单片机的内部结构……………………………………………4 2.1.3 单片机的应用特点……………………………………………5 2.1.4 单片机的应用系统……………………………………………6 2.2 MCS—51单片机简介………………………………………………6 2.2.1 内部结构………………………………………………………6 2.2.2 MCS—51引脚及功能…………………………………………9 2.3 本章小结……………………………………………………………11 第3章 硬件设计………………………………………………12 3.1 总体设计……………………………………………………………12 3.1.1 硬件系统的可*性设计………………………………………12 3.1.2 设计内容………………………………………………………12 3.2 中央控制单元………………………………………………………13 3.2.1 AT89C51特点介绍……………………………………………14 3.2.2 扩展三总线的产生……………………………………………15 3.2.3 采用74LS373扩展电路………………………………………17 3.2.4 74LS138 译码器……………………………………………17 3.3 数据输入部分……………………………………………………18 3.3.1传感器概述…………………………………………………18 3.3.2 热敏电阻式温度传感器……………………………………20 3.3.3 信号的放大…………………………………………………22 3.4 数据采集部分……………………………………………………23 3.4.1 A/D转换器概述……………………………………………23 3.4.2 逐次逼近式A/D转换原理…………………………………23 3.4.3 AD0809与89C51的接口设计………………………………24 3.5 数据存储部分……………………………………………………27 3.5.1 半导体存储器简述…………………………………………27 3.5.2 扩展数据存储器……………………………………………29 3.6 本章小结…………………………………………………………30 第4章 软件设计……………………………………………31 4.1 实用设计简介……………………………………………………31 4.1.1 主程序和子程序、参数传递………………………………31 4.1.2 软件程序的可*性设计……………………………………31 4.2 单片机温度控制系统程序设计说明……………………………32 4.3 等待中断…………………………………………………………33 4.3.1 中断的概念…………………………………………………33 4.3.2 中断控制 ……………………………………………………33 4.3.3 中断处理过程………………………………………………34 4.4 数据采集部分………………………………………………………36 4.5 数据比较部分………………………………………………………37 4.6 延迟子程序设计……………………………………………………37 4.7 本章小结……………………………………………………………38 结论……………………………………………………………39 参考文献………………………………………………………40 致谢……………………………………………………………41 附录……………………………………………………………42 &nb [1] [2] 下一页 |