S12ZVCA InputCapture Question

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

S12ZVCA InputCapture Question

454件の閲覧回数
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 返信

435件の閲覧回数
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 件の賞賛