Is it possible to set two different features in a single FTM module?

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

Is it possible to set two different features in a single FTM module?

1,741 Views
symplesky
Contributor II

Hello,

Is it possible to set two different features in a single FTM module, like set channel 0 as PWM and set channel 1 as IC?

 

Thank you!

0 Kudos
Reply
4 Replies

1,725 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @symplesky,

It has been recently discussed here:

https://community.nxp.com/t5/S32K/Use-an-FTM-IC-device-to-set-several-channels-as-output-compare/m-p...

With SDK 4.0.x, you should be able to use PWM and IC drivers on a single FTM module.

 

Regards,

Daniel

0 Kudos
Reply

647 Views
Mudkip
Contributor I

Could you provide an update on how this would be done?

0 Kudos
Reply

1,715 Views
symplesky
Contributor II

Thank you @danielmartynek ,  my SDK version is 4.0.2 and RTD is 3.4, so what should I do?

1631193582(1).png

 

Best Regard,

Sym

0 Kudos
Reply

1,701 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Sym,

The configuration tool does not allow that, but as a workaround, you can change

#define INST_FLEXTIMER_IC_1

and

#define INST_FLEXTIMER_PWM_1

to the same number that represents the number of the FTM module.

in peripherals_flexTimer_pwm_1.h and peripherals_flexTimer_ic_1.h

 

Regards,

Daniel

0 Kudos
Reply