S12ZVCA InputCapture Question

Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12ZVCA InputCapture Question

Contributor III

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.


Tags (3)
0 Kudos
1 Reply

NXP TechSupport
NXP TechSupport

Hello @s_kim1,

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.


Thank you,

BR, Daniel

0 Kudos