I have set up the multiple PWM operation so that channel 0 is the master and 3 other channels to be the slaves. I’ve used the slave channels to set the duty cycle and the master channel to define the period. This technique has allowed me to produce three PWM signals. They are all in phase, however I’m attempting to get them to be out of phase. Since I don’t have much expertise programming microcontrollers, I’m not sure if this can even be accomplished.
I have developed a function that uses an interval timer at one of the channels to create a delay for a specified amount of milliseconds, causing a pause before the next pulse is generated after each one is generated. Unfortunately, this didn’t go as planned, and the resulting PWM signals were distorted.
Frederick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.