NEC V850ES/SA2 UPD703201 Manual page 445

32-bit single-chip microcontrollers
Table of Contents

Advertisement

CHAPTER 14 INTERRUPT/EXCEPTION PROCESSING FUNCTION
CPU processing
(2) Restore
Recovery from an exception trap is carried out by the DBRET instruction.
instruction, the CPU carries out the following processing and controls the address of the restored PC.
<1> Loads the restored PC and PSW from DBPC and DBPSW.
<2> Transfers control to the address indicated by the restored PC and PSW.
Figure 14-11 illustrates the restore processing from an exception trap.
Figure 14-11. Restore Processing from Exception Trap
Figure 14-10. Exception Trap Processing
Exception trap (ILGOP) occurs
DBPC
DBPSW
PSW.NP
PSW.EP
PSW.ID
PC
Exception processing
DBRET instruction
PC
DBPC
PSW
DBPSW
Jump to address of restored PC
Preliminary User's Manual U15905EJ1V0UD
Restored PC
PSW
1
1
1
00000060H
By executing the DBRET
445

Advertisement

Table of Contents
loading

Table of Contents