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
Also, at the beginning of the corresponding c-file to the driver's header-file there is always a section "##### How to use this driver #####". Have a look at that section in the "stm32f4xx_hal_tim.c". I think it mentions some function-calls which are missing in your code.
Thanks for your advices, I'll let you know!