1、 I 本科毕业本科毕业设计设计 题题 目:目: 远程液位采集装置的设计 学学 部部: 工学部 专业班级:专业班级: 自动化 学学 号:号: 学生姓名:学生姓名: 指导教师指导教师姓名姓名: 指导教师指导教师职称职称: 年年 月月 日日 II 摘要:本设计完成了基于 AT89S52 的液位数据显示仪表的软硬件设计。本设计首先根据液 位测量仪表的总体功能要求和国内外显示仪表发展趋势,确定了液位数据显示仪表的设计 要求和总体设计方案。对本系统的各个功能模块的软、硬件设计逐一进行阐述、分析、论 证。本设计是基于过程控制实验室中过程控制实验装置中的水箱作为液位测量对象,设计 了 I/V 转换电路,将 4
2、20mA 标准电流信号变换成 02.5V 电压信号,送入具有 SPI 串行接 口功能的 TLC2543 模/数转换器,进行模/数转换。本设计采用美国 ATMEL 公司生产的低功 耗,高性能 COMS 型 8 位单片机 AT89S52 作为微处理器。同时采用 HD7279 作为人机接口电 路,完成了 4 按键的输入和 4 位 LED 实时显示液位数字量。本设计同时考虑了可靠性设计 采用看门狗 X25045 作为低电压监测、数据掉电保护和防止程序跑飞。设计完成了 RS485 通信接口电路和软件协议。数显仪表具有测量值溢出报警功能。在软件方面,设计了数字 滤波子程序,按键处理子程序和显示子程序,通信
3、中断子程序。本设计完成的是一种专用 的数据显示仪表的设计,可用于生产过程中的液位数据的显示,不仅实现了对工业生产的 有效监控,而且在降低生产成本、简化管理等方面效果显著,具有一定的应用价值。 关键词:液位检测;A/D 转换;RS485;显示仪表;X25045 Abstract: This design completed based on the liquid level data display instrument A T89S52 design of the software and hardware. This design according to the overall level
4、 measurement instrument function requirement and domestic and international display instrument development trend, and determine the level data display instrument design requirements and overall design scheme. Modules of this system of software and hardware design, detail by detail discussion and ana
5、lysis demonstrated. This design is based on process control laboratory in process control experiment device as the water tank level measurement object, design I/V switching circuits, will 4 20mA standard current signal transform into 0 2.5 V voltage signal, into the serial interface function with SP
6、I TLC2543 d/a converter, d/a change. This design USES the American A TMEL company production of low power consumption, high performance COMS type eight monolithic integrated circuit A T89S52 as microprocessors. Adopted HD7279 as the man-machine interface circuit, completed the 4 buttons input and four lends real-time display level the digital quantity. This design by considering the reliability design watchdog X25045 as low voltage monitorin