101
3.7 Standby Modes (Low-Power Consumption)
3.7.2
Sleep Mode
This section describes the operations of sleep mode.
s Operation of Sleep Mode
r Changing to sleep mode
Sleep mode stops the CPU operating clock.
The CPU stops while maintaining all register
contents, RAM contents, and pin states at their values immediately prior to entering sleep mode.
However, peripheral functions except the watchdog timer continue to operate.
If the system is in subclock mode, however, the main clock oscillation is stopped; and because
the timebase timer operates on a divide-by-two version of the main clock source oscillation, it
also stops operating.
Writing "1" to the sleep bit in the standby control register (STBC: SLP) changes the CPU to
sleep mode. If an interrupt request is generated when "1" is written to the SLP bit, the write to
the bit is ignored, and the CPU continues the instruction execution without change to sleep
mode. (The CPU does not change to sleep mode even after completion of the interrupt
processing.)
r Wake-up from sleep mode
A reset or an interrupt from a peripheral function wakes up the CPU from sleep mode.
If a reset occurs during sub-sleep mode on a product with power-on reset, the reset operation
starts after the main clock oscillation stabilization delay time.
In products without power-on reset, or if the reset occurs in main-sleep mode, there is no
oscillation stabilization delay period.
The reset operation also initializes the pin states.
If an interrupt request with an interrupt level higher than "11" occurs from a peripheral function
or an external interrupt circuit during sleep mode, the CPU wakes up from sleep mode,
regardless of the interrupt enable flag (CCR: I) and interrupt level bits (CCR: IL1 and IL0) in the
CPU.
The normal interrupt operation is performed after wake-up from sleep mode. If the interrupt
request is accepted, the CPU executes interrupt processing. If the interrupt request is not
accepted, the CPU continues execution from the subsequent instruction following the instruction
executed immediately before changing to sleep mode.