![](http://datasheet.mmic.net.cn/290000/XPC801ZP25_datasheet_16187868/XPC801ZP25_433.png)
Development Support
18-22
MPC801 USER’S MANUAL
MOTOROLA
18
18.3.1 Trap Enable Mode
Trap enable mode is used to shift the following control signals into the core internal
development support logic:
An instruction trap enable signal is used to program the instruction breakpoint
on-the-fly.
A load/store trap enable signal is used to program the load/store breakpoint on-the-fly.
A nonmaskable breakpoint is used to assert the nonmaskable external breakpoint.
A maskable breakpoint is used to assert the maskable external breakpoint.
A VSYNC control code is used to assert and negate VSYNC operation.
In debug mode, the development port also controls the debug mode features of the core.
For more details, refer to
Section 18.3.3 The Development Port
.
18.3.2 Debug Mode
Debug mode provides the development system with the following functions:
Controls and maintains all circumstances of processor execution.
— The development port can force the core to enter debug mode even when the
external interrupts are disabled.
Debug mode can be entered immediately out of reset, thus allowing the user to debug
a system without ROM.
The events that cause the machine to enter into debug mode can be selectively defined
through an enable register.
Contains a cause register that indicates why debug mode is entered.
After entering debug mode, program execution continues from the location where they
entered debug.
All instructions are fetched from the development port, while load/store accesses are
performed on the real system memory in debug mode.
A simple method is provided for memory dump and load via the data register of the
development port that is accessed with
mtspr
and
mfspr
.
The processor enters the privileged state (MSR
PR
=0) in debug mode, thus allowing
execution of any instruction and access to any storage location.
An OR signal of all interrupt cause register bits enables the development port to detect
pending events while already in debug mode. For example, the development port can
detect a debug mode access to nonexisting memory space.