Electronic Science and Technology ›› 2021, Vol. 34 ›› Issue (9): 7-11.doi: 10.16180/j.cnki.issn1007-7820.2021.09.002

Previous Articles     Next Articles

Optimizing the Real-Time Kernel Interrupt Management Mechanism of μC/OS-III

FENG Chong1,2,WU Yaohui1,2,WU Haozhen3   

  1. 1. School of Electrical Engineering and Automation,Henan Polytechnic University,Jiaozuo 454000,China
    2. XJ Electric Co., Ltd.,Intelligent Power Supply System for Underground Coal Mine,Henan Polytechnic University,Jiaozuo 454000,China
    3. Zhengzhou Technology and Business University,Zhengzhou 451400,China
  • Received:2020-05-23 Online:2021-09-15 Published:2021-09-08
  • Supported by:
    National Natural Science Foundation of China(61340015);Ministry of Education Collaborative Education Practical Conditions Construction(201702064052);Henan Provincial Department of Education Natural Science Research(2010A470003);Joint Funds of Cooperative Education Innovation and Entrepreneurship of Ministry of Education(201802060039)

Abstract:

In the μC/OS-III real-time operating system, low priority interrupt task has greater interference with the deadline of urgent tasks. In view of this problem, an optimized interrupt management mechanism of μC/OS-III is proposed. Using the principle of priority deprivation based on μC/OS-III, the priority of interrupt task and common task is assigned uniformly. According to the urgency of the interrupt, the interrupt task is assigned an appropriate priority, and different processing methods are selected by comparing the priority of the interrupt task and the current executing task. If the priority of the interrupt task is lower than the currently executing task, it will be processed in task mode, otherwise it will be processed in the interrupt service routine. Theoretical analysis and μC/Probe software testing and experiments show that the optimized μC/OS-III real-time kernel interrupt management mechanism can shorten the deadline of emergency tasks, and the system can run reliably and stably with high real-time performance.

Key words: μC/OS-III real time operating system, interrupt management, low priority interrupt, urgent task, deadline, unity distribution, μC/Probe, real time

CLC Number: 

  • TP311