![](http://datasheet.mmic.net.cn/380000/-PD784214Y_datasheet_16744924/-PD784214Y_533.png)
533
CHAPTER 25 STAND-BY FUNCTION
(2) Releasing the STOP mode by INTP0 to INTP6 input, watch timer interrupt, and key return interrupt
If interrupt masking is released through INTP0 to INTP6 input and macro service is disabled, the oscillator restarts
oscillating when a valid edge specified in the external interrupt edge enable registers (EGP0, EGPN0) is input
to INTP0 to INTP6. If the mask of watch timer interrupt is released and macro service is disabled, an overflow
of watch timer occurs and STOP mode is released. If key return interrupt masking is released and macro service
is disabled, the oscillator restarts oscillating when a falling edge is input to the port 8 pins (P80 to P87). Then
the STOP mode is released after the oscillation stabilization time specified in the oscillation stabilization time
setting register (OSTS) elapses.
If interrupts can be accepted when released from the STOP mode and the interrupt enable flag (IE) is set to 1,
execution branches to the interrupt service program. If the IE flag is cleared to zero when acceptance is not
possible, execution starts again from the instruction following the instruction that set the STOP mode.
For details on interrupt acceptance, refer to
23.7 Maskable Interrupt Acceptance
.
Figure 25-8. Example of Releasing STOP Mode by INTP4 and INTP5 Inputs
INTP4, INTP5 inputs
when the rising
edge is specified
Oscillator
f
XX
/2
STP F/F1
STP F/F2
Oscillator stops
STOP
Timer count time for
oscillation stabilization
(3) Releasing the STOP mode by RESET input
When RESET input falls from high to low and the reset condition is entered, the oscillator starts oscillating.
Maintain the oscillation stabilization time for the RESET active period. Then, when the RESET rises, normal
operation starts.
The difference from the normal reset operation is the data memory saves the contents before setting the STOP
mode.