2013-01-16 09:09 PM
Hi all.
I develop embedded software on STM32F103RC. And I having some problem with RTC Alarm. It triggers interrupt at end of second. Because of this I don't call some methods at the same second. I use LSE and prescaler is 32767. Any ideas?Anyone encountered this problem?
Anyone encountered this problem
#rtc-alarm-interrupt2013-01-16 11:35 PM
I find answer on my question. RTC Alarm has that behaviour because The RTC_Alarm and RTC Alarm flag (ALRF) are asserted on the last RTC Core clock cycle before the counter reaches the RTC Alarm value stored in the Alarm register increased by one (RTC_ALR + 1).
But I don't solve my problem, because I need RTC Alarm interrupt at the moment when RTC Counter is equal RTC Alarm value. Also I have another question: what's difference between RTC_IRQHandler and RTCAlarm_Handler?2013-01-17 05:01 AM
Close the subject. I solve my problem.
Solution is very simple. I set alarm at time-1 and delay 1 ms in order to start my operation at begin of second boundary.