单片机与嵌入式系统应用
單片機與嵌入式繫統應用
단편궤여감입식계통응용
MICROCONTROLLER & EMBEDDED SYSTEM
2014年
6期
5-7
,共3页
Spartan6%μC/OS-II%中断抢占%中断嵌套
Spartan6%μC/OS-II%中斷搶佔%中斷嵌套
Spartan6%μC/OS-II%중단창점%중단감투
Spartan6%μC/OS-II%interrupt preemption%interrupt nesting
介绍了Spartan6芯片搭载MicroBlaze软核的硬件平台,以及集成了μC/OS II操作系统的软件平台;给出了在此软硬件平台上的可抢占、可嵌套的中断机制的实现方法;灵活地运用面向底层硬件代码与操作系统代码之间的参数传递,协调了中断处理与任务调度之间的关系。阐述了方案的原理,给出了程序流程图;通过试验,验证了可抢占、可嵌套的中断机制的正确性与可行性。
介紹瞭Spartan6芯片搭載MicroBlaze軟覈的硬件平檯,以及集成瞭μC/OS II操作繫統的軟件平檯;給齣瞭在此軟硬件平檯上的可搶佔、可嵌套的中斷機製的實現方法;靈活地運用麵嚮底層硬件代碼與操作繫統代碼之間的參數傳遞,協調瞭中斷處理與任務調度之間的關繫。闡述瞭方案的原理,給齣瞭程序流程圖;通過試驗,驗證瞭可搶佔、可嵌套的中斷機製的正確性與可行性。
개소료Spartan6심편탑재MicroBlaze연핵적경건평태,이급집성료μC/OS II조작계통적연건평태;급출료재차연경건평태상적가창점、가감투적중단궤제적실현방법;령활지운용면향저층경건대마여조작계통대마지간적삼수전체,협조료중단처리여임무조도지간적관계。천술료방안적원리,급출료정서류정도;통과시험,험증료가창점、가감투적중단궤제적정학성여가행성。
The hardware Platform based on MicroBlaze was introduced,and the software Platform of theμC/OS-II was integrated in the hardware platform .The method of designing the interrupt which can be preempted and nested was provided;parameters were transferred between the underlying code and the operating system code flexibly.The relationship of interrupt processing and task scheduling was co-ordinated;the theory of the scheme was recounted,and the software program flow chart was provideding,validating the rightness and feasibility of the theory.