91
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Bit field
Name
Description
31:9
Reserved
Reserved, the reset value must be maintained.
8
WKUPEN
Enable WKUP pin bit
0: The WKUP pin is a general purpose I/O. An event on the WKUP pin cannot wake the
CPU from standby mode
1: WKUP pin is used to wake up CPU from standby mode, WKUP pin is forced to input
pull-down configuration (rising edge on WKUP pin wakes up system from standby
mode)
Note: This bit is cleared on system reset.
7:4
Reserved
Reserved, the reset value must be maintained.
3
VBATF
VBAT flag bit.
This bit is set by hardware and is only cleared by POR or PDR (power-on reset/power-
down reset) or set by setting the PWR_CTRL.CSBVBAT bit.
0: The device is not in VBAT mode
1: The device is already in VBAT mode
2
PVDO
PVD output.
This bit is only valid when PVD is enabled by the PWR_CTRL.PVDEN bit
0: VDD/VDDA is higher than the PVD threshold selected by PWR_CTRL.PRS[2:0]
1: VDD/VDDA is lower than the PVD threshold selected by PWR_CTRL.PRS[2:0]
Note: PVD is stopped in standby mode. Therefore, after standby mode or after reset,
this bit is 0 until the PWR_CTRL.PVDEN bit is set.
1
SBF
Standby flag.
This bit is set by hardware and can only be cleared by POR/PDR (power-on/power-
down reset) or by setting the PWR_CTRL.CSBVBAT bit.
0: The system is not in standby mode
1: The system enters standby mode
0
WKUPF
Wake up flag.
This bit is set by hardware and can only be cleared by POR/PDR (power-on/power-
down reset) or by setting the PWR_CTRL.CWKUP bit.
0: No wakeup event occurred
1: A wake-up event occurred on the WKUP pin or a RTC alarm event occurred.
Note: An additional event is detected when the WKUP pin is enabled (by setting the
WKUPEN bit) when the WKUP pin is already high.
4.4.4
Power control register 2 (PWR_CTRL2)
Address offset: 0x08