I use the following configuration
first , i config rtc
second ,i config clk_in pin
third ,i config clk
it is my code
/* Initialize RTC instance
* - See RTC configuration component for options
*/
RTC_DRV_Init(RTCTIMER1, &rtcTimer1_Config0);
/* Set the time and date */
RTC_DRV_SetTimeDate(RTCTIMER1, &rtcTimer1_StartTime0);
/* Start the RTC counter */
RTC_DRV_StartCounter(RTCTIMER1);
RTC_DRV_GetCurrentTimeDate(RTCTIMER1, ¤tTime);
but i read inaccuracy time,it run fast.....
Hi,
The LPOCLKS[RTCCLKSEL] register is reset only on POR or LVD.
Can you power cycle the MCU?
Thanks,
Daniel
yes, i can power cycle the mcu, Can you check my configuration is right?
Hi,
If it still doesn't work, please measure RTC CLKOUT.
What frequency do you get?
I don't see any problem in the configuration.
Regards,
Daniel