Cortex-M3 Processor Registers
2.7.1.11 FUNCTION0 Register (Offset = 28h) [reset = 0h]
FUNCTION0 is shown in
and described in
.
Function 0
Use the DWT Function Registers 0 to control the operation of the comparator 0. This comparator can:
1. Match against either the PC or the data address. This is controlled by CYCMATCH. This function is
only available for comparator 0 (COMP0).
2. Emit data or PC couples, trigger the ETM, or generate a watchpoint depending on the operation defined
by FUNCTION.
Figure 2-14. FUNCTION0 Register
31
30
29
28
27
26
25
24
RESERVED
MATCHED
R-0h
R/W-0h
23
22
21
20
19
18
17
16
RESERVED
R-0h
15
14
13
12
11
10
9
8
RESERVED
R-0h
7
6
5
4
3
2
1
0
CYCMATCH
RESERVED
EMITRANGE
RESERVED
FUNCTION
R/W-0h
R-0h
R/W-0h
R-0h
R/W-0h
Table 2-37. FUNCTION0 Register Field Descriptions
Bit
Field
Type
Reset
Description
31-25
RESERVED
R
0h
Software must not rely on the value of a reserved. Writing any other
value than the reset value may result in undefined behavior.
24
MATCHED
R/W
0h
This bit is set when the comparator matches, and indicates that the
operation defined by FUNCTION has occurred since this bit was last
read. This bit is cleared on read.
23-8
RESERVED
R
0h
Software must not rely on the value of a reserved. Writing any other
value than the reset value may result in undefined behavior.
7
CYCMATCH
R/W
0h
This bit is only available in comparator 0. When set, COMP0 will
compare against the cycle counter (CYCCNT).
6
RESERVED
R
0h
Software must not rely on the value of a reserved. Writing any other
value than the reset value may result in undefined behavior.
5
EMITRANGE
R/W
0h
Emit range field. This bit permits emitting offset when range match
occurs. PC sampling is not supported when emit range is enabled.
This field only applies for: FUNCTION = 1, 2, 3, 12, 13, 14, and 15.
4
RESERVED
R
0h
Software must not rely on the value of a reserved. Writing any other
value than the reset value may result in undefined behavior.
63
SWCU117C – February 2015 – Revised September 2015
Copyright © 2015, Texas Instruments Incorporated