4
4-5
Ver.0.10
When an EIT is accepted, the M32R/E saves the PC and PSW (as will be described later) and
branches to the EIT vector. The EIT vector has an entry address assigned for each EIT. This is
where the BRA (branch) instruction (note that these are not branch address) for the EIT handler is
written.
In the M32R/E's hardware preprocessing, only the contents of the PC and PSW registers are
transferred to the backup registers (BPC register and the BPSW field of the PSW register), and no
other operations are performed. Therefore, please make sure the BPC register, the PSW register
(including the BPSW field), and the general-purpose registers to be used in the EIT handler are
saved to the stack by the EIT handler you write. (Remember that these registers must be saved to
the stack in a program by the user.)
When processing by the EIT handler is completed, restore the saved registers from the stack and
finally execute the "RTE" instruction. Control is thereby returned from EIT processing to the
program that was being executed when the EIT occurred. (This does not apply to the System Break
Interrupt, however.)
In the M32R/E's hardware postprocessing, the contents of the backup registers (BPC register and
the BPSW field of the PSW register) are moved back to the PC and PSW registers.
EIT
4.3 EIT Processing Procedure
Summary of Contents for M32170F3VFP
Page 42: ...1 1 24 Ver 0 10 OVERVIEW 1 4 Pin Layout This is a blank page ...
Page 56: ...2 2 14 Ver 0 10 This is a blank page ...
Page 88: ...3 3 32 Ver 0 10 ADDRESS SPACE 3 7 Notes on Address Space This is a blank page ...
Page 270: ...9 9 40 Ver 0 10 DMAC 9 4 Precautions about the DMAC This is a blank page ...
Page 614: ...12 12 64 Ver 0 10 This is a blank page SERIAL I O 12 9 Precautions on Using UART Mode ...
Page 756: ...17 17 10 Ver 0 10 RAM BACKUP MODE 17 4 Exiting RAM Backup Mode Wakeup This is a blank page ...
Page 762: ...18 18 6 Ver 0 10 OSCILLATION CIRCUIT 18 2 Clock Generator Circuit This is a blank page ...
Page 831: ...CHAPTER 22 CHAPTER 22 TYPICAL CHARACTERISTICS 22 1 A D Conversion Characteristics ...
Page 833: ...Appendix 1 1 Dimensional Outline Drawing APPENDIX 1 APPENDIX 1 MECHANICAL SPECIFICATIONS ...
Page 841: ...Appendix 3 1 Precautions about Noise APPENDIX 3 APPENDIX 3 PRECAUTIONS ABOUT NOISE ...