Hi all.
I'm beginner in Kinetis K64.
I have some questions about FTM (PWM) of Kinetis K64.
Q1
There are 4 FTMs (PWM) on Kinetis K64 (FTM0..FTM3) and each FTM has 8 channels.
Can each channel generate different clock signals?
(ex. FTM3 ch0=10Hz, FTM3 ch1=20Hz, FTM3 ch2=30Hz...)
Q2
If answer of Q1 is yes, how should I control registers to generate different clock signals?
Regards,
Kiyoshi
Solved! Go to Solution.
Hello Kiyoshi,
Each FTM instance [0:3] is capable to generate a different frequency but each channel for an instance is capable to generate a different duty cycle with the same frequency. The duty cycle is changed with the register FTMx_CnV as is mentioned in the section 40.4.6 and 40.4.7 in the Reference Manual.
Best regards,
Earl Orlando.
/* If this post answers your question please click the Correct Answer button. */
Hello Kiyoshi,
Each FTM instance [0:3] is capable to generate a different frequency but each channel for an instance is capable to generate a different duty cycle with the same frequency. The duty cycle is changed with the register FTMx_CnV as is mentioned in the section 40.4.6 and 40.4.7 in the Reference Manual.
Best regards,
Earl Orlando.
/* If this post answers your question please click the Correct Answer button. */
Hi, Earl.
Thank you for your reply!!
I'll check the manual.
I'd like to control several motors by Kinetis.
If you have any idea to control some motors with several freq signals,
Please let me know.
Best regards,
Kiyoshi
Hello Kiyoshi,
You can use the different FTM instances and additionally to use two different frequencies (ratio 2:1) you can read about the differences in the Center-Aligned PWM (CPWM) and the Edge-Aligned PWM (EPWM) modes. The Center-Aligned PWM has the double of the Edge-Aligned PWM period.
Please let me know if this information is useful or if I can do anything else for you.
Best regards,
Earl.
Hi, Earl.
Thank you very much for your quick reply again!
I'll read the manual and try to control motors using my FRDM-K64F.
Best regards,
Kiyoshi
Excellent!!
If any other questions arise, please feel free to contact us at any time. Thanks so much for contact the Freescale Technical Support.
Regards,
Earl.