摘要随着科学技术的的发展,现代电子设备的复杂程度越来越高,所以相应的电路板的维修和诊断越来越复杂。本课题所设计的专用适配器是为了解决现有通用测试平台硬件资源不足的问题,而专门为检测系统研制的设备。64793
本文首先介绍了专用适配器的总体设计,细化了适配器功能和指标要求。然后详细介绍了ARM的软件设计,主要包括ARM的的启动和中断,各接口的程序的设计,以及主程序的设计。接着介绍了FPGA程序设计,对各模块的设计作了介绍。最后将软件下载到硬件平台进行了测试,测试结果表明,所设计软件达到系统设计要求。
毕业论文关键词:故障检测 适配器 软件设计
Abstract With the development of science and technology,the complexity of the modern electronic devices become more sophisticated ,so the corresponding circuit board repair and diagnose become more complicated.This topic is dedicated adapter designed to address existing universal test platform hardware problem of insufficient resources,and so we develop the equipment for the detection system specially.
This paper describes the overall design of the dedicated adapter,and refinements functions of the adapter and required indicators.Then it introduces the details of the ARM software design.It includes start-up and interrupt of ARM,the design of the program for each interface and as well as the design of the main program.And then it introduces the FPGA program.The design of each module is introduced in this paper.At last,the software is downloaded to hardware platform and tested.The test result shows that the design of software achieves system design requirements.
Key words:Fault detection Adapter Software design
目次
1.绪论 1
1.1 选题背景 1
1.2 故障检测简介 1
1.3 研究的目的及意义 3
1.4 开发软件介绍 3
1.4.1 Keil uVision4 3
1.4.2 FPGA设计软件 3
2.专用适配器的总体设计 4
2.1 主要功能 4
2.2 主要技术要求 4
2.3 设备组成及工作过程 5
3.ARM程序设计 7
3.1 AT91SAM9G20简介 7
3.2 ARM程序的启动和中断 8
3.2.1 AT91SAM9G20的启动 8
3.2.2 BootLoader的编写 8
3.2.3 AT91SAM9G20的中断 9
3.3 AT91SAM9G20地址空间分配 10
3.4 DM9161网络接口程序设计 11
3.4.1 网络接口层 13
3.4.2 网际互联层 15
3.4.3 传输层和应用层 18
3.4.4 网口数据帧格式 19
3.5 串行接口程序 19
3.5.1 串口参数设置 19
3.5.2 发送数据 20
3.5.3 接收数据 20
3.6 主程序流程 21
4.FPGA程序设计