Skip to main content
jon1280
Visitor II
January 20, 2019
Question

Sine Pulse Width Modulation using STM32F407VG

  • January 20, 2019
  • 2 replies
  • 896 views

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
January 20, 2019

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

I don't Cube.

JW

S.Ma
Principal
January 20, 2019

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.