【编者按】:网学网电气工程与自动化类别为您提供μCOS参考,解决您在μCOS学习中工作中的难题,参考学习。
论文编号:ZD932 论文字数:18699,页数:40
摘 要
随着计算机及其相关技术的发展,在微处理器上移植嵌入式操作系统,由两者组成一个嵌入式实时操作系统成为可能。本文以嵌入式操作系统的研究为背景,讨论了在ARM处理器上移植μC/OS-II嵌入式操作系统的方法,并以实现相关设计功能作为说明。
ARM处理器是目前公认的业界领先的32位嵌入式RISC微处理器。软件平台采用实时操作系统μC/OS-II,操作系统可以将应用分解成多个任务,简化应用系统软件的设计。μC/OS-II是一种专门为微控制器设计的抢占式实时多任务操作系统。μC/OS-II具有内核源代码公开、简洁易学、移植性强等优点。
本文阐述了在ARM7微处理器LPC2294上移植μC/OS-II的主要内容和相关设计功能的实现方法。以微处理器LPC2294、闪存FLASH,LED、蜂鸣器和PC为硬件平台,在此基础上嵌入移植了μC/OS-II嵌入式实时操作系统,并在此嵌入式系统上实现了相关的设计功能。
关键词:嵌入式系统、ARM、μC/OS-II、移植
Abstract
With the development of the computer and relative technology,it is possible to transplant the Embedded Operating System to microprocessor,and by both comprise an Embedded real-time Operating System.In this paper,the background is the researching of Embedded Operating System,we discuss the method of transplanting Embedded Operating System based on ARM microprocessor,and explained by implementing the related design function.
ARM Processor is a kind of advanced 32-bit embedded RISC microprocessor accredited in this field.The real-time opearting system μC/OS-II is adopted in the sotfware platform.Operating Systems can simplify the design by dividing the application into some tasks.μC/OS-II is a kind of Multi-tasks,real-time and operation system which is especially designed for the microprocessor.It has many advnatages,for example:its kenrel source code is open,it is easy to learn,and it can easily trnasplanted.
In this paper,it expatiate the main content of μC/OS-II transplanting based on ARM microprocessor LPC2294 and the method of implementing related design function.Its hardware platform is comprised of microprocessor LPC2294、FLASH memory、LED、buzzer and PC,embedding transplant μC/OS-II Embedded real-time Operating System and implement related design function based on this Embedded Operating System.
Keywords:Embedded Operating System、ARM、μC/OS-II、transplant
目 录
摘要II
AbstractⅢ
1 前言1
1.1 嵌入式系统·1
1.2 本文所做的工作·2
2软硬件系统结构3
2.1 基于ARM和μC/OS-II的嵌入式操作系统·3
2.2 嵌入式微处理ARM7TDMI-S3
2.2.1 ARM7TDMI-S处理器3
2.2.2 指令流水线4
2.2.3 ARM7TDMI-S模块内核和功能框图4
2.2.4 操作模式6
2.2.5 寄存器6
2.3 嵌入式操作系统μC/OS-II8
2.3.1 μC/OS-II概述8
2.3.2 μC/OS-II特点8
2.3.3 μC/OS-II的内核9
3 移植μC/OS-II嵌入式操作系统12
3.1 移植规划·12
3.1.1 编译器选择12
3.1.2 ARM7工作模式的选择13
3.2 移植相关文件·13
3.3 移植μC/OS-II到LPC2294·23
4 系统启动与测试25
4.1 系统启动25
4.2 系统测试·25
5 移植功能实现28
5.1 主程序实现的功能28
5.2 主程序29
6 总结34
致谢·35
参考文献·36