Renesas M16C/26A Series Hardware Manual page 92

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
6
The operation of saving registers carried out in the interrupt sequence is dependent on whether the SP
at the time of acceptance of an interrupt request, is even or odd. If the stack pointer
register and the PC are saved, 16 bits at a time. If odd, they are saved in two steps, 8 bits at a time.
Figure 9.4.3.2 shows the operation of the saving registers.
NOTE:
1. When any INT instruction in software numbers 32 to 63 has been executed, this is the SP indicated
by the U flag. Otherwise, it is the ISP.
(1) SP contains even number
[SP] – 5 (Odd)
[SP] – 4 (Even)
[SP] – 3 (Odd)
[SP] – 2 (Even)
[SP] – 1 (Odd)
[SP]
(2) SP contains odd number
[SP] – 5 (Even)
[SP] – 4 (Odd)
[SP] – 3 (Even)
[SP] – 2 (Odd)
[SP] – 1 (Even)
[SP]
NOTE:
Figure 9.4.3.2. Operation of Saving Register
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
Address
Stack
PC
FLG
FLG
H
(Even)
Address
Stack
PC
FLG
FLG
H
(Odd)
1. [SP] denotes the initial value of the SP when interrupt request is acknowledged.
After registers are saved, the SP content is [SP] minus 4.
page 73
f o
3
2
9
6
C
2 /
6
) T
Sequence in which order
registers are saved
PC
L
(2) Saved simultaneously,
M
L
(1) Saved simultaneously,
PC
H
Finished saving registers
in two operations.
Sequence in which order
registers are saved
PC
(3)
L
M
(4)
L
(1)
PC
(2)
H
Finished saving registers
in four operations.
(1)
all 16 bits
all 16 bits
Saved, 8 bits at a time
9. Interrupt
(1)
,
is even, the FLG

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents