AnsweredAssumed Answered

KL24z Wake up from VLLS3

Question asked by Mike Conover on Jan 26, 2015
Latest reply on Jan 28, 2015 by Yasuhiko Koumoto

I am able to put the KL24Z processor into deep sleep with no problems. However, I am having trouble waking up from deep sleep. I am trying to use the low power timer to wake up every minute from deep sleep. Below is my code to get into VLLS3. How do you wakeup from deep sleep???

 

SMC_PMPROT = SMC_PMPROT_AVLLS_MASK;

SMC_PMCTRL &= ~SMC_PMCTRL_STOPM_MASK ;

SMC_PMCTRL |= SMC_PMCTRL_STOPM(0x4) ;

SMC_STOPCTRL = SMC_STOPCTRL_VLLSM(3);

SCB_SCR |= SCB_SCR_SLEEPDEEP_MASK;

asm("WFI");

 

Thanks a lot,

Mike

Outcomes