AnsweredAssumed Answered

STM32F030 RTC wakeup from STOP mode

Question asked by tyborczyk.slawomir on Sep 4, 2014
Latest reply on Sep 5, 2014 by tyborczyk.slawomir

I'm writing an app, that most of its time will spend in STOP or STANDBY mode (battery powered microsystem). I'd like the internal RTC to wakeup my STM32 every 5 minutes, enter the ISR, do its tasks in ISR (ADC measurement and send it over) and enter back the STOP mode.

My question is: how to do it nice and simple?

I tried with RTC alarm interrupt, but when I set 5 minutes in the alarm register, the interrupt run every 10 minutes (5 min, 15 min, 25 min and so on... - actually I had tested with 5 seconds). I tried to reset the time register in the ISR, but it works only sometimes.

Could you give me some advice what's the best/most proper way to do a periodical wakeup in STM32F030?