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

跳至解决方案
675 次查看
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 解答
656 次查看
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 回复
657 次查看
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 项奖励
回复