On Mon, 20 May 2002, Gordon Varney wrote: > I am using a PIC12C671 at 10Mhz. I need a pwm to run as fast as possible. (What frequency? I don't care) Just as long as > I can adjust the PWM from 20 - 99% duty cycle. Ok maybe 98%, I will take 99% if I can get it. The timer0 will determine > when to stop. Here's a software PWM that will run on the 12-bit core, give 0 to 100% duty cycle and has single instruction cycle resolution: http://www.dattalo.com/technical/software/pic/pwm256.txt There's roughly 150 cycles left over per 256 cycles for other things (like reading your A/D). Scott -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body