How to use different frequencies on FTM channels of same FTM instance with S32K144 MCU

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

How to use different frequencies on FTM channels of same FTM instance with S32K144 MCU

ソリューションへジャンプ
673件の閲覧回数
gkunalupta
Contributor III

i am using S32K144 MCU and using FTM peripheral instance 0.

I want to generate different frequencies on FTM0_CH0 and FTM0CH1.

But what i observed, if i change frequency/period of one channel by API: Ftm_Pwm_Ip_UpdatePwmPeriodAndDuty(FTM_INSTANCE_0, channel0, 35000, 12000, TRUE );

then frequency of other channel also gets changed.

 

I get it that MOD register for all channels is same. Thus changing MOD value for changing the frequency will change the period of whole FTM instance.

 

But what if i want to have different frequencies on channels of same FTM instance.

How can i achieve that?

0 件の賞賛
返信
1 解決策
654件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@gkunalupta

But what if i want to have different frequencies on channels of same FTM instance.

No, this can not be done in same FTM instance.

https://community.nxp.com/t5/S32K/How-to-generate-different-frequency-on-different-channel-of-same/t...

 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
655件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@gkunalupta

But what if i want to have different frequencies on channels of same FTM instance.

No, this can not be done in same FTM instance.

https://community.nxp.com/t5/S32K/How-to-generate-different-frequency-on-different-channel-of-same/t...

 

0 件の賞賛
返信