Skip to main content
yabool2001
Associate III
December 2, 2023
Solved

Exiting from STOP using RTC Alarm A

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.
STTwo-32
STTwo-32Best answer
ST 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 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

2 replies

STTwo-32
STTwo-32Best answer
ST 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 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
yabool2001
Associate III
December 2, 2023

@STTwo-32 thx for confirmation and explanation.

 

V/r

@yabool2001