当前位置:网站首页>Understanding of arm interrupt priority
Understanding of arm interrupt priority
2022-07-20 09:56:00 【wkonghua】
The interruption of MCU is divided into preemptive priority and response priority ( Sub priority ), When interrupting, the preemption priority first determines which interrupt is generated .
Preemption priority is higher than response priority . The smaller the value, the higher the priority .
High preemptive priority can interrupt low preemptive priority , Hence the name preemption ; When the preemptive priority is the same , The higher the response priority , If it happens at the same time, respond to it first , But don't interrupt low response priority , Response expresses response speed .
In explaining the two points here : First of all , If the preemption priority and response priority of two interrupts are the same , It depends on which interrupt occurs first ; second , High priority preemption priority can interrupt the ongoing low preemption priority interrupt . And preempt interrupts with the same priority , A higher priority response priority cannot interrupt an interrupt with a lower response priority .
Let's illustrate with examples : Suppose the interrupt priority group is set to 2, Then set the interrupt 3(RTC_WKUP interrupt ) The preemption priority of is 2, The response priority is 1. interrupt 6( External interrupt 0) The preemption priority of is 3, The response priority is 0. interrupt 7( External interrupt 1) The preemption priority of is 2, The response priority is 0. So this 3 The priority order of interrupts is : interrupt 7> interrupt 3> interrupt 6.
Preemption priority and response priority , In fact, an interrupt contains two priorities , The former is the level division of preemption priority , The latter is the priority division of the same preemption priority .
such as : interrupt A Preemption priority ratio B high , that A Can be interrupted in B Trigger inside , Ignore response priority
A and B Preemption priority is the same , be A、B The response priority of determines who responds first .
Reference resources :https://blog.csdn.net/lr1916417519/article/details/81057810
边栏推荐
- Allegro (cadence)导出gerber文件步骤
- Interpretation of semi supervised contractual learning for label effective medical image segmentation
- 常见端口及漏洞
- “嵌入式智能化”为医疗设备不断赋能
- PCB在导出gerber文件时过孔盖油设置方法
- vulnhub 靶機 Jangow: 1.0.1
- Add new display support to uboot of imx8m development board
- Vulnhub target jangow: 1.0.1
- 最小二乘法线性拟合及其代码实现(C语言)
- 3D HMR correlation
猜你喜欢
Quanzhi t507 removes the IO expansion chip and retains the expansion pin function
Wireless network test based on Feiling NXP i.mx6ull
Debian系统移植USBWiFi RTL8192EU驱动并设置开机自启
典型的HMI应用实现方案,帮你更好的进行主控选型
基于ARM核心板实现的核酸自动提取仪
ZYNQ ARM核之SCU
RTOS——RT-Thread Studio
硬核实力!飞凌 TI Sitara AM62X 系列-335x经典再续
“嵌入式智能化”为医疗设备不断赋能
The paper interprets "protein subcellular localization based on deep image features and criterion learning strategy"
随机推荐
Weakly supervised Semantic Segmentation by Pixel-to-Prototype Contrast
最小二乘法线性拟合及其代码实现(C语言)
The paper interprets "protein subcellular localization based on deep image features and criterion learning strategy"
瑞芯微RK3568开发板深度评测
Mindscore "implementing a picture classification application" runs incorrectly
Vivado2018.2 version with PS side configuration (BD) when calling Modelsim simulation: (vlog-13006) could not find the package (sc_util_v1_0_3_pkg)
常见设备默认口令
代码审计之若依系统
Retinaface parsing
"Embedded intelligence" constantly empowers medical devices
yolov5-face
vivado工程版本升级时相关IP版本IP Status显示Using cached IP results
Precautions for the selection and conversion of single power supply operational amplifier and dual power supply operational amplifier and their power supply mode
2D & 3D pose dataset
How to test the availability and stability of EIM bus
[vscade configuration markdown environment] user friendly~
Redux main knowledge learning summary
瑞萨G2L核心板及开发板上手评测
【LoRa&NB-IoT】现状分析
Solution of STM32 cubeide breakpoint failure