NEC V850ES/F 3-L Series User Manual page 250

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 5
Figure 5-12
(2)
Figure 5-13
Note
250
CPU processing
Exception trap processing
Restore
Recovery from an exception trap is carried out by the DBRET instruction. By
executing the DBRET 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 5-13 illustrates the restore processing from an exception trap.
Restore processing from exception trap
The DBPC and DBPSW registers can be accessed only when the DBTRAP
instruction is executed.
User's Manual U18743EE1V2UM00
Exception trap (ILGOP) occurs
DBPC
restored PC
DBPSW
PSW
PSW.NP
1
PSW.EP
1
PSW.ID
1
PC
00000060H
Exception processing
DBRET instruction
PC
DBPC
PSW
DBPSW
Jump to address of restored PC
Interrupt Controller (INTC)

Advertisement

Table of Contents
loading

Table of Contents