Kinetis FTM PWM support

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Kinetis FTM PWM support

跳至解决方案
1,932 次查看
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 解答
782 次查看
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 回复数
782 次查看
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 项奖励
782 次查看
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 项奖励
782 次查看
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,

783 次查看
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 项奖励
782 次查看
lucas_zhou
Contributor I

Hi Pedro

I get it ! Thank you!!

0 项奖励