供電綜合保護(hù)器實(shí)時(shí)系統(tǒng)μC/OS-Ⅲ中斷管理設(shè)計(jì)
馮沖1,吳堯輝1,曹聰2
(1 河南理工大學(xué) 電氣工程與自動(dòng)化學(xué)院,河南 焦作 454150;2 信陽(yáng)師范學(xué)院 物理電子工程學(xué)院,河南 信陽(yáng) 464000)
摘 要:針對(duì)供電綜合保護(hù)器對(duì)實(shí)時(shí)性的要求,結(jié)合μC/OS- Ⅲ實(shí)時(shí)操作系統(tǒng)對(duì)保護(hù)器中斷任務(wù)進(jìn)行中斷管理設(shè)計(jì)。通過(guò)對(duì)μC/OS- Ⅲ系統(tǒng)中斷管理機(jī)制分析,將中斷任務(wù)分成內(nèi)核對(duì)象參與和無(wú)內(nèi)核對(duì)象參與,并對(duì)兩種中斷任務(wù)進(jìn)行不同處理。為減少中斷延遲時(shí)間,提高保護(hù)器系統(tǒng)對(duì)異常事件的響應(yīng)速度,將數(shù)據(jù)采集、數(shù)據(jù)接收、數(shù)據(jù)存儲(chǔ)等內(nèi)核對(duì)象參與的中斷任務(wù)選擇延遲發(fā)布模式。仿真實(shí)驗(yàn)結(jié)果表明,中斷關(guān)閉時(shí)間最高為3.35 ms,提高了系統(tǒng)對(duì)中斷任務(wù)的快速響應(yīng)和處理,保證了保護(hù)器的實(shí)時(shí)性和穩(wěn)定性。
關(guān)鍵詞:供電綜合保護(hù);μC/OS- Ⅲ實(shí)時(shí)操作系統(tǒng);中斷管理;延遲發(fā)布模式;實(shí)時(shí)性
中圖分類號(hào):TP273 文獻(xiàn)標(biāo)識(shí)碼:A 文章編號(hào):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
參考文獻(xiàn)
[1] 吳堯輝,劉思,吳昊珍,等. 基于μC/OS-Ⅲ的供電綜合保護(hù)器設(shè)計(jì)[J]. 電力系統(tǒng)保護(hù)與控制,2018,46(12):122-127.
[2] 諶普江,龔光華,宮輝,等.μC/OS-Ⅲ為縮短中斷關(guān)閉時(shí)間作出的改進(jìn)[J]. 單片機(jī)與嵌入式系統(tǒng)應(yīng)用,2013,13(1):78-81.
[3] 楊曉霞,劉榮興. 嵌入式系統(tǒng)中斷處理的分析和改進(jìn)[J]. 計(jì)算機(jī)工程與設(shè)計(jì),2006,27(12):2254-2255.
[4] 金浩, 韓江洪, 李陽(yáng)銘. 基于ARM的嵌入式系統(tǒng)中斷處理機(jī)制研究[J]. 現(xiàn)代電子技術(shù),2005,28(22):1-3.
[5] 張勇,夏家莉,陳濱,等. 嵌入式實(shí)時(shí)操作系統(tǒng)μc/OS-Ⅲ應(yīng)用技術(shù):基于ARM Cortex-M3 LPC1788[M].北京:北京航空航天大學(xué)出版社,2013.
[6] 劉火良,楊森. STM32庫(kù)開發(fā)實(shí)戰(zhàn)指南[M]. 北京:機(jī)械工業(yè)出版社,2013.
[7] 吳堯輝,吳天博. 基于μC/OS-Ⅲ的供電保護(hù)數(shù)據(jù)采集處理系統(tǒng)設(shè)計(jì)[J]. 測(cè)控技術(shù),2016,35(9):98-101.
[8] 盧濤,邢軍輝,鄭維,等. 基于μC/OS-Ⅱ和CAN總線的立體車庫(kù)控制器設(shè)計(jì)[J]. 電工技術(shù),2019(3):49-50.
[9] 吳兆芝. X86 平臺(tái)UCOS+FatFS文件系統(tǒng)移植研究與實(shí)現(xiàn)[J]. 吉林師范大學(xué)學(xué)報(bào)( 自然科學(xué)版),2011,32(2):125-127.
[10] 袁志祥,甘正良. 基于μC/OS-Ⅲ的實(shí)時(shí)內(nèi)核中斷管理機(jī)制[J]. 計(jì)算機(jī)工程,2015,41(11):100-105.