AnsweredAssumed Answered

STM32f373 internal RTC with LSI clock

Question asked by B_R.Sowmya on Jan 11, 2017
Latest reply on Jan 12, 2017 by B_R.Sowmya

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

Outcomes