Chapter 36 Nexus Development Interface (NDI)
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
885
36.11.2 Debug Control and Status Registers
Debug Control Registers (DBCR0, DBCR1, DBCR2, DBCR4, and DBERC0) are used to enable debug
events, reset the processor, and set the debug mode of the processor. The Debug Status register (DBSR)
records debug exceptions while Internal or External Debug Mode is enabled.
e200z0h requires that a context synchronizing instruction follow a
mtspr
DBCR0-4 or DBSR to ensure
that any alterations enabling/disabling debug events are effective. The context synchronizing instruction
may or may not be affected by the alteration. Typically, an
isync
instruction is used to create a
synchronization boundary beyond which it can be guaranteed that the newly written control values are in
effect.
For watchpoint generation, configuration settings contained in DBCR1and DBCR2 are used, even though
the corresponding event(s) may be disabled (via DBCR0) from setting DBSR flags.
36.11.2.1 Debug Control Register 0 (DBCR0)
Debug Control Register 0 is used to enable debug modes and controls which debug events are allowed to
set DBSR flags. e200z0h adds some implementation specific bits to this register, as seen in
.
SPR - 308;
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
EDM
IDM
RST
ICMP
BR
T
IR
PT
TRAP
IA
C1
IA
C2
IA
C3
IA
C4
DA
C
1
DA
C
2
W
Reset
1
1
DBCR0
EDM
is affected by
j_trst_b
or
m_por
assertion, and remains reset while in the Test_Logic_Reset state, but
is not affected by
p_reset_b
. All other bits are reset by processor reset
p_reset_b
if DBCR0
EDM
=0, as well as
unconditionally by
m_por
. If DBCR0
EDM
=1, DBERC0 masks off hardware-owned resources (other than RST) from
reset by
p_reset_b,
and only software-owned resources indicated by DBERC0 and the DBCR0
RST
field will be
reset by
p_reset_b
. The DBCR0
RST
field will always be reset by
p_reset_b
regardless of the value of DBCR0
EDM
.
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
R
RET
0
0
0
0
DEVT1
DEVT2
0
0
CIRPT
CRET
0
0
0
0
0
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 36-4. DBCR0 Register