AnsweredAssumed Answered

Custom PWM Triggering in Center Aligned Mode

Question asked by ChrisO on Sep 6, 2014
Latest reply on Sep 6, 2014 by ChrisO
Hi, I am new to ST.

I have a STM32F405 MCU.

Can someone please advise on the best way to customise PWM Output. I need to create a wave that is 180 degrees out of phase both with the same Frequency, Duty Cycle adjustable and also be adjustable for any necessary Frequency Changes.

180%20Degree%20Phase%20Shift.png

I have looked at Dead Time insertion and got about a 2 degree change, unfortunately this is not enough.

Other options I am looking at are Encoder Mode, I cant get any output in this more I am guessing because its looking for an external Trigger.

I am also looking at Center Aligned mode.

I am wanting to use Timer 8 Channel 1 and Channel 2 to be able to achieve this, is this possible using the same Timer?

I am unfortunately a little lost and would appreciate some advice.

Thank You.

  Chris

P.S: Pin Inverting does not achieve what I need as the wave is not 180 degrees out of phase if Duty is adjusted.

Outcomes