摘要
μC/OS-Ⅱ的执行效率主要取决于任务切换时间,而任务切换时,需进行堆栈操作.ARM处理器有多种运行模式,每种运行模式有不同的堆栈,这使得在ARM处理器上实现任务切换有其特殊性,本文利用ARM处理器在任务切换时堆栈的变化特点,优化设计堆栈操作方式和运行模式转化方式,以减小任务切换时间.实验结果表明该方法比其它实现方法具有更高的实时性.同时,本文采用在ARM上实现可重入中断来减少高优先级任务切换时间.
The executing efficiency of μC/OS-Ⅱ mainly depends on task swap time, and it needs operate stack during task swap. ARM MCU has multi-executing-mode, and there is distinct stack for each mode, so there is particularity in implementing task swap on ARM platform. The paper optimized the stack operation pattern and executing-mode transform pattern according to the characteristic of stack operation during task swap on ARM platform, in order to reduce the task swap time. The experiment result showed that this method had advantage over the others. Furthermore, the paper realized the reentrant interruption on ARM platform, in order to reduce the task swap time for high priority tasks.
出处
《电子器件》
CAS
2007年第4期1451-1454,共4页
Chinese Journal of Electron Devices
基金
天津市应用基础研究计划项目支持(06YFJMJC00200)
天津市高等学校科技发展基金项目支持(20051518)
南开大学创新基金支持