k64 pwm output pin

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

k64 pwm output pin

跳至解决方案
1,201 次查看
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 解答
628 次查看
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 回复数
629 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

628 次查看
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.