MPC555
/
MPC556
DEVELOPMENT SUPPORT
MOTOROLA
USER’S MANUAL
Rev. 15 October 2000
21-29
The processor enters into the debug mode state when at least one of the bits in the
exception cause register (ECR) is set, the corresponding bit in the debug enable reg-
ister (DER) is enabled and debug mode is enabled. When debug mode is enabled and
an enabled event occurs, the processor waits until its pipeline is empty and then starts
fetching the next instructions from the development port. For information on the exact
value of machine status save/restore registers (SRR0 and SRR1) refer to
When the processor is in debug mode the freeze indication is asserted thus allowing
any peripheral that is programmed to do so to stop. The fact that the CPU is in debug
mode is also broadcast to the external world using the value b11 on the VFLS pins.
NOTE
The freeze signal can be asserted by software when debug mode is
disabled.
The development port should read the value of the exception cause register (ECR) in
order to get the cause of the debug mode entry.
Reading the exception cause register
(ECR) clears all its bits
.
21.4.1.3 The Check Stop State and Debug Mode
The CPU enters the check stop state if the machine check interrupt is disabled
(MSRME = 0) and a machine check interrupt is detected. However, if a machine check
interrupt is detected when MSRME = 0, debug mode is enabled and the check stop
enable bit in the debug enable register (DER) is set, the CPU enters debug mode rath-
er then the check stop state.
The different actions taken by the CPU when a machine check interrupt is detected
are shown in the following table.
21.4.1.4 Saving Machine State upon Entering Debug Mode
If entering debug mode was as a result of any load/store type exception, and therefore
the DAR (data address register) and DSISR (data storage interrupt status register)
Table 21-9 The Check Stop State and Debug Mode
MSR
ME
Debug
Mode
Enable
CHSTPE
1
NOTES:
1. Check stop enable bit in the debug enable register (DER)
MCIE
2
2. Machine check interrupt enable bit in the debug enable register (DER)
Action Performed by the CPU when
Detecting a Machine Check Interrupt
Exception Cause
Register (ECR)
Value
0
0
X
X
Enter the check stop state
0x20000000
1
0
X
X
Branch to the machine check interrupt
0x10000000
0
1
0
X
Enter the check stop state
0x20000000
0
1
1
X
Enter Debug Mode
0x20000000
1
1
X
0
Branch to the machine check interrupt
0x10000000
1
1
X
1
Enter Debug Mode
0x10000000
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..