cancel
Showing results for 
Search instead for 
Did you mean: 

Exiting from STOP using RTC Alarm A

yabool2001
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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.

View solution in original post

2 REPLIES 2
STTwo-32
ST Employee

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

@STTwo-32 thx for confirmation and explanation.

 

V/r

@yabool2001