摘要
从操作系统实现多任务机制的原理入手,首先介绍了单片机实时多任务机制的实现方法,并以MCS-51系列单片机为例提出了一种新型的程序结构。然后提出了该机制的2种实现策略:基于定时中断和外部中断,详细阐述2种实现策略的实现原理和方法并对二者进行了比较。最后通过实验设计一个MCS-51单片机的应用系统验证了这种结构模块清晰、调度灵活。
From the principle of the operating system realizing multi-task mechanism,this paper firstly introduces the realizing method of microcontroller multi-task mechanism and presents a new type of program structure taking MCS-51 series microcontroller for example. Then it provides two kinds of strategies for this mechanism : based on timing interrupt and external interrupt, expounds the principles and implementation methods of the two realizing strategies and compares the both. Finally test shows that this structure module is clear and scheduling is flexible.
出处
《国外电子测量技术》
2010年第9期53-55,共3页
Foreign Electronic Measurement Technology
关键词
多任务机制
单片机系统
中断
任务调度
multi-task mechanism
single-chip microcomputer system
interrupt
task scheduling