How to setup a timer interrupt using FTM in MBDT

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to setup a timer interrupt using FTM in MBDT

92 次查看
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 回复

45 次查看
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 项奖励
回复