STM32f373 internal RTC with LSI clock
Hello,
I am using LSI clock(40KHz) as the RTC clock source and enabled the LSI using the
RCC_LSICmd(ENABLE);
I configured the RTC registers and the time is leading to the real time.
Initialised the RTC:
RTC_InitStruct.RTC_HourFormat = RTC_HourFormat_24;
RTC_InitStruct.RTC_AsynchPrediv = 99; RTC_InitStruct.RTC_SynchPrediv = 399; RTC_Init(&RTC_InitStruct);Can any one tell, how can I generate an RTC interrupt for every 1 second?
And also do am I missing any configuration in clock and prescaler setting?
Regards,
Sowmya
#rtc #stm #stm32f373 #stm32f373-rtc