K82 : wakeup from LLS3 mode

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

K82 : wakeup from LLS3 mode

772件の閲覧回数
EugeneHiihtaja
Senior Contributor I

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

0 件の賞賛
返信
1 返信

685件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi Eugene,

If previous mode is VLPR and you want going to RUN mode, you should call this function. Otherwise, this function have no impact to system.

Regards,

Jing

0 件の賞賛
返信