Debug Peripherals Registers
199
SLAU356I – March 2015 – Revised June 2019
Copyright © 2015–2019, Texas Instruments Incorporated
Cortex-M4F Peripherals
2.5.2.7
FOLDCNT Register (Offset = 18h) [reset = Undefined]
FOLDCNT is shown in
and described in
DWT Fold Count Register. Use the DWT Fold Count Register to count the total number of folded
instructions. This counts 1 for each instruction that takes 0 cycles.
Figure 2-103. FOLDCNT Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
RESERVED
FOLDCNT
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
rw rw rw rw rw rw rw rw
Table 2-115. FOLDCNT Register Field Descriptions
Bit
Field
Type
Reset
Description
31-8
RESERVED
R
Undefined
7-0
FOLDCNT
R/W
Undefined
This counts the total number folded instructions. This counter
initializes to 0 when enabled.