Starting Multiple PWMs simultaneously

Question: How to start a pair of PWMs at the same time?

 

Answer:

The best way to start a pair of PWMs at exactly the same time is to use a timer as the clock for the PWMs. In this way, you can do all of setup for the PWMs, including the start of the PWM, and then start the timer. Therefore, both of the PWMs will startup at the same time and be synchronized together.