Output signal of FTM channels

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Output signal of FTM channels

ソリューションへジャンプ
1,873件の閲覧回数
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 件の賞賛
1 解決策
1,198件の閲覧回数
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 件の賞賛
5 返答(返信)
1,199件の閲覧回数
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 件の賞賛
1,198件の閲覧回数
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 件の賞賛
1,198件の閲覧回数
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,198件の閲覧回数
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 件の賞賛
1,198件の閲覧回数
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 件の賞賛