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

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

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

ソリューションへジャンプ
611件の閲覧回数
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

ラベル(1)
0 件の賞賛
1 解決策
422件の閲覧回数
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 件の賞賛
1 返信
423件の閲覧回数
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 件の賞賛