The Profiling Control Register (PCTRLR) is used to enable (start) profiling and disable (stop) profiling. It is also used to configure whether to count the number of executed instructions or the number of executed clock cycles, as well as define the Profiling Buffer bin usage.
This register is a write-only register. Issuing a read request has no effect, and undefined data is read. See the following figure and table.
The Bin Control value (B) can be calculated by the following formula:
Figure 1. Bin Control Value (B)
where:
- L is the Profiling Low Register
- H is the Profiling High Register
-
S is the parameter
C_DEBUG_PROFILE_SIZE
.
Figure 2. Profiling Control Register
Bits | Name | Description | Reset Value |
---|---|---|---|
7 | Enable | Enable and start profiling | 0 |
6 | Disable | Disable and stop profiling | 0 |
5 | Enable Cycle Count |
Enable cycle count to count clock cycles of executed instruction: 0 = Disabled, number of executed instructions counted 1 = Enabled, clock cycles of executed instructions counted |
0 |
4:0 | Bin Control | The number of addresses counted by each bin in the Profiling Buffer | 00000 |