计算机科学 ›› 2013, Vol. 40 ›› Issue (6): 41-44.

• 综述 • 上一篇    下一篇

基于ARM Cortex M4的MQX中断机制分析与中断程序框架设计

石晶,王宜怀,苏勇,沈忱   

  1. 苏州大学计算机科学与技术学院 苏州215000;苏州大学计算机科学与技术学院 苏州215000;苏州大学计算机科学与技术学院 苏州215000;苏州大学计算机科学与技术学院 苏州215000
  • 出版日期:2018-11-16 发布日期:2018-11-16
  • 基金资助:
    本文受国家自然科学基金项目(61070169)资助

Analysis of MQX Interrupt Mechanism and Design of Interrupt Program Frame Based on ARM Cortex-M4

SHI Jing,WANG Yi-huai,SU Yong and SHEN Chen   

  • Online:2018-11-16 Published:2018-11-16

摘要: 中断机制是决定RTOS实时性指标的核心机制。MQX是一个由Freescale维护、源代码公开、支持多任务的抢占式的RTOS,将会广泛用于ARM Cortex-M微处理器的应用中。MQX的中断机制具有实时响应、动态管理的特点。以ARM Cortex M4Kinetis微控制器为蓝本,深入分析了MQX的中断顶半部和底半部的运行机理,提出了MQX的中断实时特性的评估算法,明确了程序时间的可控性。在此基础上,根据嵌入式软件工程的基本原理,不拘泥于传统程序结构设计方法,提出了一种MQX下中断程序框架及编程要素分布的基本原则,从而较好地满足了程序可复用性及可移植性要求。

关键词: MQX,ARM Cortex-M4,Kinetis,中断机制,中断程序框架

Abstract: Interrupt mechanism is the core mechanism which decides the instantaneity of the RTOS.MQX is an open source,multitask support,preemptive RTOS which is maintained by Freescale.It will be widely used in the application of the ARM Cortex-M microprocessor.MQX interrupt mechanism has the characteristics of real-time response and dynamic management.The paper analysed the MQX interrupt operation mechanism of top half and bottom half,based on the ARM Cortex M4Kinetis series microcontroller,and put forward the evaluation algorithm which is used to describe the instantaneity of the RTOS,making the controllability of program running time clear.On this basis,according to the embedded software engineering basic principles,not constrained by the traditional program structure design methods,this paper proposed a basic principle describing the interruption program structure under MQX and the distribution of programming elements,which satisfies the requirements of program reusability and portability.

Key words: MQX,ARM Cortex-M4,Kinetis,Interrupt mechanism,Interrupt program frame

[1] Freescale.Freescale MQX Real-Time Operating System User’s Guide[EB/OL].http://www.freesacle.com,2011-04
[2] 王运盛,王坚.VxWorks实时操作系统中的中断处理机制[J].电讯技术,2007,8(2):2-4
[3] Labrosse Jean J.嵌入式实时操作系统uC/OS-II(第2版)[M].邵贝贝,等译.北京:北京航空航天大学出版社,2003:61-72
[4] 王宜怀,吴璟,蒋银珍.嵌入式系统原理与实践—ARM Cortex-M4Kinetis微控制器[M].北京:电子工业出版社:45-74
[5] Freescale.K60Sub-Family Reference Manual[EB/OL].http://www.freesacle.com,2011
[6] 荐红梅.基于硬件构件的嵌入式底层软件开发方法研究及其应用[D].苏州:苏州大学,2008,4:36-44
[7] Richard H C,Janell A.Review of current embedded systemhardware,OS,development systems and application domains for instructional design[C]∥Conference Proceedings ASEE AnnualConference and Exposition.2007:16
[8] Freescale.Freescale MQX RTOS Reference Manual[EB/OL].http://www.freesacle.com,2011-04
[9] Freescale.MQX RTOS 3.8.1Release Notes[EB/OL].http://www.freesacle.com,2012-06
[10] Yiu J.ARM Cortex-M3权威指南[M].宋岩,译.北京:北京航空航天大学出版社,2009,7:11-41,0-154
[11] ARM.Cortex-M4Devices Generic User Guide [EB/OL].http://www.arm.com

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!