m30833fjgp Renesas Electronics Corporation., m30833fjgp Datasheet - Page 125

no-image

m30833fjgp

Manufacturer Part Number
m30833fjgp
Description
Renesas 16/32-bit Single-chip Microcomputer M16c Family / M32c/80 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
m30833fjgp D5
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Part Number:
m30833fjgp#U3
Manufacturer:
NXP
Quantity:
1 003
Part Number:
m30833fjgp#U3
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Part Number:
m30833fjgp#U5
Manufacturer:
Renesas Electronics America
Quantity:
10 000
R
R
M
e
E
3
. v
J
Figure 10.7 Stack States
2
0
10.6.6 Saving a Register
10.6.7 Restoration from Interrupt Routine
1
9
C
3 .
B
In the interrupt sequence, the FLG register and PC are saved to the stack.
After the FLG register is saved to the stack, 16 high-order bits and 16 low-order bits of PC, extended to 32
bits, are saved to the stack. Figure 10.7 shows the stack state before and after an interrupt request is
acknowledged.
Other important registers are saved by program at the beginning of an interrupt service routine. The
PUSHM instruction can save all registers except SP.
Refer to 10.4 High-Speed Interrupt for the high-speed interrupt.
When the REIT instruction is executed at the end of an interrupt service routine, the FLG register and PC,
which have been saved to the stack, are automatically restored. The program, executed before an interrupt
request has been acknowledged, starts running again. Refer to 10.4 High-Speed Interrupt for the high-
speed interrupt.
Restore registers saved by program in an interrupt service routine by the POPM instruction or others
before the REIT and FREIT instructions. Register bank is switched back to the bank used prior to the
interrupt sequence by the REIT or FREIT instruction.
8 /
Stack state before an interrupt request is acknowledged
0
1
3
0
Address
3
J
G
4
a
0 -
n
o r
m-6
m-5
m–4
m–3
m–2
m–1
m
m+1
3 .
1
u
, 1
3
p
1
MSB
2
(
M
0
0
3
6
Content of
previous stack
Content of
previous stack
2
C
The Stack
8 /
Page 102
, 3
M
3
2
C
f o
8 /
4
3
8
) T
8
LSB
[SP]
SP value before
interrupt is
generated
Stack state after an interrupt request is acknowledged
Address
m-6
m-5
m–4
m–3
m–2
m–1
m
m+1
MSB
Content of
previous stack
Content of
previous stack
The Stack
FLG
PC
PC
FLG
PC
00
M
16
L
H
L
H
LSB
[SP]
New SP value
10. Interrupts

Related parts for m30833fjgp