摘要
针对单片机软件中由于任务超时导致的运行紊乱情况,提出了一种借助硬件的定时中断机制,只需只量资源就可实现的限时服务处理方法,并针对顺序操作和任务操作两种情况进行详细说明。能够防止和解决程序中出现因条件不满足而无法退出功能模块,出现独占MCU时间,以及多任务机制下的任务重叠,使资源间相互干扰而出现死循环状态或运行状态错误等问题,从而提高系统的冗余度和可靠性。
To overcome the chaos resulting from the task overtime in MCU software, a policy of time-limited service which depends on timer of MCU is brought forward. It occupies a small quantity of resources of inner MCU, and can be applied in both sequence operation and multi-task architecture to provent MCU from occupying the whole running time when the condition to exit from task is not satisfied or the same task overlaps mix the shared resources, which deteriorates the system.
出处
《系统工程与电子技术》
EI
CSCD
北大核心
2004年第11期1672-1674,共3页
Systems Engineering and Electronics
基金
福建省自然科学基金(A0120001)
福建省教委项目基金(K2001038)资助课题
关键词
限时服务
单片机程序
多任务机制
time-limited service
MCU software
multi-task architecture