节点文献

基于AT91M55800A嵌入式控制器的设计与实现

Design and Realization of Embedded Controller Based on AT91M55800A

【作者】 翟二宁

【导师】 宋绍剑;

【作者基本信息】 广西大学 , 控制理论与控制工程, 2007, 硕士

【摘要】 随着计算机技术的发展,嵌入式系统己成为计算机领域的一个重要组成部分,并成为近年来研究的热点。同时随着网络技术的发展,为嵌入式系统添加网络功能已成为嵌入式系统新的发展方向。在此背景下本文提出了一种基于AT91M55800A的嵌入式控制器。AT91M55800A微控制器以ARM7TDMI为内核,具有高效能、低功耗、体积小特点,非常适用于那些对体积、成本有严格要求的控制领域。本文以AT91M55800A微控制器为核心,设计和制作了嵌入式控制器的硬件电路。硬件电路主要包括MCU、存储系统、JTAG调试接口、TCP/IP网络接口以及控制器电源等。为了测试控制器核心板工作的稳定性,本文对控制器硬件的各部分进行分别调试,主要包括AT91M55800A微处理器、FLASH存储器、铁电存储器等,确保了AT91M55800A控制器核心板控制器稳定地工作。为了满足实时多任务控制的要求,本文选择实时性强、源码公开的uC/OS-Ⅱ作为操作系统,通过分析其内核原理,将该操作系统成功地移植到了AT91M55800A微控制器上,实现了多任务的调度。为了扩展控制器网络功能,在uC/OS-Ⅱ操作系统中移植了LwIP协议。通过分析LwIP协议,特别分析了TCP和IP层,根据网络芯片RTL8019AS编写网络驱动,并通过TCP/IP协议实验测试表明,所设计的网络接口实现了与PC机的TCP/IP通信功能。最后,编写了PID控制算法、A/D和D/A模块的驱动程序以及MODBUS通信程序,实现了该控制器核心板对三容液位装置的单容液位控制,并利用“力控”组态软件对液位进行实时监控。结果表明控制系统工作运行稳定,控制效果良好。

【Abstract】 With the development of computer, embedded system has become an important part of computer science and researching focus in recent years. At the same time,with the development of network,it is becoming current to append network function on the controller system.Hereby this paper presents an embedded control system based on AT91M55800A,which has ARM7TDMI core that is a high-performance,small size,low-power consumption core, and is specially suitable for the control filed ritical to the size and the cost.Firstly, the paper set up a hardware system besed on AT91M55800A, which includes MCU,system memery,JTAG debugging interface,TCP/IP network interface,power supply and so on. In order to ensure controller of AT91M55800A running stably, the paper debugging the controller board including AT91M55800A,FLASH memory etc.In order to meet the request of real-time and multi-task control,it anatomize uC/OS-II with fine real-time and open source code,and transplant this operation system to AT91M55800A successfully to realize the function of multi-task. To realize the function of network in uC/OS-II,this paper introduces LwIP(Light Wight IP), especially process of TCP and IP,and then implements driver for LwIP according to RTL8019AS and realizes the communications between the controller and computer based on TCP/IP stack. The test examples of network show that the network interface designed in this paper can communicate with PC susuccessfully based on TCP/IP stack.Finnally,Based on programme of PID and drives of A/D and D/A,the control board is successfully used in controlling the single-tank Liquid Level of the single-tank Liquid Level. Through protocol of MODBUS,the level of the single-tank is monitored by the ForceControl configuration software and the result shows that the controller runs stably.

【关键词】 嵌入式系统μC/OS-IIARMLwIPTCP/IP控制器
【Key words】 Embedded SystemuC/OS-IIARMLwIPTCP/IPController
  • 【网络出版投稿人】 广西大学
  • 【网络出版年期】2007年 05期
  • 【分类号】TP368.12
  • 【下载频次】78
节点文献中: 

本文链接的文献网络图示:

本文的引文网络