From the datasheet, the On mode with all blocks idle draws 2.6 uA.
In my code for the PCA10001, I immediately set:
void sleep(void) { __SEV(); __WFE(); __WFE(); }
I notice that the current is actually 45 uA (which is better without the sleep(), but certainly not 2.6 uA. Am I setting the processor to sleep correctly? Also why is that I see people calling WFE twice? Is SEV necessary?
The code is not doing anything else at the moment, in the future I want to just have a simple timer interrupt wake the system up to do calc and then go back to sleep, which seems to require at least ON mode for timers to be active.
Thanks