s32k ftm0 input capture and pwm output

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

s32k ftm0 input capture and pwm output

Jump to solution
362 Views
sandeepc
Contributor IV

hi i need to know  whether we can genrate pwm and input capture by FTM0 

in our project PTE8 is used for inout capture and PTE9 is used for pwm output control for buzzer the PTE9 and PTE8 are connected to FTM0 module so can i configure FTM0 input capture and as well as pwm output.?

0 Kudos
1 Solution
354 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @sandeepc,

This is possible, but there is only one FTM counter per FTM instance though.

That means that the period of the PWM signal is the period in which the IC channel overflows.

 

There is this non-SDK example in S32DS IDE 2.2.

S32K144_Project_FTM

danielmartynek_0-1690461886738.png

 

The SDK does not allow using two FTM drivers (e.g. ftm_pwm and ftm_ic) on the same FTM instance.

Because both the drivers initialize the whole FTM module not just the channels.

 

Regards,

Daniel

 

View solution in original post

0 Kudos
1 Reply
355 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @sandeepc,

This is possible, but there is only one FTM counter per FTM instance though.

That means that the period of the PWM signal is the period in which the IC channel overflows.

 

There is this non-SDK example in S32DS IDE 2.2.

S32K144_Project_FTM

danielmartynek_0-1690461886738.png

 

The SDK does not allow using two FTM drivers (e.g. ftm_pwm and ftm_ic) on the same FTM instance.

Because both the drivers initialize the whole FTM module not just the channels.

 

Regards,

Daniel

 

0 Kudos