
9
2
3
f
o
5
0
2
,
2
0
.
g
u
A
0
.
1
.
v
e
R
0
1
0
-
7
8
1
0
B
9
0
J
E
R
Page 50
8. Clock Generating Circuit
p
u
o
r
G
0
8
/
C
6
1
M
______
If only a hardware reset or an NMI interrupt is used to cancel stop mode, change the priority level of all
interrupt to 0, then shift to wait mode.
Table 8.5 Port status during wait mode
Pin
Memory expansion mode
Single-chip mode
Microprocessor mode
_______
Address bus, data bus, CS0 to CS3,
Retains status before wait mode
________
BHE
_____
______
________
_________
______
_________
RD, WR, WRL, WRH, DW, CASL,
“H” (Note)
________
CASH
________
RAS
“H” (Note)
__________
HLDA,BCLK
“H”
ALE
“L”
Port
Retains status before wait mode
CLKOUT
When fC selected
Does not stop
When f8, f32 selected Does not stop when the WAIT peripheral function clock stop bit
is “0”. When the WAIT peripheral function clock stop bit is “1”,
the status immediately prior to entering wait mode is main-
tained.
________
Note :When self-refresh is done in operating DRAM control, CAS and RAS becomes “L”.
8.5 Wait Mode
When a WAIT instruction is executed, the BCLK stops and the microcomputer enters the wait mode. In this
mode, oscillation continues but the BCLK and watchdog timer stop. Writing “1” to the WAIT peripheral
function clock stop bit and executing a WAIT instruction stops the clock being supplied to the internal
peripheral functions, allowing power dissipation to be reduced. Table 8.5 shows the status of the ports in
wait mode.
Wait mode is cancelled by a hardware reset or interrupt. If an interrupt is used to cancel wait mode, the
microcomputer restarts using as BCLK the clock that had been selected when the WAIT instruction was
executed.
When using an interrupt to exit Wait mode, the relevant interrupt must have been enabled and set to a
priority level above the level set by the interrupt priority set bits for exiting a stop/wait state (bits 2, 1, and 0
at address 009F16). Set the interrupt priority set bits for the exit from a stop/wait state to the same level as
the flag register (FLG) processor interrupt level (IPL).
The priority level of the interrupt which is not used to cancel wait mode, must have been changed to 0.
When using an interrupt to exit Wait mode, the microcomputer resumes operating the clock that was oper-
ating when the WAIT command was executed as BCLK from the interrupt routine.