GD32W51x User Manual
439
non-privileged mode can be w ritten the above configuration.
0
ALRM0PRIP
Alarm 0 privilege protection
When set, Alarm 0 configuration and interrupt clear can be w ritten only w hen the
APB access is in privileged mode,
otherw ise w hether APB access is in privileged or
non-privileged mode can be w ritten the above configuration.
16.4.21.
Secure protection mode control register (RTC_SPM_CTL)
Address offset: 0x54
Backup domain reset: 0x0000 E00F
System reset: no effect
This register has to be accessed by word (32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
BKPWSECP[7:0]
BKPRWSECP[7:0]
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RTCSEC
P
INITSEC
P
CALCSE
CP
TAMPSE
CP
Reserved
TSSECP
WUTSEC
P
ALRM1S
ECP
ALRM0S
ECP
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:24
BKPWSECP[7:0]
Backup registers w rite protection offset
If TZEN=1: backup registers from RTC_BKPt (t = BKPRWSECP, from 0 to 128) to
RTC_BKPm (m = BKPWSECP-
1, from 0 to 128, BKPWSECP ≥ BKPRWSECP) can
be w ritten only w hen the APB is in secure mode. They can be read in secure or non-
secure mode. This zone is the protection zone B.
If TZEN=0: the protection zone B can be read and w ritten w ith non-secure access.
Backup registers from RTC_BKPm (m = BKPWSECP, from 0 to 127) can be read
or w ritten w hen the APB is in secure or in non-secure mode. This zone is the
protection zone C. If BKPWSECP = 0 or if BKPWSECP ≤ BKPRWSECP: none of
the backup registers have a secure w rite access. In these configurations the
behavior is equivalent to BKPWSECP = BKPRWSECP.
If BKPWPRIP is set, BKPRWSECP[7:0] and BKPWSEC P[7:0] can be w ritten only
in privileged mode.
23:16
BKPRWSECP[7:0]
Backup registers read/w rite protection offset
If TZEN=1: backup registers from RTC_BKP0 to RTC_BKPt (t = BKPRWSEC P - 1,
from 0 to 128) can be read and w ritten only w hen the APB is in secure mode. This
is the protection zone A.
If TZEN=0: the protection zone A can be read and w ritten w ith non-secure access.
If BKPRWSEC P = 0 none of the backup registers have a secure read/w rite access.
If BKPRWPRIP is set, BKPRWSECP[7:0] can be w ritten only in privileged mode.
15
RTCSECP
RTC global protection