> > As for the banking, according to the .inc file all of those CCP > > registers are in bank 0, so as long as you're entering the routine in > > bank0 that should be OK > > No, it's not. First, we don't know what bank PWM_TEMP and > CCP1_TEMP are in But Harry does. And so if all the registers are in bank 0 then that won't affect the functionality of the routine. Yes, I appreciate that it's bad practice to assume, but I think Harry has got the point by now -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist