AnsweredAssumed Answered

KL27z VLPS mode

Question asked by Rafael Toledo on Mar 28, 2016
Latest reply on Jun 2, 2016 by Rafael Toledo

Hi, I'm using kl27z256 with KDS3.0.0, and KSDK 1.2.0, and must use deep sleep mode. I want to know the correctly way to disable and reenable the modules/components in my project with PEx, this is necessary to drop current consumption. This is what i'm trying:

-VLPS mode (very low power mode) to deep sleep, Configured with callbacks before and after.

this working fine,but the current is around 14mA,

disabling the components used in project, the current consumption is 100uA.

 

//before sleep

power_manager_error_code_t pwrMan1_StaticCallback0(power_manager_notify_struct_t * notify, power_manager_callback_data_t * dataPtr)

{

    power_manager_error_code_t status = kPowerManagerSuccess;

 

  UART_DRV_Deinit(FSL_UART);

  USB_Class_HID_Deinit(hid1_HidHandle);

  PIT_DRV_Deinit(FSL_PIT);

  SPI_DRV_MasterDeinit(FSL_SPI);

  SPI_DRV_MasterDeinit(FSL_SPI_ADS);

  ADC16_DRV_Deinit(FSL_ADC);

 

    return status;

}

//after sleep

power_manager_error_code_t pwrMan1_StaticCallback1(power_manager_notify_struct_t * notify, power_manager_callback_data_t * dataPtr)

{

    power_manager_error_code_t status = kPowerManagerSuccess;

 

    LPTMR_DRV_Stop(FSL_LPTMR1); //stop timer

    PE_low_level_init();

 

    return status;

}

 

But when returning from VLPS, the UART module don't works,

note the use of the  PE_low_level_init() to reenable the components.

Is this correct?

Outcomes