基于gprs和arm7的网络化皮带秤仪表设计

上传人:E**** 文档编号:114116370 上传时间:2019-11-10 格式:PDF 页数:94 大小:3.15MB
返回 下载 相关 举报
基于gprs和arm7的网络化皮带秤仪表设计_第1页
第1页 / 共94页
基于gprs和arm7的网络化皮带秤仪表设计_第2页
第2页 / 共94页
基于gprs和arm7的网络化皮带秤仪表设计_第3页
第3页 / 共94页
基于gprs和arm7的网络化皮带秤仪表设计_第4页
第4页 / 共94页
基于gprs和arm7的网络化皮带秤仪表设计_第5页
第5页 / 共94页
点击查看更多>>
资源描述

《基于gprs和arm7的网络化皮带秤仪表设计》由会员分享,可在线阅读,更多相关《基于gprs和arm7的网络化皮带秤仪表设计(94页珍藏版)》请在金锄头文库上搜索。

1、太原理工大学 硕士学位论文 基于GPRS和ARM7的网络化皮带秤仪表设计 姓名:王晓栋 申请学位级别:硕士 专业:控制理论与控制工程 指导教师:李丽宏 20090401 太原理工大学硕士研究生学位论文 I 基于 GPRS 和 ARM7 的网络化皮带秤仪表设计 摘 要 随着电子技术、传感器技术和网络化信息技术的发展,称重技术也得到了 迅速的发展,称重设备在智能化,数字化,通讯方式方面也有了很大进步,称 重装置的研究与开发也进入了一个新的发展阶段。 本文介绍了国内外电子皮带秤的发展现状及通讯联网方式,分析了皮带秤 的组成及称重原理,同时也研究了 GPRS 在工业当中的应用情况,提出了一种 新的皮带

2、秤通讯方式的设计方案。即把 GPRS 技术应用到皮带秤中,实现了皮 带秤设备的远程管理。 本设计的核心主要包含两部分的内容: 1.硬件电路的设计; 2.称重系统和 GPRS 无线通讯的软件编程。 硬件电路部分设计采用了两个 CPU 实现控制,C8051F021 单片机和 LPC2214 ARM7 处理器。C8051F021 单片机主要实现重量信号采集、速度信号 采集、外部看门狗及 RTC、020mA 电流输出、键盘及显示等功能,该单片机 比传统的 51 单片机速度更快, 性能更强。 LPC2214 主要控制 GPRS 模块 MC55, 实现与上位机监控中心的通讯功能,两个 CPU 之间通过串口

3、通讯。本设计中选 用了高精度 ADC 采集芯片 CS5532 提高了仪表的精度;数据显示采用液晶显示 模块,人机界面友好;外部看门狗能够实现低电压监测,提供 RTC 时钟,同时 该芯片内部还有 256k 的 FLASH 用来存储仪表的参数,该设计增强了仪表的抗 干扰能力、稳定性。 太原理工大学硕士研究生学位论文 II 软件部分编制了重量信号采集程序、仪表的调零和标定、串口通讯、GPRS 通讯程序等;研究学习了 C/OS-II 操作系统的原理,把该操作系统移植应用到 了 GPRS 控制当中; 在 GPRS 通讯中增加了 CRC 校验提高了传输数据的准确性。 完成设计之后对仪表进行了抗干扰、温度等

4、各种测试,同时也进行了多台 仪表与监控中心的联机调试,经过测试 GPRS 通讯链路稳定,误码率极低。该 设计在提高仪表的精度和速度的同时也拓展了仪表的通讯功能。 关键词:称重原理,皮带秤仪表,GPRS,ARM7,C/OS-II,C8051F021 太原理工大学硕士研究生学位论文 III DESIGN OF BELT WEIGHING DEVICES BASED ON GPRS AND ARM7 ABSTRACT Along with the electronic technology, the sensor technology and the network information tech

5、nologys development, the weighing technology also obtained the rapid development, weighing equipment at intelligent, digitization, communication is also a great progress, the weighing installments research and the development also entered a new stage of development. This paper introduces the develop

6、ment of domestic and foreign electronic belt scale and various means of communication, an analysis of the composition and belt weigher weighing principle, simultaneously has also studied GPRS in the middle of the industry application situation, proposed one kind of new belt weight meter communicatio

7、n way design proposal. Namely applies the GPRS technology in the belt weight meter, has realized the belt weight meter equipments long-distance management. This designs core mainly contains two parts of contents: 1. Hardware Circuit Design 2.Weighing System and GPRS wireless communication software p

8、rogramming. The hardware circuit design uses two CPU control implementation, C8051F021 MCU and LPC2214 ARM7 processor. C8051F021 MCU mainly realizes weight 太原理工大学硕士研究生学位论文 IV signal gathering, rate signal gathering, the exterior watch-dog and RTC, 020mA electric current output, keyboard and display

9、functions and so on. This MCU is quicker than the traditional 51 MCU speed, the performance is stronger. LPC2214 primary control GPRS module MC55, realizes with the superior machine monitoring center communication function, between two CPU adopts the serial port communication. In this design selecte

10、d high accuracy ADC gathering chip CS5532 to increase measuring appliances precision. The data demonstrated that uses the liquid crystal display module, the man-machine contact surface is friendly. External watchdog can achieve low-voltage monitoring, the provision of RTC clock, at the same time wit

11、hin the chip have 256k of FLASH used to store instrument parameters, the design of the instrument to enhance anti-interference ability and stability. The software part has established the weight signal gathering procedure, measuring appliances zero alignment and the calibration, the serial port comm

12、unication, the GPRS communication procedure and so on. Research study of the C/OS-II operating system principles, the application of the operating system migration to the GPRS control of some of them, increased the CRC verification in the GPRS communication to enhance the transmission data accuracy.

13、 After the completion of the design of instrumentation to carry out various tests such as the anti-jamming, simultaneously has also carried on many measuring appliances and the monitoring center debugging on-line, the process tests the GPRS communication link to be stable, the error rate is extremel

14、y low. This design while 太原理工大学硕士研究生学位论文 V increased measuring appliances precision and speed has also developed measuring appliances communication function. KEY WORDS: Weighing principle, Belt weigher Instrumentation, GPRS,ARM7, C/OS-II,C8051F021 太原理工大学硕士研究生学位论文 X 图目录 图 2-1 GPRS 无线网络数据信号传输系统结构示意图 5

15、 图 2-2 皮带秤系统组成 6 图 2-3 皮带秤称重原理图 7 图 2-4 传感器承受的总重量 8 图 2-5 皮带秤仪表设计结构图. 9 图 2-6 皮带秤联网示意图 10 图 3-1 C8051F021 最小系统原理图 . 13 图 3-2 JTAG 电路原理图. 13 图 3-3 电源原理图 14 图 3-4 5V 转 3.3V 电路 14 图 3-5 模拟电源和数字电源隔离电路 15 图 3-6 FM3326 内部结构图 16 图 3-7 低电压复位时序图 17 图 3-8 复位电路图 17 图 3-9 CS5532 引脚图 . 18 图 3-10 CS5532 内部结构图 . 1

16、9 图 3-11 AD 采集电路. 20 图 3-12 LCD 写时序图 21 图 3-13 LCD 读时序图 21 图 3-14 LCD 串行通讯时序图 22 图 3-15 显示及键盘电路 23 图 3-16 速度信号采集电路 23 图 3-17 电流输出电路 24 图 3-18 UART1 通讯电路 25 图 4-1 指令流水线 26 图 4-2 ARM7 内核结构 . 28 太原理工大学硕士研究生学位论文 XI 图 4-3 程序状态寄存器 30 图 4-4 LC2214 内部结构图. 33 图 4-5 LPC2214 最小系统. 34 图 4-6 电源电路图 35 图 4-7 JTAG 连接图. 36 图 4-8 主板 JTAG 接口图. 36 图 4-9 JTAG 与并口连接图. 37 图 4-10 JTAG 电路. 38 图 4-11 MC55 控制电路 39 图 4-12 MC55 开机时序图 40 图 4-13 MC55 关机时序图 40 图 5-1 主程序流程图 42 图 5-2 上电初始化流程图 43 图 5-3 AD 中断采集流程图.

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

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