cancel
Showing results for 
Search instead for 
Did you mean: 

Sine Pulse Width Modulation using STM32F407VG

jon1280
Associate

Hi all, I am trying to program a Sine PWM using STM32F407VG, but i only got the complementary PWM instead. Can some kind person tell what can i amend or add? attached is my code. I am using ac6 system workbench for coding. Thanks.

2 REPLIES 2

What do you mean by "complementary PWM"? Where do you change the PWM fill rate?

I don't Cube.

JW

S.Ma
Principal

Better have a drawing of the waveform and some timing information.

Very fast PWM frequencies can be achieved using timer in toggle mode updated by DMA writing from circular compare table, similar to a burst pulse generation with control of each edge.