CMS32L051 User Manual |Chapter 20 Standby Function
www.mcu.com.cn 628 / 703
20.2 Sleep mode
20.2.1 Setting of the sleep mode
When the SLEEPDEEP bit of the SCR register is 0, the WFI instruction is executed and sleep mode is entered.
In sleep mode, the CPU stops operating, but the values of the internal registers are still maintained and peripheral
modules remain in the state they were in before they entered sleep mode. The status of peripheral modules,
oscillators, etc. in sleep mode is shown in Table 20-1
Sleep mode can be set regardless of whether the CPU clock before setting is a high-speed system clock, a
high-speed internal oscillator clock, or a subsystem clock.
Note When the interrupt mask flag is 0 (allow interrupt processing) and the interrupt request flag is 1 (generating
an interrupt request signal), the interrupt request signal is used to release sleep mode. Therefore, even when
WFI instructions are performed in this case, it is not transferred to sleep mode.
Table 20-1 Operation status in sleep mode (1/2)
Setting of the sleep
mode
Item
Execution of WFI instructions while the CPU is running at the main system clock
CPU with high speed internal
oscillator clock (F
IH
) run
CPU runs on X1 clock (f
X
).
CPU with external master
system clock (F
EX
) run
Stop supplying clocks to the CPU.
Continue to run (cannot be
stopped).
Continue to run (cannot be
stopped).
Continue to run (cannot be
stopped).
Remains in the state it was in before it was set to sleep mode.
Low-speed
internal
oscillation
Clock of the
device
Bit0 (WDSTBYON) and bit4 (WDTON) and the secondary system clock via option bytes
(000C0H) are available
Allows the WUTMMCK0 bit of the mode control register (OSMC) to be set.
WUTMMCK0=1: Oscillation
WUTMMCK0=0 and WDTON=0: Stop
WUTMMCK0=0, WDTON=1 and WDSTBYON=1:
Oscillation
WUTMMCK0=0, WDTON=1 and WDSTBYON=0: Stop
Stop running (can run when DMA is executed).
Remains in the state it was in before it was set to sleep mode.
See Chapter 10: Watchdog Timer.
Clock output/buzzer output
Universal Serial
Communication Unit (SCI).
Data Transfer Controller
(DMA).
Links can be made between runnable function blocks.
Voltage detection function