TC1796
System Units (Vol. 1 of 2)
On-Chip Debug Support
User’s Manual
17-7
V2.0, 2007-07
OCDS, V2.0
Execution of a MTCR/MFCR Instruction
In order to protect the emulator resource, a debug event is raised whenever a MTCR or
MFCR instruction is used to read or modify an user core SFR, but an event is not raised
when the user reads or modifies one of the dedicated core debug registers:
•
DBGSR or
•
CREVT or
•
SWEVT or
•
EXEVT or
•
TR0EVT or
•
TR1EVT
The action that is performed when a MTCR or MFCR instruction is executed on user core
SFRs defined by the content of the Emulator Resource Protection Event Specifier
Register CREVT.
17.2.1.3 Debug Actions
Four types of debug actions are available:
•
Assert BRKOUT signals by the MCBS unit
•
Halt the CPU core
•
Cause a breakpoint trap
•
Generate an interrupt request
These debug actions are selected by programming the corresponding Event Specifier
registers. Their contents determine which action shall be taken when the corresponding
debug event occurs.