摘要
通过对嵌入式实时操作系统应用背景的分析,论述了在嵌入式控制系统中采用嵌入式实时操作系统的必要性.简略介绍了源代码开放的嵌入式实时操作系统μC/OS Ⅱ及微控制器C8051F020的特点,重点阐述了μC/OS Ⅱ在以微控制器C8051F020为运行平台的移植.对μC/OS Ⅱ的移植条件及各个组成模块进行说明,讨论了移植过程中遇到的问题,并对需要编写的底层硬件的相关函数进行了深入细致的分析,提出了相应的示意性代码.在此基础上,根据实际系统的要求优化改进了原有的任务堆栈结构.
The necessity of embedded RTOS used in embedded control system by analyzing application background of embedded RTOS has been explained.The characters of source code exoterically embedded RTOS μC/OS-Ⅱ and MCU C8051F020 has been briefly introduced,and the implementation of μC/OS-Ⅱ in the platform of C8051F020 has been expatiated importantly.Transplanted conditions and all modules of μC/OS-Ⅱ are put forward concretely,and in addition,key problems confronted in the implementation are discussed and relevant low-level hardware functions need to be programmed and analyzed in detail and indicative codes are given.On the basis of actual system requirements,the primary structure of stack is optimized and mended.
出处
《沈阳工业大学学报》
EI
CAS
2005年第1期59-62,共4页
Journal of Shenyang University of Technology
关键词
嵌入式实时操作系统
任务
堆栈
中断
优先级
embedded real-time operating system
task
stack
interrupt
priority