文档详情

基于单片机的温度控制系统资料.doc

发布:2017-09-16约1.15万字共20页下载文档
文本预览下载声明
基于单片机的温度控制系统 The Design of Temperature Control System Based on SCM 摘 要 本文提出的温度采集控制系统以单片机(AD590)为核心,由控制部分、显示部分和温度测量部分组成。该系统大部分功能通过硬件来实现,电路简单明了,系统稳定性很高。 这套温度控制系统可以方便地实现温度测量、温度显示等功能,并通过与单片机连接的键盘可以实时设定测控温度的下限,还可以连接相应的外围电路,在收到单片机发出的指令后对环境进行检测 本文首先描述系统硬件工作原理,并附以系统结构框图加以说明,着重介绍了本系统所应用的各硬件模块的功能和它的工作过程;其次,详细阐述了程序的各个模块及其实现过程。本系统的主要设计思想是以硬件为基础,软件和硬件相结合,最终实现各个模块的功能。 关键字单片机ABSTRACT The design and implementation of temperature control system based on SCM (AD590), it makes up of control part, display part and temperature testing part. Most functions of this system are realized by hardware, the electric circuit is reliable, and the system can achieve higher stability. The system can measure and display the temperature, set the limit figure of temperature by the keyboard which connects with SCM instantly, and still can link corresponding peripheral equipment to heat the environment up after received the instruction that SCM issued. Firstly, the working principle of hardware is described in this paper which adds the structural block diagram for explanation. This paper emphatically introduces the functions and working process of each applied module. Secondly, this text expounds the functions of each module of program. The dominant thought of this text is that hardware is regarded as the foundation, software combining with hardware to actualize the functions. Key Words: SCM; Temperature collection; Hardware module 1 引 言 在国民经济各部门,如电力、化工、机械、冶金、农业、医学以及人们的日常生活中,温度检测是十分重要的。在许多模拟量控制和监视应用中,温度测控通常是基于 -40℃~125℃RESET、设置温度下限告警值等。键盘输入部分采用了键盘专用IC 74C922,简化了软件编程,用起来非常方便。 系统软件主要由初始化程序、主程序、监控显示程序等组成。其中初始化程序是对单片机的接口工作方式,A/D转换方式等进行设置;显示程序包括对显示模块的初始化、显示方式设定及输出显示;主程序则完成对采集数据进行处理。 该系统应用范围相当广泛,同时采用单片机技术, 由于单片机自身功能强大,因而系统设计简单,工作可靠,抗干扰能力强,也可在此基础上加入通信接口电路,实现与上位机之间的通信。 2.1 功能与设计要求 这套温度采集、控制系统可以方便地实现温度测量、温度显示等功能,并通过与单片机连接的键盘可以随时设定测控温度的下限,还可以连接相应的外围电路,在收到单片机发出的指令后对环境进行监测,当温度回升到下限温度时加热器停止监测。 1、采集温度并显示温度值。对温度控制器而言,最基本的功能是测温功能即能时时采集被测环境的温度并通过显示部分显示出来。 2、设定测控温度下限。温度采集一般都具有设定限定温度功能,即预设一个温度值,一旦温度低于这个温度值,控制
显示全部
相似文档