![GigaDevice Semiconductor GD32E23 Series Скачать руководство пользователя страница 210](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794210.webp)
GD32E23x User Manual
210
function will directly output the content of alarm flag in RTC_STAT.
The OPOL bit in RTC_CTL can configure the polarity of the alarm output which means that
the RTC_ALARM output is the opposite of the corresponding flag bit or not.
13.3.15.
RTC power saving mode management
Table 13-1. RTC power saving mode management
For GD32E230xx devices
Mode
Active in Mode
Exit Mode
Sleep
Yes
RTC Interrupts
Deep-Sleep Yes: if clock source is LXTAL or IRC40K RTC Alarm/ Tamper Event/ Timestamp Event
Standby
Yes: if clock source is LXTAL or IRC40K RTC Alarm/ Tamper Event/ Timestamp Event
For GD32E231xx devices
Mode
Active in Mode
Exit Mode
Sleep
Yes
RTC Interrupts
Deep-Sleep Yes: if clock source is LXTAL or IRC40K
RTC Alarm/ Tamper Event
Standby
Yes: if clock source is LXTAL or IRC40K
RTC Alarm/ Tamper Event
13.3.16.
RTC interrupts
All RTC interrupts are connected to the EXTI controller.
Below steps should be followed if you want to use the RTC alarm/tamper/timestamp:
1.
Configure and enable the corresponding interrupt line to RTC alarm/tamper/timestamp
event of EXTI and set the rising edge for triggering
2.
Configure and enable the RTC alarm/tamper/timestamp global interrupt
3.
Configure and enable the RTC alarm/tamper/timestamp function
Table 13-2. RTC interrupts control
For GD32E230xx devices
Interrupt
Event flag
Control Bit
Exit
Sleep
Exit
Deep-sleep
Exit
Standby
Alarm 0
ALRM0F
ALRM0IE
Y
Y(*)
Y(*)
Timestamp
TSF
TSIE
Y
Y(*)
Y(*)
Tamper 0
TP0F
TPIE
Y
Y(*)
Y(*)