SWRU626 December 2025 CC3501E , CC3551E
Table 3-102 lists the memory-mapped registers for the DWT registers. All register offset addresses not listed in Table 3-102 should be considered as reserved locations and the register contents should not be modified.
| Offset | Acronym | Register Name | Section |
|---|---|---|---|
| 0h | DWT Control Register | Provides configuration and status information for the DWT unit, and used to control features of the unit | Section 3.9.5.1 |
| 4h | DWT Cycle Count Register | Shows or sets the value of the processor cycle counter, CYCCNT | Section 3.9.5.2 |
| 8h | DWT CPI Count Register | Counts additional cycles required to execute multicycle instructions and instruction fetch stalls. | Section 3.9.5.3 |
| Ch | DWT Exception Overhead Count Register | Counts the total cycles spent in exception processing | Section 3.9.5.4 |
| 10h | DWT Sleep Count Register | Counts the total number of cycles that the processor is sleeping. | Section 3.9.5.5 |
| 14h | DWT LSU Count Register | Increments on the additional cycles required to execute all load or store instructions | Section 3.9.5.6 |
| 18h | DWT Folded Instruction Count Register | Increments on the additional cycles required to execute all load or store instructions | Section 3.9.5.7 |
| 1Ch | DWT Program Counter Sample Register | Samples the current value of the Program Counter. | Section 3.9.5.8 |
| 20h | DWT Comparator Register 0 | Provides a reference value for use by watchpoint comparator 0 | Section 3.9.5.9 |
| 28h | DWT Comparator Function Register 0 | Controls the operation of watchpoint comparator 0 | Section 3.9.5.10 |
| 30h | DWT Comparator Register 1 | Provides a reference value for use by watchpoint comparator 1 | Section 3.9.5.11 |
| 38h | DWT Comparator Function Register 1 | Controls the operation of watchpoint comparator 1 | Section 3.9.5.12 |
| 40h | DWT Comparator Register 2 | Provides a reference value for use by watchpoint comparator 2 | Section 3.9.5.13 |
| 48h | DWT Comparator Function Register 2 | Controls the operation of watchpoint comparator 2 | Section 3.9.5.14 |
| 50h | DWT Comparator Register 3 | Provides a reference value for use by watchpoint comparator 3 | Section 3.9.5.15 |
| 58h | DWT Comparator Function Register 3 | Controls the operation of watchpoint comparator 3 | Section 3.9.5.16 |
| FBCh | DWT Device Architecture Register | Provides CoreSight discovery information for the DWT | Section 3.9.5.17 |
| FCCh | DWT Device Type Register | Provides CoreSight discovery information for the DWT | Section 3.9.5.18 |
| FD0h | DWT Peripheral Identification Register 4 | Provides CoreSight discovery information for the DWT | Section 3.9.5.19 |
| FD4h | DWT Peripheral Identification Register 5 | Provides CoreSight discovery information for the DWT | Section 3.9.5.20 |
| FD8h | DWT Peripheral Identification Register 6 | Provides CoreSight discovery information for the DWT | Section 3.9.5.21 |
| FDCh | DWT Peripheral Identification Register 7 | Provides CoreSight discovery information for the DWT | Section 3.9.5.22 |
| FE0h | DWT Peripheral Identification Register 0 | Provides CoreSight discovery information for the DWT | Section 3.9.5.23 |
| FE4h | DWT Peripheral Identification Register 1 | Provides CoreSight discovery information for the DWT | Section 3.9.5.24 |
| FE8h | DWT Peripheral Identification Register 2 | Provides CoreSight discovery information for the DWT | Section 3.9.5.25 |
| FECh | DWT Peripheral Identification Register 3 | Provides CoreSight discovery information for the DWT | Section 3.9.5.26 |
| FF0h | DWT Component Identification Register 0 | Provides CoreSight discovery information for the DWT | Section 3.9.5.27 |
| FF4h | DWT Component Identification Register 1 | Provides CoreSight discovery information for the DWT | Section 3.9.5.28 |
| FF8h | DWT Component Identification Register 2 | Provides CoreSight discovery information for the DWT | Section 3.9.5.29 |
| FFCh | DWT Component Identification Register 3 | Provides CoreSight discovery information for the DWT | Section 3.9.5.30 |
Complex bit access types are encoded to fit into small table cells. Table 3-103 shows the codes that are used for access types in this section.
| Access Type | Code | Description |
|---|---|---|
| Read Type | ||
| R | R | Read |
| RC | R C | Read to Clear |
| Write Type | ||
| W | W | Write |
| Reset or Default Value | ||
| -n | Value after reset or the default value | |
DWT Control Register is shown in Table 3-104.
Return to the Summary Table.
Provides configuration and status information for the DWT unit, and used to control features of the unit
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-28 | Number of comparators | R | 0h | Number of DWT comparators implemented |
| 27 | No trace packets | R | 0h | Indicates whether the implementation does not support trace |
| 26 | RESERVED | R | 0h | Reserved, RAZ |
| 25 | No cycle count | R | 1h | Indicates whether the implementation does not include a cycle counter |
| 24 | No profile counters | R | 0h | Indicates whether the implementation does not include the profiling counters |
| 23 | Cycle counter disabled secure | R/W | 0h | Controls whether the cycle counter is disabled in Secure state |
| 22 | Cycle event enable | R/W | 0h | Enables Event Counter packet generation on POSTCNT underflow |
| 21 | Fold event enable | R/W | 0h | Enables DWT_FOLDCNT counter |
| 20 | LSU event enable | R/W | 0h | Enables DWT_LSUCNT counter |
| 19 | Sleep event enable | R/W | 0h | Enable DWT_SLEEPCNT counter |
| 18 | Exception event enable | R/W | 0h | Enables DWT_EXCCNT counter |
| 17 | CPI event enable | R/W | 0h | Enables DWT_CPICNT counter |
| 16 | Exception trace enable | R/W | 0h | Enables generation of Exception Trace packets |
| 15-13 | RESERVED | R | 0h | Reserved, RES0 |
| 12 | PC sample enable | R/W | 0h | Enables use of POSTCNT counter as a timer for Periodic PC Sample packet generation |
| 11-10 | Synchronization tap | R/W | 0h | Selects the position of the synchronization packet counter tap on the CYCCNT counter. This determines the Synchronization packet rate |
| 9 | Cycle count tap | R/W | 0h | Selects the position of the POSTCNT tap on the CYCCNT counter |
| 8-5 | POSTCNT initial | R/W | 0h | Initial value for the POSTCNT counter |
| 4-1 | POSTCNT preset | R/W | 0h | Reload value for the POSTCNT counter |
| 0 | CYCCNT enable | R/W | 0h | Enables CYCCNT |
DWT Cycle Count Register is shown in Table 3-105.
Return to the Summary Table.
Shows or sets the value of the processor cycle counter, CYCCNT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | Incrementing cycle counter value | R/W | 0h | Increments one on each processor clock cycle when DWT_CTRL.CYCCNTENA == 1 and DEMCR.TRCENA == 1. On overflow, CYCCNT wraps to zero |
DWT CPI Count Register is shown in Table 3-106.
Return to the Summary Table.
Counts additional cycles required to execute multicycle instructions and instruction fetch stalls.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-0 | Base instruction overhead counter | R/W | 0h | Counts one on each cycle when all of the following are true: - DWT_CTRL.CPIEVTENA == 1 and DEMCR.TRCENA == 1. - No instruction is executed. - No load-store operation is in progress, see DWT_LSUCNT. - No exception-entry or exception-exit operation is in progress, see DWT_EXCCNT. - The PE is not in a power saving mode, see DWT_SLEEPCNT. - Either SecureNoninvasiveDebugAllowed() == TRUE, or the PE is in Non-secure state and NoninvasiveDebugAllowed() == TRUE. |
DWT Exception Overhead Count Register is shown in Table 3-107.
Return to the Summary Table.
Counts the total cycles spent in exception processing
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-0 | The exception overhead counter | R/W | 0h | Counts one on each cycle when all of the following are true: - DWT_CTRL.EXCEVTENA == 1 and DEMCR.TRCENA == 1. - No instruction is executed, see DWT_CPICNT. - An exception-entry or exception-exit related operation is in progress. - Either SecureNoninvasiveDebugAllowed() == TRUE, or NS-Req for the operation is set to Non-secure and NoninvasiveDebugAllowed() == TRUE. |
DWT Sleep Count Register is shown in Table 3-108.
Return to the Summary Table.
Counts the total number of cycles that the processor is sleeping.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-0 | Sleep counter | R/W | 0h | Counts one on each cycle when all of the following are true: - DWT_CTRL.SLEEPEVTENA == 1 and DEMCR.TRCENA == 1. - No instruction is executed, see DWT_CPICNT. - No load-store operation is in progress, see DWT_LSUCNT. - No exception-entry or exception-exit operation is in progress, see DWT_EXCCNT. - The PE is in a power saving mode. - Either SecureNoninvasiveDebugAllowed() == TRUE, or the PE is in Non-secure state and NoninvasiveDebugAllowed() == TRUE. |
DWT LSU Count Register is shown in Table 3-109.
Return to the Summary Table.
Increments on the additional cycles required to execute all load or store instructions
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-0 | Load-store overhead counter | R/W | 0h | Counts one on each cycle when all of the following are true: - DWT_CTRL.LSUEVTENA == 1 and DEMCR.TRCENA == 1. - No instruction is executed, see DWT_CPICNT. - No exception-entry or exception-exit operation is in progress, see DWT_EXCCNT. - A load-store operation is in progress. - Either SecureNoninvasiveDebugAllowed() == TRUE, or NS-Req for the operation is set to Non-secure and NoninvasiveDebugAllowed() == TRUE. |
DWT Folded Instruction Count Register is shown in Table 3-110.
Return to the Summary Table.
Increments on the additional cycles required to execute all load or store instructions
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-0 | Folded instruction counter | R/W | 0h | Counts on each cycle when all of the following are true: - DWT_CTRL.FOLDEVTENA == 1 and DEMCR.TRCENA == 1. - At least two instructions are executed, see DWT_CPICNT. - Either SecureNoninvasiveDebugAllowed() == TRUE, or the PE is in Non-secure state and NoninvasiveDebugAllowed() == TRUE. The counter is incremented by the number of instructions executed, minus one |
DWT Program Counter Sample Register is shown in Table 3-111.
Return to the Summary Table.
Samples the current value of the Program Counter.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | Executed instruction address sample. Recently executed instruction address sample value | R | 0h | The possible values of this field are: 0xFFFFFFFF One of the following is true: - The PE is halted in Debug state. - The Security Extension is implemented, the sampled instruction was executed in Secure state, and SecureNoninvasiveDebugAllowed() == FALSE. - NoninvasiveDebugAllowed() == FALSE. - DEMCR.TRCENA == 0. - The address of a recently-executed instruction is not available. Not 0xFFFFFFFF Instruction address of a recently executed instruction. Bit [0] of the sample instruction address is 0. |
DWT Comparator Register 0 is shown in Table 3-112.
Return to the Summary Table.
Provides a reference value for use by watchpoint comparator 0
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | Cycle, PC, address or data value | R/W | 0h | Reference value for comparison. Behaviour depends on the value of DWT_FUNCTIONn.MATCH |
DWT Comparator Function Register 0 is shown in Table 3-113.
Return to the Summary Table.
Controls the operation of watchpoint comparator 0
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-27 | Identify capability | R | Bh | Identifies the capabilities for MATCH for comparator *n |
| 26-25 | RESERVED | R | 0h | Reserved, RES0 |
| 24 | Comparator matched | RC | 0h | Set to 1 when the comparator matches |
| 23-12 | RESERVED | R | 0h | Reserved, RES0 |
| 11-10 | Data value size | R/W | 0h | Defines the size of the object being watched for by Data Value and Data Address comparators |
| 9-6 | RESERVED | R | 0h | Reserved, RES0 |
| 5-4 | Action on match | R/W | 0h | Defines the action on a match. This field is ignored and the comparator generates no actions if it is disabled by MATCH |
| 3-0 | Match type | R/W | 0h | Controls the type of match generated by this comparator |
DWT Comparator Register 1 is shown in Table 3-114.
Return to the Summary Table.
Provides a reference value for use by watchpoint comparator 1
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | Cycle, PC, address or data value | R/W | 0h | Reference value for comparison. Behaviour depends on the value of DWT_FUNCTIONn.MATCH |
DWT Comparator Function Register 1 is shown in Table 3-115.
Return to the Summary Table.
Controls the operation of watchpoint comparator 1
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-27 | Identify capability | R | 1Ah | Identifies the capabilities for MATCH for comparator *n |
| 26-25 | RESERVED | R | 0h | Reserved, RES0 |
| 24 | Comparator matched | RC | 0h | Set to 1 when the comparator matches |
| 23-12 | RESERVED | R | 0h | Reserved, RES0 |
| 11-10 | Data value size | R/W | 0h | Defines the size of the object being watched for by Data Value and Data Address comparators |
| 9-6 | RESERVED | R | 0h | Reserved, RES0 |
| 5-4 | Action on match | R/W | 0h | Defines the action on a match. This field is ignored and the comparator generates no actions if it is disabled by MATCH |
| 3-0 | Match type | R/W | 0h | Controls the type of match generated by this comparator |
DWT Comparator Register 2 is shown in Table 3-116.
Return to the Summary Table.
Provides a reference value for use by watchpoint comparator 2
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | Cycle, PC, address or data value | R/W | 0h | Reference value for comparison. Behaviour depends on the value of DWT_FUNCTIONn.MATCH |
DWT Comparator Function Register 2 is shown in Table 3-117.
Return to the Summary Table.
Controls the operation of watchpoint comparator 2
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-27 | Identify capability | R | Ah | Identifies the capabilities for MATCH for comparator *n |
| 26-25 | RESERVED | R | 0h | Reserved, RES0 |
| 24 | Comparator matched | RC | 0h | Set to 1 when the comparator matches |
| 23-12 | RESERVED | R | 0h | Reserved, RES0 |
| 11-10 | Data value size | R/W | 0h | Defines the size of the object being watched for by Data Value and Data Address comparators |
| 9-6 | RESERVED | R | 0h | Reserved, RES0 |
| 5-4 | Action on match | R/W | 0h | Defines the action on a match. This field is ignored and the comparator generates no actions if it is disabled by MATCH |
| 3-0 | Match type | R/W | 0h | Controls the type of match generated by this comparator |
DWT Comparator Register 3 is shown in Table 3-118.
Return to the Summary Table.
Provides a reference value for use by watchpoint comparator 3
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | Cycle, PC, address or data value | R/W | 0h | Reference value for comparison. Behaviour depends on the value of DWT_FUNCTIONn.MATCH |
DWT Comparator Function Register 3 is shown in Table 3-119.
Return to the Summary Table.
Controls the operation of watchpoint comparator 3
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-27 | Identify capability | R | Ah | Identifies the capabilities for MATCH for comparator *n |
| 26-25 | RESERVED | R | 0h | Reserved, RES0 |
| 24 | Comparator matched | RC | 0h | Set to 1 when the comparator matches |
| 23-12 | RESERVED | R | 0h | Reserved, RES0 |
| 11-10 | Data value size | R/W | 0h | Defines the size of the object being watched for by Data Value and Data Address comparators |
| 9-6 | RESERVED | R | 0h | Reserved, RES0 |
| 5-4 | Action on match | R/W | 0h | Defines the action on a match. This field is ignored and the comparator generates no actions if it is disabled by MATCH |
| 3-0 | Match type | R/W | 0h | Controls the type of match generated by this comparator |
DWT Device Architecture Register is shown in Table 3-120.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-21 | Architect | R | 23Bh | Defines the architect of the component. Bits [31:28] are the JEP106 continuation code (JEP106 bank ID, minus 1) and bits [27:21] are the JEP106 ID code. |
| 20 | DEVARCH Present | R | 1h | Defines that the DEVARCH register is present |
| 19-16 | Revision | R | 0h | Defines the architecture revision of the component |
| 15-12 | Architecture Version | R | 1h | Defines the architecture version of the component |
| 11-0 | Architecture Part | R | A02h | Defines the architecture of the component |
DWT Device Type Register is shown in Table 3-121.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-4 | Sub-type | R | 0h | Component sub-type |
| 3-0 | Major type | R | 0h | Component major type |
DWT Peripheral Identification Register 4 is shown in Table 3-122.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-4 | 4KB count | R | 0h | See CoreSight Architecture Specification |
| 3-0 | JEP106 continuation code | R | 4h | See CoreSight Architecture Specification |
DWT Peripheral Identification Register 5 is shown in Table 3-123.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | RESERVED | R | 0h | Reserved, RES0 |
DWT Peripheral Identification Register 6 is shown in Table 3-124.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | RESERVED | R | 0h | Reserved, RES0 |
DWT Peripheral Identification Register 7 is shown in Table 3-125.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | RESERVED | R | 0h | Reserved, RES0 |
DWT Peripheral Identification Register 0 is shown in Table 3-126.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-0 | Part number bits [7:0] | R | 21h | See CoreSight Architecture Specification |
DWT Peripheral Identification Register 1 is shown in Table 3-127.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-4 | JEP106 identification code bits [3:0] | R | Bh | See CoreSight Architecture Specification |
| 3-0 | Part number bits [11:8] | R | Dh | See CoreSight Architecture Specification |
DWT Peripheral Identification Register 2 is shown in Table 3-128.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-4 | Component revision | R | 0h | See CoreSight Architecture Specification |
| 3 | JEDEC assignee value is used | R | 1h | See CoreSight Architecture Specification |
| 2-0 | JEP106 identification code bits [6:4] | R | 3h | See CoreSight Architecture Specification |
DWT Peripheral Identification Register 3 is shown in Table 3-129.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-4 | RevAnd | R | 0h | See CoreSight Architecture Specification |
| 3-0 | Customer Modified | R | 0h | See CoreSight Architecture Specification |
DWT Component Identification Register 0 is shown in Table 3-130.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-0 | CoreSight component identification preamble | R | Dh | See CoreSight Architecture Specification |
DWT Component Identification Register 1 is shown in Table 3-131.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-4 | CoreSight component class | R | 9h | See CoreSight Architecture Specification |
| 3-0 | CoreSight component identification preamble | R | 0h | See CoreSight Architecture Specification |
DWT Component Identification Register 2 is shown in Table 3-132.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-0 | CoreSight component identification preamble | R | 5h | See CoreSight Architecture Specification |
DWT Component Identification Register 3 is shown in Table 3-133.
Return to the Summary Table.
Provides CoreSight discovery information for the DWT
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved, RES0 |
| 7-0 | CoreSight component identification preamble | R | B1h | See CoreSight Architecture Specification |