AT32WB415
Series Reference Manual
2022.04.13
Page 45
Ver 2.00
3.7 PWC registers
The peripheral registers must be accessed by words (32 bit)
Table 3-1
PW register map and reset values
Register abbr.
Offset
Reset value
PWC_CTRL
0x00
0x0000 0000
PWC_CTRLSTS
0x04
0x0000 0000
3.7.1
Power control register (PWC_CTRL)
Bit
Name
Reset value
Type
Description
Bit 31: 9
Reserved
0x0000 00
resd
Kept at its default value.
Bit 8
BPWEN
0
rw
Battery powered domain write enable
0: Disabled
1: Enabled
Note:
After reset, ERTC is write protected. To write, this bit must
be set.
Bit 7: 5
PVMSEL
0x0
rw
Power voltage monitoring boundary select
000: Unused, not configurable
001: 2.3 V
010: 2.4 V
011: 2.5 V
100: 2.6 V
101: 2.7 V
110: 2.8 V
111: 2.9 V
Bit 4
PVMEN
0
rw
Power voltage monitoring enable
0: Disabled
1: Enabled
Bit 3
CLSEF
0
wo
Clear SEF flag
0: No effect
1: Clear the SEF flag
Note: This bit is cleared by hardware after clearing the SEF
flag. Reading this bit at any time will return all zero.
Bit 2
CLSWEF
0
wo
Clear SWEF flag
0: No effect
1: Clear the SWEF flag
Note:
Clear the SWEF flag after two system clock cycles.
This bit is cleared by hardware after clearing the SWEF
flag. Reading this bit at any time will return all zero.
Bit 1
LPSEL
0
rw
Low power mode select when Cortex™-M4F sleepdeep
0: Enter DEEPSLEEP mode
1: Enter Standby mode
Bit 0
VRSEL
0
rw
LDO state select in deepsleep mode
0: Enabled
1: Low-power consumption mode
3.7.2
Power control/status register (PWC_CTRLSTS)
Unlike a standard APB read, an additional APB cycles are needed to read this register.
Bit
Name
Reset value
Type
Description
Bit 31: 9
Reserved
0x000000
resd
Kept at its default value.
Bit 8
SWPEN
0
rw
Standby wake-up pin enable
0: Disabled (this pin is used for general-purpose I/O)
1: Enabled (this pin is forced in input pull-down mode, and
no longer used for general-purpose I/O)
Note: This bit is cleared by hardware after system reset.
Bit 7: 3
Reserved
0x00
resd
Kept at its default value.
Bit 2
PVMOF
0
ro
Power voltage monitoring output flag
0: Power voltage is higher than the threshold