
Rev. 1.00
64 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
5 Power Control Unit (PWRCU)
5 Power Control Unit (PWRCU)
Table 11. Enter / Exit Power Saving Modes
Mode
Mode Entry
Mode Exit
CPU
Instruction
CPU
SLEEPDEEP LDOOFF DMOSON
Sleep
WFI or WFE
(Takes effect)
0
X
X
WFI: Any interrupt
WFE:
Any wakeup event
(1)
or
Any interrupt (NVIC on) or
Any interrupt with SEVONPEND = 1 (NVIC off)
Deep-Sleep1
1
0
0
Any EXTI in event mode or
RTC wakeup or LVD wakeup
(2)
or
WAKEUP pins
Deep-Sleep2
1
X
1
Any EXTI in event mode or
RTC wakeup or LVD wakeup
(2)
or
WAKEUP pins
Notes:
1. Wakeup event means EXTI line in event mode, RTC, LVD and WAKEUP pins
2. If the system allows the LVD activity to wake it up after the system has entered the power saving mode,
the LVDEWEN and LVDEN bits in the LVDCSR register must be set to 1 to make sure that the system
can be woken up by an LVD event and then the LDO regulator can be turned on when system is woken
up from the Deep-Sleep2 mode.
Deep-Sleep Mode
To enter Deep-Sleep mode, configure the registers as shown in the preceding table and execute
the WFI or WFE instruction. In the Deep-Sleep mode, all clocks including high speed oscillator,
known as HSI and HSE, will be stopped. In addition, Deep-Sleep1 turns the LDO into low current
mode while Deep-Sleep2 turns off the LDO and uses a DMOS to keep 1.5 V power. Once the
PWRCU receives a wakeup event or an interrupt as shown in the preceding Mode-Exiting table, the
LDO will then operate in normal mode and the high speed oscillator will be enabled. Finally, the
CPU will return to Run mode to handle the wakeup interrupt if required. A Low Voltage Detection
also can be regarded as a wakeup event if the corresponding wakeup control bit LVDEWEN in the
LVDCSR register is enabled. The last wakeup event is a transition on the external WAKEUP pin
sent to the PWRCU to resume from Deep-Sleep mode. During the Deep-Sleep mode, retaining the
register and memory contents will shorten the wakeup latency.
Table 12. Power Status After System Reset
PORF PORSTF
Description
1
1
Power-up for the first time after the V
DD
power domain is reset:
Power on reset when V
DD
is applied for the first time or executing software reset
command on the V
DD
domain.
0
1
Restart from unexpected loss of the 1.5 V power or other reset (nRST, WDT, …)
Register Map
The following table shows the PWRCU registers and reset values. Note all the registers in this unit
are located in the V
DD15
power domain.
Table 13. PWRCU Register Map
Register Offset
Description
Reset Value
PWRSR
0x100
Power Control Status Register
0x0000_0010
PWRCR
0x104
Power Control Register
0x0000_0000
LVDCSR
0x110
Low Voltage / Brown Out Detect Control and Status Register 0x0000_0000