S12ZVCA InputCapture Question

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S12ZVCA InputCapture Question

793 次查看
s_kim1
Contributor III

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

000.png

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,

标记 (3)
0 项奖励
1 回复

774 次查看
danielmartynek
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 项奖励