BAT32G1x9User Manual | Chapter 28 Standby function
1070 / 1149
Rev.1.02
28.2 Sleep mode
28.2.1
The setting of the sleep mode
When the SLEEPDEEP bit of the SCR register is 0, execute the WFI instruction and enter sleep mode. In sleep
mode, the CPU stops operating, but the values of the internal registers are still maintained, and the peripheral
modules remain in the state they were in before they entered sleep mode. The status of peripheral modules,
vibrators, etc. in sleep mode is shown in Table 28-1.
Sleep mode can be set regardless of whether the CPU clock before setup is a high-speed system clock, a high-
speed internal oscillator clock, or a sub-system 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 decommission sleep mode. Therefore, even if the
WFI command is executed in this case, it does not move to sleep mode.