I'm working on a DC to AC three phase inverter, and I've already figured out how to configure the microcontroller to generate complementary PWM outputs on three synchronized channels. What I'm trying to figure out is how to generate an interrupt at the end of a PWM period so that I could use that interrupt to formulate an ISR where I could increment a counter so that I could change the duty cycles of each channel. Can anyone help me with this?