
HD404669 Series
34
Active Mode:
All MCU functions operate according to the clock generated by the system oscillator OSC
1
and OSC
2
.
Standby Mode:
In standby mode, the oscillators continue to operate, but the clocks related to instruction
execution stop. Therefore, the CPU operation stops, but all RAM and register contents are retained, and the
D or R port status, when set to output, is maintained. Peripheral functions such as interrupts, timers, and
serial interface continue to operate. The power dissipation in this mode is lower than in active mode
because the CPU stops. (Interrupts, timers, the serial interface, and other peripheral functions continue to
operate. The exception is the comparator, which is halted.)
The MCU enters standby mode when the SBY instruction is executed in active mode.
Standby mode is terminated by a RESET input or an interrupt request. If it is terminated by RESET input,
the MCU is reset as well. After an interrupt request, the MCU enters active mode and executes the next
instruction after the SBY instruction. If the interrupt enable flag is 1, the interrupt is then processed; if it is
0, the interrupt request is left pending and normal instruction execution continues. Figure 15 shows a
flowchart of MCU operation.
Stop mode
System clock
oscillator started
MCU reset
System clock
oscillator started
STOPC
=0
RAME=1
RAME=0
Interrupts
enabled
IF0 ·
IM0
=1
IM1
=1
IFTA ·
IMTA
=1
IF2·
IM2
= 1
IFTC·
IMTC
+
IF3·
IM3
=1
IFTD·
IMTD
+
IF4·
IM4
=1
IF =1,
IM=0,
IE =1
No
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
No
No
No
Yes
*
*
*
*
No
Yes
*
Only when clearing from standby mode.
Note:
*
Standby mode
Watch mode
RESET=1
Next instruction
execution
Next instruction
execution
IFS1·
IMS1
=1
RESET=1
Figure 15 MCU Operation Flowchart