cancel
Showing results for 
Search instead for 
Did you mean: 

2 channel PWM with 90 degree phase shift

SEMad
Associate III

Hi.

is it possible to create such a two channel pwm with any timer?

(in output compare mode the falling edge of the first channel overlaps on rising edge of the second channel overlaps, but its not good for my purpose)

0693W00000JOHPcQAP.png 

thanks.

5 REPLIES 5
KnarfB
Principal III

There is a "combined PWM mode" for newer chip series which was recently discussed here.

hth

KnarfB

Yes, use PWM center-aligned mode.

Sorry, but I don't see center alignment in the above diagram. Combined mode is something different.

> Sorry, but I don't see center alignment in the above diagram.

This

0693W00000JOMiYQAX.png 

and the two channels in different PWM mode (or one of them inverted by TIMx_CCER.CCxP)

Of course, you can always run two timers synchronized using master-slave connection, even in STM32 which don't have Combined mode in TIM.

JW

can you plz tell me that how will i do this