Table 11-9 Dwt Cpi Count Register Bit Assignments; Figure 11-6 Dwt Cpi Count Register Bit Assignments - ARM Cortex-M3 Technical Reference Manual

R2p0
Hide thumbs Also See for Cortex-M3:
Table of Contents

Advertisement

System Debug
31
Bits
Field
Function
[31:8]
-
Reserved.
[7:0]
CPICNT
Current CPI counter value. Increments on the additional cycles (the first cycle is not counted)
required to execute all instructions except those recorded by DWT_LSUCNT. This counter also
increments on all instruction fetch stalls.
If CPIEVTENA is set, an event is emitted when the counter overflows.
Clears to 0 on enabling.
11-20
Applications and debuggers can use the counter to measure elapsed execution
time. By subtracting a start and an end time, an application can measure time
between in-core clocks (other than when Halted in debug). This is valid to 2
core clock cycles (for example, almost 86 seconds at 50MHz).
DWT CPI Count Register
Use the DWT CPI Count Register to count the total number of instruction cycles beyond
the first cycle.
The register address, access type, and Reset state are:
Address
0xE0001008
Access
Read-write
Reset state
-
Figure 11-6 shows the bit assignments of the DWT CPI Count Register.
Table 11-9 describes the bit assignments of the DWT CPI Count Register.
DWT Exception Overhead Count Register
Use the DWT Exception Overhead Count Register to count the total cycles spent in
interrupt processing.
The register address, access type, and Reset state are:
Address
0xE000100C
Copyright © 2005-2008 ARM Limited. All rights reserved.
Reserved

Figure 11-6 DWT CPI Count Register bit assignments

Table 11-9 DWT CPI Count Register bit assignments

Non-Confidential
32
8 7
0
CPICNT
ARM DDI 0337G
Unrestricted Access

Advertisement

Table of Contents
loading

Table of Contents