2 options which I can see are to go for a 40MHz pic and use the HPWM, or use software PWM of your own design (If you can accept the program running in a long loop. If yoiu need to pic to perform other tasks such as read buttons or get an A/D result, then wait for the longest PWM period (either high or low) and do the extra work then, making sure you return to the PWM code before a timer elapses for example.
Bookmarks