S32K11x SM 5.6.6 - NVIC or interrupts?

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

S32K11x SM 5.6.6 - NVIC or interrupts?

671 次查看
Catosh
Contributor IV

Hi All, 

I have many questions about assumptions from SM rev. 4. Let's start with NVIC section:

 

 [SM_100], implementation hint: "A possible way to detect spurious interrupts is to check corresponding interrupt status in the interrupt status register (polling) of the related peripheral before executing the Interrupt Service Routine (ISR) service code"

 

For me it's not clear if I have to monitor the pending status of the NVIC or of interrupt flags set in the peripheral register. 

If a I am going to poll for the interrupt flags in a peripheral register, I must also keep track of:

global interrupt enable\disable bit status (cpsid/cpsie)

and Interrupt enabled in NVIC (peripheral)

Furthermore, shall I monitor periodically the critical interrupts in polling (e.g while loop and if irq present execute callback) or just poll the irq registers of the peripheral in the callback provided in VTOR before executing some code?

 

And what's the difference between the implementation hint of [SM_098]?

K.R.

 

Luca. 

0 项奖励
0 回复数