9 years, 7 months ago.

Start multiple fastpwm at the same time

Hi ,

Is there a way to start multiple fastpwm at the same time? (for STM32F401RE especially)

Question relating to:

Erik - / FastPWM Featured
Library that allows for higher resolution and speed than standard mbed PWM library using same syntax (drop-in replacement). pwm, resolution, Speed

How do you mean start them at the same time? You should be able to make multiple without problems. Or do you mean with a fixed phase relation?

posted by Erik - 11 Apr 2015

Hi Erik, You are right. I want them to have a fixed phase relation. You found a better word for me. Thanks.

posted by Peter Xian 11 Apr 2015

1 Answer

9 years, 7 months ago.

If you use PWMs with the same timer (on the pinout diagram the first number is the timer they use), they will have their falling edge at the same moment. But no FastPWM does not contain options further to synchronize different timers, you will need to dive into the user manual to see if that is possible for the F401.

Accepted Answer