NVIC pending register and Peripheral interrupt status register

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

NVIC pending register and Peripheral interrupt status register

1,411件の閲覧回数
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,391件の閲覧回数
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 件の賞賛
返信