M30622M4 MITSUBISHI [Mitsubishi Electric Semiconductor], M30622M4 Datasheet - Page 61

no-image

M30622M4

Manufacturer Part Number
M30622M4
Description
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M30622M4A-462GP D3
Manufacturer:
RENESAS
Quantity:
1 000
Part Number:
M30622M4A-462GP D3
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Interrupt
Figure 1.14.6. State of stack before and after acceptance of interrupt request
Saving Registers
In the interrupt sequence, only the contents of the flag register (FLG) and that of the program counter
(PC) are saved in the stack area.
First, the processor saves the four higher-order bits of the program counter, and 4 upper-order bits and 8
lower-order bits of the FLG register, 16 bits in total, in the stack area, then saves 16 lower-order bits of the
program counter. Figure 1.14.6 shows the state of the stack as it was before the acceptance of the
interrupt request, and the state the stack after the acceptance of the interrupt request.
Save other necessary registers at the beginning of the interrupt routine using software. Using the
PUSHM instruction alone can save all the registers except the stack pointer (SP).
Address
m – 4
m – 3
m – 2
m – 1
Stack status before interrupt request
is acknowledged
m + 1
m
MSB
Content of previous stack
Content of previous stack
Stack area
LSB
[SP]
Stack pointer
value before
interrupt occurs
Address
m – 4
m – 3
m – 2
m – 1
m
m + 1
Stack status after interrupt request
is acknowledged
MSB
Flag register
Content of previous stack
Content of previous stack
Program counter (PC
Program counter (PC
(FLG
Flag register (FLG
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Stack area
H
)
counter (PC
Program
L
)
L
M
)
)
LSB
H
)
Mitsubishi microcomputers
M16C / 62 Group
[SP]
New stack
pointer value
61

Related parts for M30622M4