供電綜合保護器實時系統(tǒng)μC/OS-Ⅲ中斷管理設計
馮沖1,吳堯輝1,曹聰2
(1 河南理工大學 電氣工程與自動化學院,河南 焦作 454150;2 信陽師范學院 物理電子工程學院,河南 信陽 464000)
摘 要:針對供電綜合保護器對實時性的要求,結合μC/OS- Ⅲ實時操作系統(tǒng)對保護器中斷任務進行中斷管理設計。通過對μC/OS- Ⅲ系統(tǒng)中斷管理機制分析,將中斷任務分成內(nèi)核對象參與和無內(nèi)核對象參與,并對兩種中斷任務進行不同處理。為減少中斷延遲時間,提高保護器系統(tǒng)對異常事件的響應速度,將數(shù)據(jù)采集、數(shù)據(jù)接收、數(shù)據(jù)存儲等內(nèi)核對象參與的中斷任務選擇延遲發(fā)布模式。仿真實驗結果表明,中斷關閉時間最高為3.35 ms,提高了系統(tǒng)對中斷任務的快速響應和處理,保證了保護器的實時性和穩(wěn)定性。
關鍵詞:供電綜合保護;μC/OS- Ⅲ實時操作系統(tǒng);中斷管理;延遲發(fā)布模式;實時性
中圖分類號:TP273 文獻標識碼:A 文章編號:1007-3175(2020)10-0017-05
Design of Real-Time System μC/OS-III Interrupt Management Design in Power Supply Integrated Protector
FENG Chong1, WU Yao-hui1, CAO Cong2
(1 School of Electrical Engineering and Automation, Henan Polytechnic University, Jiaozuo 454150, China;
2 College of Physics and Electronic Engineering, Xinyang Normal University, Xinyang 464000, China)
Abstract: Aiming at the real-time requirement of power supply comprehensive protection, combined with μC/OS-III real-time operating system, the interrupt management devise of the protector interrupt task is carried out. In this paper through the analysis of μC/OS-III system interrupt management mechanism, to divide the interrupt tasks into kernel object participation and non kernel object participation, and handle the two kinds of interrupt tasks differently. In order to reduce the interrupt delay time and improve the response speed of the protector system to the abnormal events, the delayed release mode is selected for the interrupt tasks involving data collection, data receiving, data storage and other kernel objects.The simulation experiment results show that the maximum interrupt closing time is 3.35 ms, which improves the system's rapid response and processing of interrupt tasks, and ensures the real-time and stability of the protector.
Key words: integrated power supply protection; μC/OS-III real-time operating system; interrupt management; delayed release mode; real-time
參考文獻
[1] 吳堯輝,劉思,吳昊珍,等. 基于μC/OS-Ⅲ的供電綜合保護器設計[J]. 電力系統(tǒng)保護與控制,2018,46(12):122-127.
[2] 諶普江,龔光華,宮輝,等.μC/OS-Ⅲ為縮短中斷關閉時間作出的改進[J]. 單片機與嵌入式系統(tǒng)應用,2013,13(1):78-81.
[3] 楊曉霞,劉榮興. 嵌入式系統(tǒng)中斷處理的分析和改進[J]. 計算機工程與設計,2006,27(12):2254-2255.
[4] 金浩, 韓江洪, 李陽銘. 基于ARM的嵌入式系統(tǒng)中斷處理機制研究[J]. 現(xiàn)代電子技術,2005,28(22):1-3.
[5] 張勇,夏家莉,陳濱,等. 嵌入式實時操作系統(tǒng)μc/OS-Ⅲ應用技術:基于ARM Cortex-M3 LPC1788[M].北京:北京航空航天大學出版社,2013.
[6] 劉火良,楊森. STM32庫開發(fā)實戰(zhàn)指南[M]. 北京:機械工業(yè)出版社,2013.
[7] 吳堯輝,吳天博. 基于μC/OS-Ⅲ的供電保護數(shù)據(jù)采集處理系統(tǒng)設計[J]. 測控技術,2016,35(9):98-101.
[8] 盧濤,邢軍輝,鄭維,等. 基于μC/OS-Ⅱ和CAN總線的立體車庫控制器設計[J]. 電工技術,2019(3):49-50.
[9] 吳兆芝. X86 平臺UCOS+FatFS文件系統(tǒng)移植研究與實現(xiàn)[J]. 吉林師范大學學報( 自然科學版),2011,32(2):125-127.
[10] 袁志祥,甘正良. 基于μC/OS-Ⅲ的實時內(nèi)核中斷管理機制[J]. 計算機工程,2015,41(11):100-105.