Hi,
is the following code snippet sufficient to set the module to VLPPS mode( S23k148 )
/* Configure sleep mode */
/*Set Sleep mode SEVONPEND=0 SLEEPDEEP=1 SLEEPONEXIT=0 */
SCB_SCR = (uint32) ((0uL<< 4) | (1uL<< 2) | (0uL <<1 )) ;
//SMC_PMPROT = 0uL;
SMC_PMPROT = (uint32) ((1uL << 5)); //koor added: allow entry to VLPS
//SMC_PMCTRL = (uint32) ((0uL<<5) | (0uL<<3) | (0uL << 0));
SMC_PMCTRL = (uint32) ((0uL<<5) | (0uL<<3) | (2uL << 0));// koor added: SET TO VLPS MODE
//SMC_STOPCTRL = (uint32) (2uL << 6); /* Set Stop 2 mode.*/
Thanks,
Koorosh Hajiani
Hi hajianik,
For none SDK based project, you can refer the Run_to_VLPS and VLPR_to_VLPS functions.
AN5425, Power Management for S32K14x – Application note (REV 1)
and AN5425SW.zip can be download at S32K1 Microcontrollers for General Purpose.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hello Robin,
In VLPS mode, I also encountered a low power consumption current of 4mA instead of less than 1mA. What is the reason?