Datasheet
Chapter 7 Debug Module (DBGV1) Block Description
Freescale Semiconductor MC9S12C-Family / MC9S12GC-Family 205
Rev 01.24
7.3.2.7 Debug Control Register 2 (DBGC2)
Figure 7-13. Debug Control Register 2 (DBGC2)
Table 7-12. DBGCC Field Descriptions
Field Description
15:0 Comparator C Compare Bits — The comparator C compare bits control whether comparator C will compare
the address bus bits [15:0] to a logic 1 or logic 0. See Table 7-13.
0 Compare corresponding address bit to a logic 0
1 Compare corresponding address bit to a logic 1
Note: This register will be cleared automatically when the DBG module is armed in LOOP1 mode.
Table 7-13. Comparator C Compares
PAGSEL EXTCMP Compare High-Byte Compare
x0 No compare DBGCCH[7:0] = AB[15:8]
x1 EXTCMP[5:0] = XAB[21:16] DBGCCH[7:0] = XAB[15:14],AB[13:8]
Module Base + 0x0028
Starting address location affected by INITRG register setting.
76543210
R
BKABEN
(1)
1. When BKABEN is set (BKP mode), all bits in DBGC2 are available. When BKABEN is cleared and DBG is used in DBG mode,
bits FULL and TAGAB have no meaning.
FULL BDM TAGAB BKCEN
(2)
2. These bits can be used in BKP mode and DBG mode (when capture mode is not set in LOOP1) to provide a third breakpoint.
TAGC
2
RWCEN
2
RWC
2
W
Reset 0 0 0 00000
Table 7-14. DBGC2 Field Descriptions
Field Description
7
BKABEN
Breakpoint Using Comparator A and B Enable — This bit enables the breakpoint capability using comparator
A and B, when set (BKP mode) the DBGEN bit in DBGC1 cannot be set.
0 Breakpoint module off
1 Breakpoint module on
6
FULL
Full Breakpoint Mode Enable — This bit controls whether the breakpoint module is in dual mode or full mode.
In full mode, comparator A is used to match address and comparator B is used to match data. See
Section 7.4.1.2, “Full Breakpoint Mode,” for more details.
0 Dual address mode enabled
1 Full breakpoint mode enabled
5
BDM
Background Debug Mode Enable — This bit determines if the breakpoint causes the system to enter
background debug mode (BDM) or initiate a software interrupt (SWI).
0 Go to software interrupt on a break request
1 Go to BDM on a break request