232
Chapter 8
Interrupt/Exception Processing Function
Preliminary User’s Manual U15839EE1V0UM00
8.6.2 Debug
trap
The debug trap is an exception that can be acknowledged every time and is generated by execution of
the DBTRAP instruction.
When the debug trap is generated, the CPU performs the following processing.
(1)
Operation
When the debug trap is generated, the CPU performs the following processing, transfers control to
the debug monitor routine, and shifts to debug mode.
(1) Saves the restored PC to DBPC.
(2) Saves the current PSW to DBPSW.
(3) Sets the NP, EP and ID bits of the PSW.
(4)
Sets the handler address (00000060H) corresponding to the debug trap to the PC and transfers
control.
Figure 8-26 illustrates the processing of the debug trap.
Figure 8-26:
Debug Trap Processing
DBTRAP instruction
DBPC
DBPSW
PSW.NP
PSW.EP
PSW.ID
PC
restored PC
PSW
1
1
1
00000060H
Exception processing
CPU processing
Summary of Contents for mPD703128
Page 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Page 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Page 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Page 612: ......