![](http://datasheet.mmic.net.cn/370000/P9S12XEP100J1VVLR_datasheet_16728329/P9S12XEP100J1VVLR_328.png)
Chapter 8 S12X Debug (S12XDBGV3) Module
MC9S12XE-Family Reference Manual , Rev. 1.07
328
Freescale Semiconductor
8.4.2.1
Exact Address Comparator Match (Comparators A and C)
Withrangecomparisonsdisabled,thematchconditionisanexactequivalenceofaddress/databuswiththe
value stored in the comparator address/data registers. Further qualification of the type of access (R/W,
word/byte) is possible.
ComparatorsAandCdonotfeatureSZEorSZcontrolbits,thustheaccesssizeisnotcompared.Theexact
address is compared, thus with the comparator address register loaded with address (n) a word access of
address (n–1) also accesses (n) but does not cause a match.
Table 8-39
lists access considerations without
data bus compare.
Table 8-38
lists access considerations with data bus comparison. To compare byte
accesses DBGXDH must be loaded with the data byte, the low byte must be masked out using the
DBGXDLM mask register. On word accesses the data byte of the lower address is mapped to DBGXDH.
Comparators A and C feature an NDB control bit to determine if a match occurs when the data bus differs
to comparator register contents or when the data bus is equivalent to the comparator register contents.
8.4.2.2
Exact Address Comparator Match (Comparators B and D)
Comparators B and D feature SZ and SZE control bits. If SZE is clear, then the comparator address match
qualification functions the same as for comparators A and C.
If the SZE bit is set the access size (word or byte) is compared with the SZ bit value such that only the
specifiedtypeofaccesscausesamatch.Thusifconfiguredforabyteaccessofaparticularaddress,aword
access covering the same address does not lead to match.
Table 8-38. Comparator A and C Data Bus Considerations
Access
Address
DBGxDH
DBGxDL
DBGxDHM
DBGxDLM
Example Valid Match
Word
ADDR[n]
Data[n]
Data[n+1]
$FF
$FF
MOVW #$WORD ADDR[n]
Byte
ADDR[n]
Data[n]
x
$FF
$00
MOVB #$BYTE ADDR[n]
Word
ADDR[n]
Data[n]
x
$FF
$00
MOVW #$WORD ADDR[n]
Word
ADDR[n]
x
Data[n+1]
$00
$FF
MOVW #$WORD ADDR[n]
Table 8-39. Comparator Access Size Considerations
Comparator
Address
SZE
SZ8
Condition For Valid Match
Word and byte accesses of ADDR[n]
1
MOVB #$BYTE ADDR[n]
MOVW #$WORD ADDR[n]
Word and byte accesses of ADDR[n]
1
MOVB #$BYTE ADDR[n]
MOVW #$WORD ADDR[n]
Word accesses of ADDR[n]
1
MOVW #$WORD ADDR[n]
Comparators
A and C
ADDR[n]
—
—
1
A word access of ADDR[n-1] also accesses ADDR[n] but does not generate a match.
The comparator address register must contain the exact address used in the code.
Comparators
B and D
ADDR[n]
0
X
Comparators
B and D
ADDR[n]
1
0
Comparators
B and D
ADDR[n]
1
1
Byte accesses of ADDR[n]
MOVB #$BYTE ADDR[n]