Hello, I am working on S32k144 EVB. I am using FTM3 module for pwm generation and FTM2 for input capturing. I need to measure the frequency of the pwm signal generated from FTM3, channel 0 of FTM2 is used for capturing.
But, the issue here is that i am unable to control the duty of the pwm from FTM3 while the code is running, it is sticking to the duty that is initially configured. If i do not initialize the Input capture module i am able to control the pwm duty.
I want to use both the functionalities, can someone please help me resolve this issue?
please take a look at this post which using two FTM instances, one for generate PWM and another for capture PWM
hope it could be helpful to you.