Dave Turner wrote: > Hi again guys, > > I am currently working on a software PWM. I got it to work fine with > 1 pin, and now I'm extending it to 8 pins. Dave, Rather than answer your question about how one should set a variable bit in a register, I'll instead point you to another 8-pin PWM routine: http://www.dattalo.com/technical/software/pic/pwm8.asm Scott -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist