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.?
Solved! Go to Solution.
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
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
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
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