I use Darrel Taylor's DT_INTS-14 (SPWM_INT - Multiple Software PWM) to achive this very well.


http://darreltaylor.com/DT_INTS-14/SPWM.html