LPC54102 CTIMER0 Interrupt Disabling

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC54102 CTIMER0 Interrupt Disabling

361 Views
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 Kudos
1 Reply

331 Views
_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 Kudos