Rtc Registers; Rtc Time Register (Rtc_Tr); Table 134. Interrupt Control Bits - STMicroelectronics RM0365 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

Real-time clock (RTC)
To enable the RTC Tamper interrupt, the following sequence is required:
1.
Configure and enable the NVIC line corresponding to the RTC Tamper event in
interrupt mode and select the rising edge sensitivity.
2.
Configure and Enable the RTC_TAMP_STAMP IRQ channel in the NVIC.
3.
Configure the RTC to detect the RTC tamper event.
To enable the RTC TimeStamp interrupt, the following sequence is required:
1.
Configure and enable the NVIC line corresponding to the RTC TimeStamp event in
interrupt mode and select the rising edge sensitivity.
2.
Configure and Enable the RTC_TAMP_STAMP IRQ channel in the NVIC.
3.
Configure the RTC to detect the RTC time-stamp event.
To enable the Wakeup timer interrupt, the following sequence is required:
1.
Configure and enable the NVIC line corresponding to the Wakeup timer even in
interrupt mode and select the rising edge sensitivity.
2.
Configure and Enable the RTC_WKUP IRQ channel in the NVIC.
3.
Configure the RTC to detect the RTC Wakeup timer event.
RTC_TS input (timestamp)
RTC_TAMP1 input detection
RTC_TAMP2 input detection
RTC_TAMP3 input detection
Wakeup timer interrupt
1. Wakeup from STOP and Standby modes is possible only when the RTC clock source is LSE or LSI.
27.6

RTC registers

Refer to
register descriptions.
The peripheral registers can be accessed by words (32-bit).
27.6.1

RTC time register (RTC_TR)

The RTC_TR is the calendar time shadow register. This register must be written in
initialization mode only. Refer to
Reading the calendar on page
This register is write protected. The write access procedure is described in
write protection on page
Address offset: 0x00
739/1080

Table 134. Interrupt control bits

Interrupt event
Alarm A
Alarm B
Section 2.1 on page 42
729.
Enable
Event flag
control
bit
ALRAF
ALRAIE
ALRBF
ALRBIE
TSF
TSIE
TAMP1F
TAMPIE
TAMP2F
TAMPIE
TAMP3F
TAMPIE
WUTF
WUTIE
of the reference manual for a list of abbreviations used in
Calendar initialization and configuration on page 729
730.
DocID025202 Rev 7
Exit from
Exit from
Sleep
Stop
mode
mode
(1)
yes
yes
(1)
yes
yes
(1)
yes
yes
(1)
yes
yes
(1)
yes
yes
(1)
yes
yes
(1)
yes
yes
RTC register
RM0365
Exit from
Standby
mode
(1)
yes
(1)
yes
(1)
yes
(1)
yes
(1)
yes
(1)
yes
(1)
yes
and

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RM0365 and is the answer not in the manual?

Questions and answers

Table of Contents