单片机抢占式实时多任务处理的简易实现方法

Simple Implementation Method of Preemptive and Real-time Multitask Processing for Single-chip Microcomputer

  • 摘要: 提出了一种采用软件扩展中断技术的简易实时多任务调度程序设计方法,详细介绍了1个调度程序和4个系统调用即软中断触发调用、硬中断进入调度、硬中断退出调用及陷阱调用的实现,并给出了相应的程序框图。该软中断单片机抢占式实时多任务处理方法具有核心程序短、效率高、使用简单等优点,适合于单片机级的应用。

     

    Abstract: The paper proposed a design method of simple real-time multitask dispatching program using software expanding interruption technology,introduced implementation of one dispatching program and four system’s dispatchings namely triggering call of software interruption,call in of hardware interruption,call out of hardware interruption and call trap,and gave corresponding program diagrams.The method has advantages such as short core programs,high efficiency and simple to use,which is suitable for application of single-chip microcomputer.

     

/

返回文章
返回