具有rs-485通信功能的8路温度检测仪软件设计_西安工程大学

上传人:小** 文档编号:39813714 上传时间:2018-05-20 格式:DOC 页数:54 大小:1.12MB
返回 下载 相关 举报
具有rs-485通信功能的8路温度检测仪软件设计_西安工程大学_第1页
第1页 / 共54页
具有rs-485通信功能的8路温度检测仪软件设计_西安工程大学_第2页
第2页 / 共54页
具有rs-485通信功能的8路温度检测仪软件设计_西安工程大学_第3页
第3页 / 共54页
具有rs-485通信功能的8路温度检测仪软件设计_西安工程大学_第4页
第4页 / 共54页
具有rs-485通信功能的8路温度检测仪软件设计_西安工程大学_第5页
第5页 / 共54页
点击查看更多>>
资源描述

《具有rs-485通信功能的8路温度检测仪软件设计_西安工程大学》由会员分享,可在线阅读,更多相关《具有rs-485通信功能的8路温度检测仪软件设计_西安工程大学(54页珍藏版)》请在金锄头文库上搜索。

1、西安工程大学本科毕业设计(论文)摘 要温度是工业生产和自动控制中最常见的工艺参数之一,生产过程需要对温度进行检测和控制 。为了满足对温度采集和测量要求,实现对各个支路温度的检测,本系统就是采用了 AT89S52 为主控的 8 路温度检测的系统。该系统可以实现多个点的温度检测和数值显示并且具有 RS-485 通信功能。该系统包括的模块主要有温度的采集,单片机的控制,AD 转换,温度值的显示,RS-485 通信。它主要使用的是热敏电阻 Pt100 温度传感器实现温度检测,并通过 AD 转换对采集到的数值进行转换,随后将温度显示在液晶屏上,并对温度设置上下阈值来实现温度报警功能。论文首先简单介绍了该

2、系统的基本原理及整体结构,接着分硬件、软件两部分对整个系统进行阐述,其中软件部分详细描述。最后是系统的调试与分析,对系统的功能进行了验证。关键词:AT89S52, RS-485, AD 转换, PT100 温度传感器西安工程大学本科毕业设计(论文)ABSTRACTTemperature is one of the most common parameters in industrial production and automatic control of technological, there is the need of the detection and control in the

3、productive process. In order to meet the requirement of temperature acquisition and measurement to detect eight-channels temperature, so we will design a simply temperature detection system which focus on the AT89S52.This system can detect the temperature, display the values of number with RS-485 co

4、mmunication function. This system includes the collection of temperature, the control of the single chip microcomputer, AD conversion, display the temperature value and RS-485 communication. It detect temperature and transfer the temperature which is mainly use a PT100 temperature sensor. Then displ

5、ay the temperature on the Liquid Crystal Display. And set up the top and the bottom temperature value. If the temperature doesnt reach the range of the top and bottom ,the system will give an alarm. This paper first introduces the basic principle and the massive structure of the system. Then it is d

6、ivided into two parts to the whole system hard ware and software are described, the software part will give a detail description. Finally there is a need to debug and analyze the system to testify the system.KEY WORDS:AT89S52, RS-485 communication, AD conversion, Pt100 temperature sensor西安工程大学本科毕业设计

7、(论文)目 录 前 言.1第 1 章 绪论.31.1 基本原理.31.1.1 传感器部分 .31.1.2 主控制部分.41.1.3 AD 转换模块 .41.1.3.1 ADC0809 简介.41.1.3.2 ADC0809 原理.51.1.4 485 通信模块 .61.2 系统方案.61.2.1 系统的整体结构 .61.2.2 软件介绍.71.3 章节安排 .8第 2 章 硬件设计.92.1 总体设计 .92.2 系统主要器件的介绍 .102.2.1 单片机 AT89S52 .102.2.2 A/D 转换芯片 .112.2.3 温度传感器.122.2.4 显示 LCD 1602 .122.2.

8、5 MAX485 芯片 .122.3 总体电路图 .13第 3 章 软件设计.153.1 主程序的设计 .153.2 AD 转换子程序设计.173.3 LCD 温度显示程序设计.193.4 报警子程序设计 .22西安工程大学本科毕业设计(论文)3.5 按键设置程序设计 .223.6 RS-485 通信模块程序设计.24第 4 章 调试与仿真.264.1 软件仿真 .264.1.1 建立程序文件.264.1.2 加载目标代码文件.294.1.3 进行调试与仿真.294.2 硬件调试 .314.3 产生的问题与分析 .33第 5 章 结论与展望.345.1 结论 .345.2 展望 .34参考文献

9、.35附录 系统程序.38西安工程大学本科毕业设计(论文)0前 言在人类的生产生活之中,温度扮演着极其重要的角色,温度对工业的发展有着及其重要的影响,因此传感器也有着飞速的发展,来适应这种对温度的检测要求。基于此,本设计就是一个对温度的循环检测系统,以满足生产生活对温度检测的需要。随着时代的进步和发展,单片机技术已经普及到我们生活、工作、科研、各个领域,已经成为一种比较成熟的技术,本文主要介绍了一个基于 AT89S52 单片机的测温系统,描述了利用温度传感器 PT100 测温系统的过程,对传感器在单片机下的硬件连接,软件编程以及各模块系统流程进行了分析,对各部分的电路也一一进行了介绍,该系统可

10、以方便的实现温度采集和显示,灵敏度高、体积小、功耗低等优点,适合于我们日常生活温度测量,也可以当作温度处理模块嵌入其它系统中,作为其他主系统的辅助扩展1。PT100 在-50600范围内具有其他任何温度传感器无可比拟的优势,包括高精度、稳定性好、抗干扰能力强等,正是基于此,PT100 在各个行业中受到广泛应用。此系统设计了一款基于 PT100 的多路温度巡检仪,可同时测量 8路 PT100 信号,通过 LCD1602 ,同时循环显示 8 路温度值。其中 PT100 是铂热电阻,它的阻值跟温度的变化成正比。PT100 的阻值与温度变化关系为:当PT100 温度为 0时它的阻值为 100 欧姆,在 100时它的阻值约为 138.5 欧姆。它的工业原理:当 PT100 在 0 摄氏度的时候他的阻值为 100 欧姆,它的阻值会随着温度上升而成匀速增长的。由于 PT100 热电阻的温度与阻值变化关系,人们便利

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 商业/管理/HR > 经营企划

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号