4
4-12
Rev.1.0
EIT
4.8 Exception Handling
H'00
Address
RIE occurred
H'04
H'08
H'0C
+0
+1
+2
+3
H'00
Address
RIE occurred
H'04
H'08
H'0C
+0
+1
+2
+3
Return
address
Return
address
BPC
H'06
BPC
H'04
Figure 4.8.1 Example of a Return Address for Reserved Instruction Exception (RIE)
(4) Branching to the EIT vector entry
Control branches to a user space address H'0000 0020. This is the last operation in
hardware preprocessing performed by the M32R/E.
(5) Branching from the EIT vector entry to the user-created handler
The M32R/E executes the BRA instruction written at the EIT vector entry address H'0000
0020 by the user, thereby branching to the start address of the user-created handler. At
the beginning of the user-created EIT handler, the BPC and PSW Registers and the
necessary general-purpose registers must first be saved to the stack.
(6) Returning from the EIT handler
At the end of the EIT handler, restore the general-purpose registers and the BPC and
PSW Registers from the stack and execute the RTE instruction. Then hardware
postprocessing will be performed automatically. In this case, operation restarts from a
word-boundary instruction including one that caused the RIE exception (see Figure
4.8.1).
Summary of Contents for 32172
Page 20: ... This is a blank page 16 ...
Page 21: ...1 1 Overview 1 2 Block Diagram 1 3 Pin Functions 1 4 Pin Layout CHAPTER 1 CHAPTER 1 OVERVIEW ...
Page 44: ...1 1 24 Rev 1 0 This is a blank page Overview 1 4 Pin Layout ...
Page 58: ...2 2 14 Rev 1 0 This is a blank page CPU 2 6 Data Formats ...
Page 122: ...4 4 26 Rev 1 0 This is a blank page EIT 4 13 Precautions on EIT ...
Page 200: ...7 7 6 Rev 1 0 This is a blank page RESET 7 4 Precautions to Be Taken Immediately after Reset ...
Page 298: ...9 9 58 Rev 1 0 This is a blank page DMAC 9 4 Precautions on Using DMAC ...
Page 776: ...19 19 10 Rev 1 0 RAM BACKUP MODE 19 4 Exiting RAM Backup Mode Wakeup This is a blank page ...
Page 782: ...20 20 6 Rev 1 0 OSCILLATION CIRCUIT 20 2 Clock Generator Circuit This is a blank page ...
Page 856: ...23 23 26 Rev 1 0 This is a blank page ELECTRICAL CHARACTERISTICS 23 6 AC Characteristics ...
Page 857: ...24 1 A D Conversion Characteristics CHAPTER 24 CHAPTER 24 STANDARD CHARACTERISTICS ...
Page 859: ...Appendix 1 1 Dimensional Outline Drawing APPENDIX 1 APPENDIX 1 MECHANICAL SPECIFICATIONS ...
Page 865: ...Appendix 3 1 Precautions about Noise APPENDIX 3 APPENDIX 3 PRECAUTIONS ABOUT NOISE ...