Output signal of FTM channels

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

Output signal of FTM channels

Jump to solution
1,854 Views
kiyoshimatsuzak
Contributor III

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

0 Kudos
1 Solution
1,179 Views
EarlOrlando
Senior Contributor II

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. */

View solution in original post

0 Kudos
5 Replies
1,180 Views
EarlOrlando
Senior Contributor II

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. */

0 Kudos
1,179 Views
kiyoshimatsuzak
Contributor III

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

0 Kudos
1,179 Views
EarlOrlando
Senior Contributor II

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.

pastedImage_1.png

pastedImage_2.png

Please let me know if this information is useful or if I can do anything else for you.

Best regards,

Earl.

1,179 Views
kiyoshimatsuzak
Contributor III

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

0 Kudos
1,179 Views
EarlOrlando
Senior Contributor II

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.

0 Kudos