This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sinusoidal PWM

Hello,

I'm tyring to program a STM32F4 (with ARM F4) board to generate a sinusoidal PWM, that is a sequence of pulses with variable width that, once filtered by a LPF, gives a sinusoid.

I was told the best way to get it is by generating a sequence of single pulses synchronized to timer by interrupts.

I've tried several solutions but I'm not good at managing interrupts.

Do you have any idea how to achieve this goal?
Can you attach a piece of code where it's explained how to do it?

Thanks in advance! ;)

Mara