AnsweredAssumed Answered

K82 : wakeup from LLS3 mode

Question asked by Eugene Hiihtaja on Dec 5, 2018
Latest reply on Dec 6, 2018 by Jing Pan

Hello !

 

When MCU wake up from LLS3 mode , some LLWU interrupts should be cleaned as it mentioned in example.

 

But what about waiting some time for clock stabilisation ?

 

power_user_config_t targetConfig;
targetConfig.enableLpoClock = true;
targetConfig.mode = kAPP_PowerModeLls;
PM_PowerModeSwitch(&targetConfig, NULL);
//
// ... LLS3 ....
//
// Wakeup -> continue execution
//
// LLS3 –> RUN — 6.3 μs, see specification for exact clocks and etc.
//

/* Wait for PLL lock. MCG in PEE mode in RUN. */
while (!(kMCG_Pll0LockFlag & CLOCK_GetStatusFlags()))
{
}
CLOCK_SetPeeMode();

/* Power mode change. */
SMC_SetPowerModeRun(SMC); // No need ?
while (kSMC_PowerStateRun != SMC_GetPowerModeState(SMC))
{
}

 

Does this red color part is right one ?

 

Regards,

Eugene

 

Outcomes