Fujitsu FR Family Instruction Manual page 60

32-bit microcontroller
Hide thumbs Also See for FR Family:
Table of Contents

Advertisement

CHAPTER 4 RESET AND "EIT" PROCESSING
■ Saved Registers
Except in the case of reset processing, the values of the "PS" and "PC" are saved to the stack as designated
by the "SSP", regardless of the value of the "S" flag in the "CCR". No save operation is used in reset
processing.
Figure 4.2-3 illustrates the saving of the values of the "PC" and "PS" in "EIT" processing.
Figure 4.2-3 Saving "PC" and "PS" Values in "EIT" Processing
Immediately before interrupt
Interrupt
SSP
IL=9
TBR
offset: 000003B8
PC
PS
■ Recovery from EIT handler
RETI instruction is used for recovery from the EIT handler.
To insure the program execution results after recovery, it is required that all the contents of the CPU
register are saved.
Ensure that the PC and PS values in the stack are not overwritten unless necessary because those values,
saved in the stack at the occurrence of EIT, are recovered from the stack during the recovery sequence
using the RETI instruction. Be sure to set the "S" flag to "0" when the RETI instruction is executed.
36
Memory space
00000000
H
7FFFFFF8
H
7FFFFFFC
H
80000000
H
000FFC00
H
56781234
H
12345678
H
000C0010
H
FFFFFFFF
H
Immediately after interrupt
00000000
7FFFFFF8
SSP
7FFFFFFC
80000000
TBR
000FFC00
H
offset: 000003B8
56781234
PC
PS
00090010
FFFFFFFF
Memory space
H
12345678
H
H
000C0010
H
H
H
H
56781234
H
H
H
H
H

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents