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.

Compiler: TM4C123G

Tool/software: TI C/C++ Compiler

Hi Team,

We are using RTC without hibernation mode in one of our project. Issue we are facing is our RTC module is not working less than 70microAmpere.

I know there is something wrong. I have checked the hardware and it looks fine.

Please let us know if something is wrong in the code.

Below is the RTC snippet.

/*************************************ENABLING RTC MODULE******************************************************/

ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE);
// Wait for the Hibernate module to be ready.
//
while(!ROM_SysCtlPeripheralReady(SYSCTL_PERIPH_HIBERNATE))
{
}
//
ROM_HibernateEnableExpClk(g_ui32SysClock); // set HIBCTL.CLK32EN, input irelevant
ROM_SysCtlDelay(3000);
// while(!(HWREG(HIB_RIS) & HIB_RIS_WC)) {} // wait for clk stability
ROM_HibernateClockConfig(HIBERNATE_OSC_LOWDRIVE);
ROM_SysCtlDelay(1000);

// Hib RTC Config

// HibernateRTCEnable(); // start RTC count
// HibernateRTCSet(0); // load RTC value
// HibernateRTCMatchSet(0,5); // set match value
// HibernateIntEnable(HIBERNATE_INT_RTC_MATCH_0); // En RTC match interrupt
// HibernateRTCSet(0); // load RTC value
// HibernateRTCMatchSet(0,1); // set match value
// HibernateIntEnable(HIBERNATE_INT_RTC_MATCH_0); // En RTC match interrupt
ROM_HibernateRTCTrimSet(0x7FFF);
ROM_HibernateRTCEnable(); // start RTC count
// calendar_write = umktime(&tm1);
// HibernateRTCSet(calendar_write);
// HibernateRTCSet(0);
// MCU intrrupt set up
// IntEnable(INT_HIBERNATE);

/******************************************************************************************************/