Quote Originally Posted by Darrel Taylor View Post
Yes, turn off the WDT ... and the BOR ... and the PORTAB Pull-Ups.
400uA is too high for sleep mode.

But the real problem is with ANSEL.
As trivial as it might seem, I think this will make a huge difference.

In the Main loop ...
Code:
ANSEL= %11110011
I have the demo board he's using, and found changing Tris to TRISA = %00001000 instead of all inputs helped too. Pinned out the ports and found the Ports A & B to be hot without turning WPUA & WPUB off, but as no load didnt affect sleep draw all that much, the thing is my trusty ElCheapo low impeadance $6.00 Chinese meter gives me much higher numbers than 400 µA , but it does indicate the change reliably.