摘要
阐述了影响单片机多任务处理的因素;通过对查询方式、中断方式下的多任务处理情况进行分析,找到了与单片微机处理能 力相关联的参数以及程序结构因素,指出单纯的查询方式和中断方式并不是提高单片机多任务处理能力的最好手段。理想的方法是,充 分利用好单片机的软硬资源,根据事件的轻重缓急、以及处理程序的长短安排中断源及程序结构,做到最大限度地提高单片机CPU效率。
There are many factors that affect the ability of MCS (single chip micro-computer) carrying out multiple tasks . By analyzing the situation of the multiple tasks under the inquiry mode and interrupt mode, the paper finds out the parameters concerned with processing ability of MCS, and indicates that neither pure inquiry mode nor interrupt mode is the best method to improve the processing ability of MCS. The ideal ways are to make full use of the soft and hard resources of MCS, to reasonably arrange the interrupt resources and program structure according to the emergency situation of the events and the length of the processing program so that we can raise the efficiency of CPU to the utmost.
出处
《辽宁工程技术大学学报(自然科学版)》
CAS
北大核心
2002年第3期342-343,共2页
Journal of Liaoning Technical University (Natural Science)
关键词
单片微机
多任务处理能力
中断方式
查询方式
single chip micro-computer (MCS)
multiple tasks processing
inquiry mode
interrupt mode