How to setup a timer interrupt using FTM in MBDT

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

How to setup a timer interrupt using FTM in MBDT

91件の閲覧回数
Yao_Hailin
Contributor I

I use S32K148 in MBDT, I want a setup a FTM timer interrupt, but cant find suiable blocks, seems all are FTM PWM, no timer interrupt.

MBDT versio is 4.30

MBDT 

S32K1 

0 件の賞賛
返信
1 返信

44件の閲覧回数
SorinIBancila
NXP Employee
NXP Employee

Hello, 

 

One way to use FTM timers with S32K1 blocks is to use the FTM PWM Config and to disable all the PWM Channels. 

SorinIBancila_0-1779796540140.png

 

Then, enable the reload interrupt from the "Reload Settings" tab.

SorinIBancila_1-1779796581931.png

 

Finally, to handle the interrupt, the "FTM_Ovf_Reload_ISR" block can be used .

SorinIBancila_2-1779796626749.png

 

 

 

If this method doesn't suit you, there are also other timers available:

  • Periodic_Interrupt_Timer (can be found in "Utility Blocks" category).
  • LPTMR (can be found in "Core and System Blocks/LPTMR Blocks")

 

Best regards,

Sorin Bancila

 

 

0 件の賞賛
返信