Stack Operation Of Interrupt Processing - Fujitsu F2MC-16LX Hardware Manual

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 3 INTERRUPT
3.10

Stack Operation of Interrupt Processing

Once an interrupt is accepted, the contents of the dedicated registers are automatically
saved in the system stack before control branches to the interrupt handling. Return
from the stack at the end of the interrupt handling also takes place automatically.
Stack Operation at the Start of Interrupt Processing
Once the interrupt is accepted, the CPU automatically saves the contents of the current dedicated registers
and their related data in the system stack in the order below:
1. Accumulator (A)
2. Direct page register (DPR)
3. Additional data bank register (ADB)
4. Data bank register (DTB)
5. Program bank register (PCB)
6. Program counter (PC)
7. Processor status (PS)
Figure 3.10-1 shows the stack operation at the start of interrupt handling.
Previously interrupt
SSB
00H
SSP
08FEH
A
0000H
AH
DPR
01H
DTB
00H
PC
803FH
PS
20E0H
Stack Operation when Interrupt Processing Returns
When the interrupt return instruction (RETI) is executed at the end of interrupt process, the values of PS,
PC, PCB, DTB, ADB, DPR, and A return from the stack in the reverse order for the start of interrupt
handling. The dedicated registers are restored to the initial state preceding the start of interrupt.
104
Figure 3.10-1 Stack Operation at Start of Interrupt Processing
Address
Memory
08FFH
08FEH
XX H
XX H
08FEH
XX H
AL
XX H
XX H
ADB
00H
XX H
XX H
PCB
FFH
XX H
XX H
XX H
XX H
08F2H
XX H
Byte
Immediately interrupt
SSB
00H
SP
H
SSP
08F2H
A
0000H
AH
DPR
01H
DTB
00H
L
PC
803FH
PS
20E0H
Address
Memory
08FFH
08FEH
00H
00H
08FEH
08H
AL
FEH
01H
ADB
00H
00H
00H
PCB
FFH
FFH
80H
3FH
20H
E0H
08F2H
Byte
SP
AH
AL
DPR
ADB
DTB
PCB
PC
P S
SP after
updated

Advertisement

Table of Contents
loading

Table of Contents