Kinetis FTM PWM support

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

Kinetis FTM PWM support

ソリューションへジャンプ
2,206件の閲覧回数
lucas_zhou
Contributor I

Hi all,

     The FlexTimer module (FTM) is a two to eight channel timer that supports the generation of PWM signals.

     I have a question that the frequency of PWM can set in different value each channel?

     Thanks in advance,Lucas.

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
1,056件の閲覧回数
apanecatl
Senior Contributor II

Hi Lucas, the Flextimer module has only 1 prescale factor selection register per module hence all channels will run at the same frequency

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
1,056件の閲覧回数
JimDon
Senior Contributor III

Pedro is correct, but the real problem with what you want to do is that there is only one modulo counter per  module.

You set a register that causes a counter to reset at a certain count, so the overall period is determined by the clock/pre-scaler and the reset value in the modulo register. The PWM channels have a compare register that is compared to the counter value and set/reset the PWM outputs at counter reset and the compare value.

0 件の賞賛
返信
1,056件の閲覧回数
lucas_zhou
Contributor I

Hi Jim

Does it means i can use configure PWM outputs in different frequency in each channel if i configure compare register?

Thanks !!

0 件の賞賛
返信
1,056件の閲覧回数
JimDon
Senior Contributor III

The compare register for each channel only set the duty cycle for that channel.

The single modulo register for the single counter determines the frequency,

1,057件の閲覧回数
apanecatl
Senior Contributor II

Hi Lucas, the Flextimer module has only 1 prescale factor selection register per module hence all channels will run at the same frequency

0 件の賞賛
返信
1,056件の閲覧回数
lucas_zhou
Contributor I

Hi Pedro

I get it ! Thank you!!

0 件の賞賛
返信