375
Power Control
M
i
t
s
u
M
S
b
i
s
3
M
h
0
I
C
i
m
2
R
i
1
O
c
r
8
C
o
c
o
G
M
m
p
r
P
u
t
u
T
e
r
p
R
s
o
U
S
I
N
G
L
E
-
C
H
I
P
1
6
-
B
I
T
C
M
O
O
E
(5) Sequence of returning from stop mode
Sequence of returning from stop mode is oscillation start-up time and interrupt sequence.
When interrupt is generated in stop mode, CM10 becomes “0” and clearing stop mode.
Starting oscillation and supplying BCLK execute the interrupt sequence as follow:
In the interrupt sequence, the processor carries out the following in sequence given:
(a) CPU gets the interrupt information (the interrupt number and interrupt request level) by read-
ing address 00000
16
. The interrupt request bit of the interrupt written in address 00000
16
will
then be set to “0”.
(b) Saves the content of the flag register (FLG) as it was immediately before the start of interrupt
sequence in the temporary register (Note) within the CPU.
(c) Sets the interrupt enable flag (I flag), the debug flag (D flag), and the stack pointer assignment
flag (U flag) to “0” (the U flag, however does not change if the INT instruction, in software
interrupt numbers 32 through 63, is executed)
(d) Saves the content of the temporary register (Note) within the CPU in the stack area.
(e) Saves the content of the program counter (PC) in the stack area.
(f) Sets the interrupt priority level of the accepted instruction in the IPL.
Note: This register cannot be utilized by the user.
After the interrupt sequence is completed, the processor resumes executing instructions from the first
address of the interrupt routine.
Figure 2.14.2 shows the sequence of returning from stop mode.
Figure 2.14.2. Sequence of returning from stop mode
(6) Registers related to power control
Figure 2.14.3 shows the memory map of power control-related registers, and Figure 2.14.4 shows
power control-related registers.
Address
00000
Interrupt
information
BCLK
Address bus
Data bus
Indeterminate
SP-2
SP-4
vec
vec+2
Indeterminate
SP-2
contents
SP-4
contents
vec
contents
vec+2
contents
PC
Writing “1” to CM10
(all clock stop control bit)
Oscillation start-up
Stop mode
Interrupt sequence approximately 20 cycle (16μ sec)
(Single-chip mode, f(X
IN
) = 10MHz)
RD
WR
Indeterminate
Operated by divided-by-8 mode
INTi
Shown above is the case where the main clock is selected for BCLK. If the sub-clock is selected for BCLK,
the sub-clock functions as BCLK when restored from stop mode, with the main clock's divide ratio
unchanged.
Note: