looking at your diagrams, seems like you could ..... set up the PWM module for 1KHZ as normal, for the 20HZ part, set up a timer interrupt for the low freq maybe with a couple of roll overs for lower freq.... then on tmr int, only need to switch the Q's and add a little dead time on each switchover.
Bookmarks