Electronic – Multiple(five) alarm time setting in stm32f0 mcu

developmentfirmwarehal-librarystm32cubemxstm32f0

I am working on my hobbyist project and need to develop the alarm timings.
And RTC and Timer are new for me and I am confused in RTC Alarm time setting.
I need to make alarm with RTC for five different times(as we are doing in the mobile).
So, I am looking for the same thing with my mcu.
Looking forward for the kind support …
(I am using STM32 Nucleo Board, KEIL-IDE, CubeMX)

Thanks

Best Answer

Check AN3371 at the official website of ST.

However, according to paragraph 2 there are only 2 alarms (A and B).

Alternatives:

  • Keep 5 alarms in your own code, set the first alarm (A) as alarm 1. When this fires, program A as for the next alarm (2) etc. Alarm B is not needed.
  • Do not use the alarm of the RTC, but a timer (not sure if the timer can be set for a long period).