Hi Community
I try to modified SDK ver. 2.9.0 example "input_capture" to let the FTM2 can be input capture and output PWM waveform.
Base on user manual, I know when the edge was detected which I configured, the module will put the CTN value to CnV.
So, I let the FTM2_CH4 output 21.5 KHz PWM and FTM2_CH3 input capture.
The purpose is I need to know the duty and the same time the PWM output can work.
My FTM input clock are system clock at high speed mode (168MHz).
In my test, FTM2_CH4 output to FTM2_CH3, and set break point to check CnV value.
I Monitor register got the CnV same as CTN value in first time interrupt trigger , but most time I got CnV value 4.
I thought it should be same CnV value with FTM2_CH4, but it seem wrong!
Is my configuration wrong? I attachment my code please help me to check it.
PWM input capture seem only detect once.
Thanks for your time for read and help.