LPC54102 CTIMER0 Interrupt Disabling

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

LPC54102 CTIMER0 Interrupt Disabling

402件の閲覧回数
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 返信

372件の閲覧回数
_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 件の賞賛
返信