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.
I'm not sure if I understand.
Please correct me if I'm wrong and elaborate on the description.
Yellow signal is the PWM, PP0
Green signal is the IC, PT4
So, you should connect PP0 to PT4.
And since the two signals are different, you did not connect the two pins together.