Skip to main content
Graduate
December 2, 2023
Solved

Exiting from STOP using RTC Alarm A

  • December 2, 2023
  • 2 replies
  • 1567 views

Hi,

Exiting from STOP mode based on RTC Alarm A works nice with ALRAIE (Alarm A interrupt enabled) and ALRAE (Alarm A enabled). 

Do I understand this mechanism correctly, that I've to have both bits enabled?  Having only ALRAE (Alarm A enabled) isn't enough for exit from STOP mode?

 

V/r

yabool2001

    This topic has been closed for replies.
    Best answer by STTwo-32

    Hello @yabool2001 

    To exit from stop mode using RTC, you need to enable both ALRAE to enable Alarm A and ALRAIE to enable Alarm A interrupt. The interruption need to be enabled because the wake-up operation start when an RTC interrupt  occur.

    Screenshot_2023-12-02-10-46-43-25_e2d5b3f32b79de1d45acd1fad96fbb0f.jpg

    For more details, you Can take a look at the RTC chapter of the reference manual of your MCU.

    Best Regards.

    STTwo-32 

    2 replies

    STTwo-32Answer
    Technical Moderator
    December 2, 2023

    Hello @yabool2001 

    To exit from stop mode using RTC, you need to enable both ALRAE to enable Alarm A and ALRAIE to enable Alarm A interrupt. The interruption need to be enabled because the wake-up operation start when an RTC interrupt  occur.

    Screenshot_2023-12-02-10-46-43-25_e2d5b3f32b79de1d45acd1fad96fbb0f.jpg

    For more details, you Can take a look at the RTC chapter of the reference manual of your MCU.

    Best Regards.

    STTwo-32 

    Graduate
    December 2, 2023

    @STTwo-32 thx for confirmation and explanation.

     

    V/r

    @yabool2001