This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1230H6PM: Is there any code of TM4C1230H6PM under deep sleep?

Part Number: TM4C1230H6PM
Other Parts Discussed in Thread: TM4C1294NCPDT, EK-TM4C1294XL

Dears:

Could you kindly help to provide the code of TM4C1230H6PM under deep sleep?

The customer's code as below, is there any issue about it?

/*在睡眠模式下关闭所有外设*/
    SysCtlPeripheralClockGating(true);
    /*
设置Deep-Sleep下的时钟源*/
    SysCtlDeepSleepClockConfigSet(2, SYSCTL_DSLP_OSC_INT30 | SYSCTL_DSLP_PIOSC_PD);
    /*
在深睡眠模式下使能GPIO管脚*/
    SysCtlPeripheralDeepSleepEnable(SYSCTL_PERIPH_GPIOF);
    
    GIZWITS_LOG(RT_DEBUG_TRACE, ("Enter deep sleep\n"));
    SleepSecond(1);
    /*
系统进入Deep-Sleep*/
    SysCtlDeepSleep();

Is there any query, pls. feel free to let me know!

Thanks

  • Hello Lian,

    While we don't have a deep sleep TivaWare example for the TM4C123x devices, there is one for the TM4C1294NCPDT which illustrates deep sleep mode. It can be found in the latest TivaWare under [Install Location]/TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c1294xl\sleep_modes

    Again, to be clear, that is for the TM4C1294NCPDT and not the TM4C1230H6PM so please ensure the customer keeps that in mind as they are different devices, but the example should provide guidance on what other steps to take.
  • Hi Ralph Jacobi:
    Thanks for your support, we will try to do it with your suggestion.
    Thanks a lot!
    Best regards
    Luck Wu