2019-05-29 02:52 AM
Below is the code snippet,
RTCModule->RTCC.B.RTCIE = RTC_DISABLE;
RTCModule->RTCC.B.CNTEN = RTC_DISABLE;
RTCModule->RTCC.B.DIV512EN = RTC_DISABLE;
RTCModule->RTCC.B.DIV32EN = RTC_DISABLE;
u32RTCcount = (u32Seconds * 64000) >> 10;
RTCModule->RTCC.B.RTCVAL = u32RTCcount;
RTCModule->RTCC.B.RTCIE = RTC_ENABLE;
RTCModule->RTCC.B.CNTEN = RTC_ENABLE;
Here u32Seconds is 600. After programming this, I expect RTCCNT should set the interrupt after 600 counts. But interrupt is occurring at 517 counts.
2019-06-28 05:27 AM
Hello Gururaj ,
Did you solve your issue ?
What is the value of RTCCNT when the interrtupr is occuring
Best regards
Erwan