2. Remind the Concepts of NVIC

2018-06-08  本文已影响0人  stnevermore

NVIC(Nested Vectored Interrupt Controller) is the most significant part of STM32 development.There are two levels of Interruption Priorites called: Preemption Priority(抢占优先级) and Subpriority (响应优先级,亚优先级).The rules of NVIC is:

  1. The interruption whose Preemption Priority is higher can stop the lower interruption, which is called Nesting Interruption.

2.If two interruptions has two same level of Preemption Priority, they can't stop each other. The later interruption will wait until the former interruption finished.

  1. If two interruptions has both same Preemption priority and subpriority, the CM3 kernel will response the interruption which located ahead in the interruption vecter table.

  2. The number of Preemption priority is smaller ,the priority is higher. So does the subpriority.

Refferences:
https://www.jianshu.com/p/3b0502f116b6

上一篇下一篇

猜你喜欢

热点阅读