I have a board containing a PIC16 (see datasheet here) that is drawing too much current. We're able to measure the current draw for the board as a whole, but we can't measure the current draw for every single component.
Our theoretical calculations put the current draw at 300uA, but we are seeing a 500uA. To debug for this 200uA overshoot, we want to put the PIC in it's lowest possible current mode. How can the PIC be put in it's lowest power mode?
What I have done is disable all the flags (such as brown-out reset, stack overflow/underflow reset, etc.) and put the PIC to sleep at the first instruction. Should I put the PIO pins in a specific state? Are there peripherals that are enabled by default and should be turned off?