Two pwm out of phase

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

Two pwm out of phase

跳至解决方案
3,778 次查看
EmanueleP
Contributor II

Hi, i have a kea 128 and i want to generate 2 out of phase PWM signals. I have selected FTM2 ch0 and ch1 for my purpose. PWM signals duty cycle must be 60%. Could you help me please?

 

0 项奖励
回复
1 解答
3,683 次查看
EmanueleP
Contributor II

I solved the problem by setting a channel with ELSnA = 1. So the output channel become 1 at the match up, to the counter overflow

在原帖中查看解决方案

0 项奖励
回复
7 回复数
3,746 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Thank you so much for your interest in our products and for using our community.

In S32 Design Studio for ARM there is an example for PWM (FTM_PWT_kea128), which can serve as a reference.

Hope it helps you. Please let me know if you have more questions about it.

Have a nice day!

0 项奖励
回复
3,741 次查看
EmanueleP
Contributor II

 Thanks for your help, but i'm trying to configure the two PWM signals as shown in the picture. 

I don't know if this type of configuration is supported by a single FTM module or if i'm forced to use 2 FTM modules: one channel of FTM0 in edge-aligned mode and one channel of FTM1  in center-aligned mode.

Thanks.

Shift phase.jpg

0 项奖励
回复
3,717 次查看
_Leo_
NXP TechSupport
NXP TechSupport

It is possible to configure the channels of the same FTM module differently. So yes, you only need one module.

However, for what you are looking for, it may be more convenient to make a Phase-shift PWM signal, for more details about this please refer to section 3.4 of application note AN5142.

Hope it helps you.

0 项奖励
回复
3,711 次查看
EmanueleP
Contributor II

So, in this way i have to use 4 channels? In this way i lose 2 channel.

Thank you for your support.

0 项奖励
回复
3,704 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Sorry, could you clarify your question please?

0 项奖励
回复
3,687 次查看
EmanueleP
Contributor II

I would like to use two FTM channels to have 2 output singals with different phase. To use the application note method I need 4 FTM channels if I'm not mistaken. Now i'm try tu use ELSnA on one channel to set Low-true pulses (set Output on match-up) (26.3.6 chapter of kea128rm manual).

0 项奖励
回复
3,684 次查看
EmanueleP
Contributor II

I solved the problem by setting a channel with ELSnA = 1. So the output channel become 1 at the match up, to the counter overflow

0 项奖励
回复