On Thu, 30 Jan 2003, Josh Koffman wrote: > You can easily change the duty cycle, just reload the counters when the > edge counter overflows. I think (I haven't looked at Scott's comments > recently) the difficult but possible mod was to allow different periods > for each output. Changing the PWM duty cycle on the fly is trivial. I've made the change and gave Josh a copy. I still haven't put the code on my web page though. As it stands, the PWM routine takes 23 cycles for 8 outputs. If you only need three, then that reduces by 10 cycles. Scott -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body