s32k148 VLPS sleep mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s32k148 VLPS sleep mode

1,080 Views
hajianik
Senior Contributor I

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
 

0 Kudos
Reply
2 Replies

1,070 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi hajianik,

For none SDK based project, you can refer the Run_to_VLPS and VLPR_to_VLPS functions.

AN5425SW S32K148_PowerManagement_VLPS_RUN.png

Table 40-2. Power mode transition triggers.png

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.
-------------------------------------------------------------------------------

1,049 Views
1090097669
Contributor III

Hello   Robin,

In VLPS mode, I also encountered a low power consumption current of 4mA instead of less than 1mA. What is the reason?

0 Kudos
Reply