FRDM-KL26Z development board: are the two possible TPM interrupts individual?

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

FRDM-KL26Z development board: are the two possible TPM interrupts individual?

Jump to solution
527 Views
gabrielflueran
Contributor I

Hello everybody.

I am currently working on a FRDM-KL26Z development board  and trying to implement an input signal's Dutycycle measurement using the INPUT CAPTURE function of a TPM. However, the same TPM may have some channels configured for PWM signal generation in the meantime, using its EPWM function.
By my question I mean, if I set the TOIE flag and a CHnIE flag, will both of the interrupts (timer overflow & channel interrupt) be generated and possibly be treated in the same handler?

Thank you in advance for your responses.
Gabi F

Labels (1)
0 Kudos
1 Solution
338 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Gabriel Flueran:

The two interrupts are independent, so they both can be activated.

Actually the interrupt vector is the same, so the interrupt handler must be shared and you need to check the flags to see which interrupt triggered.

I hope this helps.


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
339 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Gabriel Flueran:

The two interrupts are independent, so they both can be activated.

Actually the interrupt vector is the same, so the interrupt handler must be shared and you need to check the flags to see which interrupt triggered.

I hope this helps.


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos