English
Language : 

V850E1 Datasheet, PDF (193/226 Pages) NEC – 32-Bit Microprocessor Core
CHAPTER 9 SHIFTING TO DEBUG MODE
Figure 9-1. Single-Step Operation Execution Flow
User mode
DBTRAP instruction execution
Debug mode
Single-step
operation setting
1 instruction executed
DBPC ← Restored PC
DBPSW ← PSW
PSW.NP ← 1
PSW.EP ← 1
PSW.ID ← 1
PC
← 00000060H
DIR.SE
←1
DBPSW [11] ← 1
DBPC
← Restored PC
DBRET instruction execution
1 instruction executed
DBPC ← Restored PC
DBPSW ← PSW
PSW.NP ← 1
PSW.EP ← 1
PSW.ID ← 1
PC
← 00000060H
Debug monitor routine
.
..
Single-step
operation clearing
Debug monitor routine
DBPSW [11] ← 0
DIR.SE
←0
DBRET instruction execution
1 instruction executed
1 instruction executed
Remark
The SS flag of the PSW is automatically cleared to 0 when an interrupt request is generated in user
mode in a single-step operation. Therefore, the single-step operation is not performed in the interrupt
servicing routine (the SS flag is set to 1 again due to the restore processing from the interrupt
servicing routine (EIPSW → PSW)).
The processing flow may vary depending on the instruction that is executed when an interrupt occurs
(see Figure 9-2).
User’s Manual U14559EJ3V1UM
193