Skip to main content
jon1280
Visitor II
Jan 20, 2019 11:46 AM UTC
Question

Sine Pulse Width Modulation using STM32F407VG

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.

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
Jan 20, 2019 12:22 PM UTC

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

I don't Cube.

JW

S.Ma
Principal
Jan 20, 2019 12:39 PM UTC

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.