Hello,
I want to use InputCapture.
I want to receive 2kHz PWM signal as Capture.
And I want to output that value as pwm. (2kHz PWM Output)
I use a s12zvca mcu.
But I think the Capture is not working properly.
please see the picture below

The yellow line is the PWM Output I made.
The green line is the PWM Input.
I am sending the InputCapture value as it is as a PWM signal.
The PWM value I output and the PWM value I receive are different.
Please let me know what I am doing wrong.
I'll upload the code.
Please point out what I did wrong.
thanks,