LPC54102 CTIMER0 Interrupt Disabling

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

LPC54102 CTIMER0 Interrupt Disabling

462 次查看
BTaylor
Contributor III

Assume I have CTIMER0 configured with a capture input that generates an interrupt on a capture event.

If I disable the interrupt using the mcuxpresso SDK call CTIMER_DisableInterrupts() and then a capture event occurs while the interrupt is disabled, will the interrupt be fired if I subsequently call CTIMER_EnableInterrupts() or will I effectively 'lose' that event from an interrupt perspective?

I would assume that if I instead use DisableIRQ() and EnableIRQ() for CTIMER0 in the example above, that the interrupt would indeed be fired as soon as the interrupt is enabled. Using DisableIRQ(), however, disables interrupts for all channels on the CTIMER, while CTIMER_DisableInterrupts() allows individual channels to be disabled without affecting the other channels. 

0 项奖励
回复
1 回复

432 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

Regarding your question, interrupt events will be lost as long as CTIMER interrupts are disabled.

Hope it helps you.

Have a nice day!

0 项奖励
回复