k64 pwm output pin

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

k64 pwm output pin

Jump to solution
1,470 Views
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.

Labels (1)
0 Kudos
Reply
1 Solution
897 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

2 Replies
898 Views
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!
-----------------------------------------------------------------------------------------------------------------------

897 Views
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.