Debug Peripherals Registers
192
SLAU356I – March 2015 – Revised June 2019
Copyright © 2015–2019, Texas Instruments Incorporated
Cortex-M4F Peripherals
2.5.2.1
CTRL Register (Offset = 0h) [reset = 40000000h]
CTRL is shown in
and described in
.
DWT Control Register. Use the DWT Control Register to enable the DWT unit.
Figure 2-97. CTRL Register
31
30
29
28
27
26
25
24
RESERVED
NOCYCCNT
NOPRFCNT
r-(0)
r-(1)
r-(0)
r-(0)
r-(0)
r-(0)
r-(0)
r-(0)
23
22
21
20
19
18
17
16
RESERVED
CYCEVTENA
FOLDEVTENA
LSUEVTENA
SLEEPEVTEN
A
EXCEVTENA
CPIEVTENA
EXCTRCENA
r-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
15
14
13
12
11
10
9
8
RESERVED
PCSAMPLEEN
A
SYNCTAP
CYCTAP
POSTCNT
r-(0)
r-(0)
r-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
7
6
5
4
3
2
1
0
POSTCNT
POSTPRESET
CYCCNTENA
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
Table 2-109. CTRL Register Field Descriptions
Bit
Field
Type
Reset
Description
31-26
RESERVED
R
10h
25
NOCYCCNT
R/W
0h
When set, DWT_CYCCNT is not supported.
24
NOPRFCNT
R/W
0h
When set, DWT_FOLDCNT, DWT_LSUCNT, DWT_SLEEPCNT,
DWT_EXCCNT, and DWT_CPICNT are not supported.
23
RESERVED
R/W
0h
22
CYCEVTENA
R/W
0h
Enables Cycle count event. Emits an event when the POSTCNT
counter triggers it. See CYCTAP (bit [9]) and POSTPRESET, bits
[4:1], for details. This event is only emitted if PCSAMPLENA, bit [12],
is disabled. PCSAMPLENA overrides the setting of this bit. Reset
clears the CYCEVTENA bit.
0b (R/W) = Cycle count events disabled.
1b (R/W) = Cycle count events enabled.
21
FOLDEVTENA
R/W
0h
Enables Folded instruction count event. Emits an event when
DWT_FOLDCNT overflows (every 256 cycles of folded instructions).
A folded instruction is one that does not incur even one cycle to
execute. For example, an IT instruction is folded away and so does
not use up one cycle. Reset clears the FOLDEVTENA bit.
0b (R/W) = Folded instruction count events disabled.
1b (R/W) = Folded instruction count events enabled.
20
LSUEVTENA
R/W
0h
Enables LSU count event. Emits an event when DWT_LSUCNT
overflows (every 256 cycles of LSU operation). LSU counts include
all LSU costs after the initial cycle for the instruction. Reset clears
the LSUEVTENA bit.
0b (R/W) = LSU count events disabled.
1b (R/W) = LSU count events enabled.
19
SLEEPEVTENA
R/W
0h
Enables Sleep count event. Emits an event when DWT_SLEEPCNT
overflows (every 256 cycles that the processor is sleeping). Reset
clears the SLEEPEVTENA bit.
0b (R/W) = Sleep count events disabled.
1b (R/W) = Sleep count events enabled.