Here is an example of using his Instant Interrupt code to perform SPWM. I am cheating here a bit, using the R/C receiver as my 20ms timer. But it gives you an idea how to pulse your pins for a set amount of time. It uses one interrupt timer to SPWM out to 4 pins. http://www.scalerobotics.com/stamps/84-projects/pwm/71-pwm-passthrough.html
Edit: Mybad, I forgot about Mibam. If you are interested in PWM for lighting/led control, you can use Mibam, basically a SPWM for smooth lighting effects on multiple pins. See: http://www.picbasic.co.uk/forum/showthread.php?t=10564
Bookmarks