NVIC pending register and Peripheral interrupt status register

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

NVIC pending register and Peripheral interrupt status register

1,402 次查看
DavidMunoz
Contributor II

I know NVIC has its pending register bit per interrupt and peripherals have interrupt status register, then in a ISR is always recommended to:

  • Check the peripheral interrupt status register (Avoiding detect spurious interrupt by NVIC)
  • Execute the ISR functionality
  • Clear the peripheral interrupt register

Then my questions are:

  • When is it necessary to clear the NVIC pending register?
  • Is it always clear by itself?

Assume ARMv6-M Architecture.

0 项奖励
回复
1 回复

1,382 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi David,

The NVIC pending flag is cleared by the HW when the interrupt becomes active.
So, there is no need to clear it by SW.


BR, Daniel

 

 

0 项奖励
回复