k64 pwm output pin

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,480件の閲覧回数
hotashu
Contributor III

hello expert,

 

in the past i used K64 on KDS+processor expert. i can set PTC2 as output PWM wave.

64746_64746.pngpastedImage_0.png

 

 

now i use K64 on KDS+KSDK processor expert, using fsl_ftm component, (because no PWM component supportd in KSDK processor expert. ) . but i found PTC2 is not avaiable for PWM output in fsl_ftm.

 

64747_64747.pngpastedImage_1.png

 

please instruct me how to use KDS3.0+KSDK processor expert to output pwm on PTC2.

 

thanks.

ラベル(1)
0 件の賞賛
返信
1 解決策
907件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

hi,

I think Earl is correct.

In addition, I made a demo code use FRDM-K64 + KSDK processor expert. see attached.

PWM output PTC2, FTM0_CH1, frequency is 10Khz. duty cycle is 50%.

this is the wave output from PC2 pin from scope:

pastedImage_0.png


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

2 返答(返信)
908件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

hi,

I think Earl is correct.

In addition, I made a demo code use FRDM-K64 + KSDK processor expert. see attached.

PWM output PTC2, FTM0_CH1, frequency is 10Khz. duty cycle is 50%.

this is the wave output from PC2 pin from scope:

pastedImage_0.png


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

907件の閲覧回数
EarlOrlando
Senior Contributor II

Hello Hotas,

Please try with the FTM0_CH1 instead of the FTM0_CH0, is the PTC2 pin available?

Best regards,

Earl.