基于单片机的温度控制系统设计毕业论文资料 联系客服

发布时间 : 星期一 文章基于单片机的温度控制系统设计毕业论文资料更新完毕开始阅读9a1cd58ceffdc8d376eeaeaad1f34693daef10a3

西北师范大学知行学院

计算机与电子信息工程系

课程:综合电子系统设计与实践

题目:基于单片机的水温控制系统

班级:13级电本班 姓名:李利平 学号:201392170110 指导教师:刘玮

摘 要

近年来随着计算机在社会领域的渗透, 单片机的应用正在不断地走向深入,同时带动传统控制检测日新月益更新。

本文从硬件和软件两方面来讲述对烘干箱温度的自动控制过程,在控制过程中主要应用AT89C51、ADC0809、LED显示器、LM324比较器,而主要是通过 DS18B20数字温度传感器采集环境温度,以单片机为核心控制部件,并通过四位数码管显示实时温度的一种数字温度计。软件方面采用汇编语言来进行程序设计,使指令的执行速度快,节省存储空间。为了便于扩展和更改,软件的设计采用模块化结构,使程序设计的逻辑关系更加简洁明了,使硬件在软件的控制下协调运作。

关键词:单片机系统;传感器;数据采集;模数转换器;温度

Abstract

In recent years along with computer penetration in the social sphere, SCM applications are constantly deepening, led the traditional control test at the same time ever updated.

.In this paper, from two aspects of hardware and software about automatic temperature control process, the control process is mainly used AT89C51, ADC0809, LED display, LM324 comparator, but mainly through the DS18B20 digital temperature sensor to collect the environmental temperature, the single-chip microcomputer as the core control component, and through four digital tube display real-time temperature of a digital thermometer. Software using assembly language to program design, so that the instruction execution speed, save the memory space. In order to facilitate the expansion and the change, the software design uses the modular structure, make the logic relation of designing program more concise, making hardware tocoordinatetheoperation under the software control.

Keywords: SCM system; sensor; data acquisition; a / D converter temperature;

目 录

1 绪 论 ............................................. 1

1.1课题的背景及其意义 .............................................. 1 1.2课题研究的内容及要求 ............................................ 2

1.2.1 课题的主要研究的内容 ...................................... 2

2 AT89C51系列单片机介绍及硬件设计 ................... 4

2.1 AT89C51系列单片机介绍 .......................................... 4 2.1.1 AT89C51系列基本组成及特性 .................................. 4 2.1.2 AT89C51系列引脚功能 ........................................ 5 2.1.3 AT89C51系列单片机的功能单元 ................................ 7 2.2 硬件设计 ..................................................... 10 2.2.1 温度采样部分 .............................................. 10 2.2.2 控制温度 ................................................. 12 2.2.3 模数转换部分 .............................................. 13 2.2.4 模数转换技术 .............................................. 13 2.2.5 积分型模数转换器 .......................................... 13 2.2.6 显示部分 .................................................. 14

3 软件设计 ......................................... 16

3.1主程序流程图 ................................................... 16 3.2 读温度子程序 .................................................. 17 3.3 计算温度子程序 ................................................ 19 3.4按键流程图 ..................................................... 20 3.5 显示流程图 .................................................... 21

结 论 .............................................. 23 参考文献 ........................................... 24 谢 辞 .............................................. 25