Debug Peripherals Registers
203
SLAU356I – March 2015 – Revised June 2019
Copyright © 2015–2019, Texas Instruments Incorporated
Cortex-M4F Peripherals
2.5.2.11 FUNCTION0 Register (Offset = 28h) [reset = 00000000h]
FUNCTION0 is shown in
and described in
DWT Function Register 0. Use the DWT Function Registers 0-3 to control the operation of the comparator.
Each 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 (DWT_COMP0). 2. Perform data value
comparisons if associated address comparators have performed an address match. This function is only
available for comparator 1 (DWT_COMP1). 3. Emit data or PC couples, trigger the ETM, or generate a
watchpoint depending on the operation defined by FUNCTION.
Figure 2-107. FUNCTION0 Register
31
30
29
28
27
26
25
24
RESERVED
MATCHED
r-(0)
r-(0)
r-(0)
r-(0)
r-(0)
r-(0)
r-(0)
r-(0)
23
22
21
20
19
18
17
16
RESERVED
DATAVADDR1
r-(0)
r-(0)
r-(0)
r-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
15
14
13
12
11
10
9
8
DATAVADDR0
DATAVSIZE
LNK1ENA
DATAVMATCH
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
r-(0)
rw-(0)
7
6
5
4
3
2
1
0
RESERVED
EMITRANGE
RESERVED
FUNCTION
r-(0)
r-(0)
rw-(0)
r-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
Table 2-119. FUNCTION0 Register Field Descriptions
Bit
Field
Type
Reset
Description
31-25
RESERVED
R
0h
24
MATCHED
R
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-20
RESERVED
R
0h
19-16
DATAVADDR1
R/W
0h
Identity of a second linked address comparator for data value
matching when DATAVMATCH == 1 and LNK1ENA == 1.
15-12
DATAVADDR0
R/W
0h
Identity of a linked address comparator for data value matching
when DATAVMATCH == 1.
11-10
DATAVSIZE
R/W
0h
Defines the size of the data in the COMP register that is to be
matched:
0b (R/W) = byte
1b (R/W) = halfword
10b (R/W) = word
11b (R/W) = Unpredictable.
9
LNK1ENA
R
0h
8
DATAVMATCH
R/W
0h
This bit is only available in comparator 1. When DATAVMATCH is
set, this comparator performs data value compares. The
comparators given by DATAVADDR0 and DATAVADDR1provide the
address for the data comparison. If DATAVMATCH is set in
DWT_FUNCTION1, the FUNCTION setting for the comparators
given by DATAVADDR0 and DATAVADDR1 are overridden and
those comparators only provide the address match for the data
comparison.
7-6
RESERVED
R
0h
5
EMITRANGE
R/W
0h
Emit range field. Reserved to permit emitting offset when range
match occurs. Reset clears the EMITRANGE bit. PC sampling is not
supported when EMITRANGE is enabled. EMITRANGE only applies
for: FUNCTION = b0001, b0010, b0011, b1100, b1101, b1110, and
b1111.