Werner Terreblanche wrote: > Yes I am switching the battery with a switch. I really hoped that > there would have been some sort of software solution, because I've > already got a bunch of PCB's made. Oops. Oh, well. There are still some things you can do. The first is to change your switch. If you don't use much more than 50 mA you can try a switch with gold crosspoint contacts. You don't need the gold, but the mechanism of these switches is usually of higher quality, with more attention to the details of the switching transition. You could also contact your switch manufacturer for advice, which I'm sure they'ed be happy to give. As a last resort, try increasing the cap on the power input (you do have a cap on the PIC side of the switch, yes?). -- Tom Rogers