How to setup a timer interrupt using FTM in MBDT

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

How to setup a timer interrupt using FTM in MBDT

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

34 Views
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 Kudos
Reply