摘要欧盟QB50项目计划于2015年发射50颗立方体小卫星,这50颗小卫星由全球多所相关高校和科研院所分别设计。南京理工大学加入QB50项目,负责研制一颗双单元立方体小卫星NJUST-1。
为了实现NJUST-1立方体小卫星星务计算机的开发,满足对星上设备的管理和使用,开发了基于ARM7处理器的驱动程序。驱动程序是一组连接硬件设备和软件应用的接口函数,驱动程序位于物理硬件设备之上负责与具体的硬件交互,用户应用程序通过调用接口函数与驱动程序进行信息交互。文章介绍了USART、SPI、CAN、I2C、ADC、DAC等驱动程序的主要内容,包括硬件设备的初始化,数据写处理,数据读处理,以及部分程序采用的中断处理功能或DMA硬件传输,改善了数据传输速率,减少了对CPU的时间消耗。所有驱动程序均做了实验测试,实验证明所编写驱动程序能够满足正常的功能需求。60333
毕业论文关键词:ARM7处理器;驱动程序;立方体纳卫星
毕业设计说明书(论文)外文摘要
Title The Development of CubeSat On-Board Computer Drivers
Abstract
EU QB50 project is planing to launch 50 CubeSats in 2015, which will be designed by related universities and research institutes. Nanjing University of Science and Technology joined QB50 project, and is responsible for the development of NJUST-1, a Dual unit CubeSate.
In order to achieve the development of the CubeSat NJUST-1 on-board computer and manage devices in the satellite, drivers based on the ARM7 CPU is developed. The driver providing a set of functions interface which connecting the hardware devices and applications, is located above the hardware devices at the physical level, but the user application can configuration the hardware devices by calling the drivers. This paper introduces the main content of the USART, SPI, CAN, I2C, ADC, DAC drivers, including the initialization of hardware devices, data writing, data reading, as well as the interrupt handling functions or DMA in some drivers, and the use of DMA improves the data transfer rate and reduces the CPU time consumption .Tests have been carried out for each driver, the experiments show that the drivers meet the normal functional requirements.
Keywords ARM7 CPU Driver CubeSat
1 引言 1
1.1 研究背景 1
1.2 研究现状 3
1.3 课题研究意义和内容 5
2 STM 32硬件平台及其驱动 6
2.1 STM32体系架构 6
2.2 ARM驱动 7
2.3 STM32硬件平台 8
3 USART串口通信总线驱动程序开发 9
3.1 USART串口通信总线概述 9
3.2 USART串口通信总线驱动程序 10
3.3 USART串口通信总线驱动程序验证