Greetings,
I am using the MK22FN256VLH with KDS v3.2 and Processor Expert.
I am setting the Micro controller to sleep via Cpu_SetOperationMode(DOM_SLEEP, NULL, NULL); However, I am still get a lot more current then I would be expecting while it sleeps. Do I need to set all I/O pins possible to low? If so, is there a simple masking way to do this?
Thanks!
Hello,
Actually what you see is normal. It can been know from the manual that the SLLEP mode is equivalent to wait mode and in this case peripherals is functional while the core is in sleep mode, NVIC remains sensitive to interrupts; peripherals continue to be clocked.
Please use SLEEP DEEP mode instead which " Places chip in static state. Lowest power mode that retains all registers while maintaining LVD protection. NVIC is disabled; AWIC is used to wake up from interrupt; peripheral clocks are stopped."
What is AWIC? I currently use a Low Power timer and once that reaches the value I try and wakeup. I have issues with the SLEEP DEEP mode.
Any update?
Is there anything I can reference that would lead me to some commands that could do this? Even if it is one port at a time?