
310
CHAPTER 17 STANDBY FUNCTION
User
’
s Manual U15017EJ2V0UD
17.4 STOP Mode
17.4.1 STOP mode setting and operating states
The STOP mode is selected by setting (to 1) the STP bit of the standby control register (STBC).
The only writes that can be performed on STBC are 8-bit data writes by means of a dedicated instruction. STOP
mode setting is therefore performed by means of the
“
MOV STBC, #byte
”
instruction.
If interrupts are enabled (when the IE bit of the program status word (PSW) is set to 1), write a NOP instruction
three times after the instruction that sets the STOP mode (after releasing the STOP mode). Otherwise, two or more
instructions may be executed before an interrupt is acknowledged. As a result, the execution sequence of the interrupt
processing and instructions may be changed. To prevent troubles due to changes in the execution sequence, the
above processing is necessary.
Caution If the STOP mode is set when the condition to release the HALT mode is satisfied (refer to 17.3.2
HALT mode release), the STOP mode is not set, but the next instruction is executed or execution
branches to a vectored interrupt service program. To accurately set the STOP mode, clear the
interrupt request before setting the STOP mode.
Table 17-4. Operating States in STOP Mode
Clock oscillator
Oscillation stopped
Internal system clock
Stopped
CPU
Operation stopped
I/O lines
Retain state prior to STOP mode setting
16-bit timer/event counter
Operation stopped
8-bit PWM timer
Operable only when an external input clock
(TIO50, TIO51) is selected as the count clock
Watchdog timer
Stopped (timer is initialized)
A/D converter
Operation stopped
Note 1
3-wire serial interface
Operation stopped
Note 2
Asynchronous serial interface
Operation stopped
Note 3
Watch timer
Operation stopped
External interrupt (INTP0 to INTP2)
Operable
Internal RAM
Retained
Notes 1.
A/D converter operation is stopped, but if the ADCS bit of the A/D converter mode register
(ADM) is set (to 1), the current consumption does not decrease.
2.
The serial input pin supports a 3 V interface (i.e., it is a low-threshold pin). To prevent current
being input to the Schmitt input buffer in STOP and IDLE modes, therefore, the Schmitt input
buffer is turned off (the buffer output is
“
L
”
). Disable the serial interface (SIO0, SIO1, SIO2,
and UART) before setting STOP or IDLE mode, and re-set the interface after STOP or IDLE
mode has been released.