![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD78F4225YGC-8BT-A_datasheet_99861/UPD78F4225YGC-8BT-A_482.png)
480
CHAPTER 24
STANDBY FUNCTION
User’s Manual U12697EJ4V1UD
24.4 STOP Mode
24.4.1 Settings and operating states of STOP mode
The STOP mode is set by setting the STP bit in the standby control register (STBC) to 1.
STBC can be written with 8-bit data by a special instruction. Therefore, the STOP mode is set by the MOV STBC,
#byte instruction.
When interrupts are enabled (IE flag in PSW is set to 1), specify three NOP instructions after the STOP mode setting
instruction (after the STOP mode is released). If this is not done, after the STOP mode is released, multiple instructions
can be executed before interrupts are acknowledged. Inserting NOP instructions may change the order relationship
between the interrupt servicing and instruction execution, so to prevent problems caused by changes in the execution
order, be sure to take the measures described earlier.
The system clock when setting the STOP mode can only be set to the main system clock.
Caution Since an interrupt request signal is used when releasing the standby mode, when an interrupt
source that sets the interrupt request flag or resets the interrupt mask flag is generated, even
though the standby mode is entered, it is immediately released. When the STOP mode setting
instruction conflicts with the setting of an unmasked interrupt request flag or a non-maskable
interrupt request, either of following two statuses are entered.
(1) Status in which STOP mode is set once, and then released
(2) Status in which STOP mode is not set
The oscillation stabilization time after releasing STOP mode is inserted only for the status in
which STOP mode is set once and then released.
The operating states in the STOP mode are described next.