单片机程序的限时服务策略及设计  被引量:16

Policy of time-limited service and its application in MCU software design

在线阅读下载全文

作  者:吴允平[1] 蔡声镇[1] 乐仁昌[1] 苏伟达[1] 吴进营[1] 李汪彪[1] 

机构地区:[1]福建师范大学电子信息工程系,福建福州350007

出  处:《系统工程与电子技术》2004年第11期1672-1674,共3页Systems Engineering and Electronics

基  金:福建省自然科学基金(A0120001);福建省教委项目基金(K2001038)资助课题

摘  要:针对单片机软件中由于任务超时导致的运行紊乱情况,提出了一种借助硬件的定时中断机制,只需只量资源就可实现的限时服务处理方法,并针对顺序操作和任务操作两种情况进行详细说明。能够防止和解决程序中出现因条件不满足而无法退出功能模块,出现独占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.

关 键 词:限时服务 单片机程序 多任务机制 

分 类 号:TP202[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象