SPRUIW9C October 2021 – March 2024 TMS320F280033 , TMS320F280034 , TMS320F280034-Q1 , TMS320F280036-Q1 , TMS320F280036C-Q1 , TMS320F280037 , TMS320F280037-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038-Q1 , TMS320F280038C-Q1 , TMS320F280039 , TMS320F280039-Q1 , TMS320F280039C , TMS320F280039C-Q1
Table 22-3 lists the memory-mapped registers for the HRCAP_REGS registers. All register offset addresses not listed in Table 22-3 should be considered as reserved locations and the register contents should not be modified.
| Offset | Acronym | Register Name | Write Protection | Section |
|---|---|---|---|---|
| 0h | HRCTL | High-Res Control Register | EALLOW | Go |
| 4h | HRINTEN | High-Res Calibration Interrupt Enable Register | EALLOW | Go |
| 6h | HRFLG | High-Res Calibration Interrupt Flag Register | Go | |
| 8h | HRCLR | High-Res Calibration Interrupt Clear Register | Go | |
| Ah | HRFRC | High-Res Calibration Interrupt Force Register | EALLOW | Go |
| Ch | HRCALPRD | High-Res Calibration Period Register | EALLOW | Go |
| Eh | HRSYSCLKCTR | High-Res Calibration SYSCLK Counter Register | Go | |
| 10h | HRSYSCLKCAP | High-Res Calibration SYSCLK Capture Register | Go | |
| 12h | HRCLKCTR | High-Res Calibration HRCLK Counter Register | Go | |
| 14h | HRCLKCAP | High-Res Calibration HRCLK Capture Register | Go |
Complex bit access types are encoded to fit into small table cells. Table 22-4 shows the codes that are used for access types in this section.
| Access Type | Code | Description |
|---|---|---|
| Read Type | ||
| R | R | Read |
| R-0 | R -0 | Read Returns 0s |
| Write Type | ||
| W | W | Write |
| W1C | W 1C | Write 1 to clear |
| W1S | W 1S | Write 1 to set |
| Reset or Default Value | ||
| -n | Value after reset or the default value | |
HRCTL is shown in Figure 22-3 and described in Table 22-5.
Return to the Summary Table.
High-Res Control Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | |||||||
| R/W-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RESERVED | |||||||
| R/W-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| RESERVED | |||||||
| R/W-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | CALIBCONT | CALIBSTS | CALIBSTART | PRDSEL | HRCLKE | HRE | |
| R/W-0h | R/W-0h | R-0h | R-0/W1S-0h | R/W-0h | R/W-0h | R/W-0h | |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-6 | RESERVED | R/W | 0h | Reserved |
| 5 | CALIBCONT | R/W | 0h | Continuous mode Calibration Select Bit: 0 Continuous mode disabled. 1 Continuous mode enabled. Calibration automatically restarts at end of current calibration cycle. Reset type: CPU1.SYSRSn |
| 4 | CALIBSTS | R | 0h | Calibration status Bit: 0 No active calibration cycle 1 Calibration cycle in progress Reset type: CPU1.SYSRSn |
| 3 | CALIBSTART | R-0/W1S | 0h | Calibration start Bit: 0 No effect 1 Starts the calibration cycle Reset type: CPU1.SYSRSn |
| 2 | PRDSEL | R/W | 0h | Calibration Period Match Select Bit: 0 Use SYSCLK Counter For Period Match (default at reset) 1 Reserved Reset type: CPU1.SYSRSn |
| 1 | HRCLKE | R/W | 0h | High Resolution Clock Enable Bit: 0 High resolution clock disabled (default at reset) 1 High resolution clock enabled. The clock should be enabled before enabling the high res function via the HRE bit. Reset type: CPU1.SYSRSn |
| 0 | HRE | R/W | 0h | High Resolution Enable Bit: 0 High resolution mode disabled (default at reset) 1 High resolution mode enabled. Enabling this mode will connect the capture registers and edge event modes of the ECAP to be accessed by the High Res function. Note: The High Res clock needs to be enabled (using the HRCLKE bit) first before enabling the module. Allow a certain start up stabilization period before enabling the module. Reset type: CPU1.SYSRSn |
HRINTEN is shown in Figure 22-4 and described in Table 22-6.
Return to the Summary Table.
High-Res Calibration Interrupt Enable Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | |||||||
| R-0-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RESERVED | |||||||
| R-0-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| RESERVED | |||||||
| R-0-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | CALPRDCHKSTS | CALIBDONE | RESERVED | ||||
| R-0-0h | R/W-0h | R/W-0h | R-0-0h | ||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-3 | RESERVED | R-0 | 0h | Reserved |
| 2 | CALPRDCHKSTS | R/W | 0h | Calibration Period Check status Interrupt Enable: 0 Disable Calibration Period Check interrupt status 1 Enable Calibration Period Check interrupt status Reset type: CPU1.SYSRSn |
| 1 | CALIBDONE | R/W | 0h | Calibration done Interrupt Enable: 0 Disable Calibration done Interrupt 1 Enable Calibration done Interrupt Reset type: CPU1.SYSRSn |
| 0 | RESERVED | R-0 | 0h | Reserved |
HRFLG is shown in Figure 22-5 and described in Table 22-7.
Return to the Summary Table.
High-Res Calibration Interrupt Flag Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | |||||||
| R-0-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RESERVED | |||||||
| R-0-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| RESERVED | |||||||
| R-0-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | CALPRDCHKSTS | CALIBDONE | CALIBINT | ||||
| R-0-0h | R-0h | R-0h | R-0h | ||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-3 | RESERVED | R-0 | 0h | Reserved |
| 2 | CALPRDCHKSTS | R | 0h | Calibration period check status Flag Bit: 1 Indicates that calibration ended before PRDCHK due to overflow on one of the counters. 0 Indicates no event occurred. Note: This bit remains latched until cleared by the user using the HRCLR [CALPRDCHKSTS] bit. Reset type: CPU1.SYSRSn |
| 1 | CALIBDONE | R | 0h | Calibration Done Interrupt Flag Bit: 1 Indicates calibration cycle is completed 0 Indicates calibration cycle has not completed. Note: This bit remains latched until cleared by the user using the HRCLR [CALIBDONE] bit. Reset type: CPU1.SYSRSn |
| 0 | CALIBINT | R | 0h | Global calibration Interrupt Status Flag: 1 Indicates that an interrupt was generated from CALIBDONE or CALPRDCHKSTS. 0 Indicates no interrupt generated. Reset type: CPU1.SYSRSn |
HRCLR is shown in Figure 22-6 and described in Table 22-8.
Return to the Summary Table.
High-Res Calibration Interrupt Clear Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | |||||||
| R-0-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RESERVED | |||||||
| R-0-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| RESERVED | |||||||
| R-0-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | CALPRDCHKSTS | CALIBDONE | CALIBINT | ||||
| R-0-0h | R-0/W1C-0h | R-0/W1C-0h | R-0/W1C-0h | ||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-3 | RESERVED | R-0 | 0h | Reserved |
| 2 | CALPRDCHKSTS | R-0/W1C | 0h | Clear Calibration period check status Flag Bit: 1 Clears the CALPRDCHKSTS flag register bit. 0 No effect. Note: H/W has priority over CPU writes if the user tries to clear a flag bit and an event occurs on the same cycle that tries to set the flag for the selected bit. Reset type: CPU1.SYSRSn |
| 1 | CALIBDONE | R-0/W1C | 0h | Clear Calibration Done Interrupt Flag Bit: 1 Clears the CALIBDONE interrupt flag register bit. 0 No effect. Note: H/W has priority over CPU writes if the user tries to clear a flag bit and an event occurs on the same cycle that tries to set the flag for the selected bit. Reset type: CPU1.SYSRSn |
| 0 | CALIBINT | R-0/W1C | 0h | Clear Global calibration Interrupt Flag 1 Clears the Global interrupt flag and enables further interrupts to be generated if any of the event flags are set. 0 No effect. Reset type: CPU1.SYSRSn |
HRFRC is shown in Figure 22-7 and described in Table 22-9.
Return to the Summary Table.
High-Res Calibration Interrupt Force Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | |||||||
| R-0-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RESERVED | |||||||
| R-0-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| RESERVED | |||||||
| R-0-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | CALPRDCHKSTS | CALIBDONE | RESERVED | ||||
| R-0-0h | R-0/W1S-0h | R-0/W1S-0h | R-0-0h | ||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-3 | RESERVED | R-0 | 0h | Reserved |
| 2 | CALPRDCHKSTS | R-0/W1S | 0h | Force CALPRDCHKSTS flag: 0 No effect 1 Sets the CALPRDCHKSTS flag. Reset type: CPU1.SYSRSn |
| 1 | CALIBDONE | R-0/W1S | 0h | Force CALIBDONE flag: 0 No effect 1 Sets the CALIBDONE flag. Reset type: CPU1.SYSRSn |
| 0 | RESERVED | R-0 | 0h | Reserved |
HRCALPRD is shown in Figure 22-8 and described in Table 22-10.
Return to the Summary Table.
High-Res Calibration Period 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 |
| PRD | |||||||||||||||||||||||||||||||
| R/W-003FFFFFh | |||||||||||||||||||||||||||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | PRD | R/W | 003FFFFFh | Register to program calibration period. The period value is matched against HRSYSCLKCTR. On a match an interrupt is generated and the counter registers values are captured. Reset type: CPU1.SYSRSn |
HRSYSCLKCTR is shown in Figure 22-9 and described in Table 22-11.
Return to the Summary Table.
High-Res Calibration SYSCLK Counter 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 |
| HRSYSCLKCTR | |||||||||||||||||||||||||||||||
| R-0h | |||||||||||||||||||||||||||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | HRSYSCLKCTR | R | 0h | Current SYSCLK counter value Reset type: CPU1.SYSRSn |
HRSYSCLKCAP is shown in Figure 22-10 and described in Table 22-12.
Return to the Summary Table.
High-Res Calibration SYSCLK Capture 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 |
| HRSYSCLKCAP | |||||||||||||||||||||||||||||||
| R-0h | |||||||||||||||||||||||||||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | HRSYSCLKCAP | R | 0h | HRSYSCLKCTR is captures into this register at end of calibration cycle. Reset type: CPU1.SYSRSn |
HRCLKCTR is shown in Figure 22-11 and described in Table 22-13.
Return to the Summary Table.
High-Res Calibration HRCLK Counter 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 |
| HRCLKCTR | |||||||||||||||||||||||||||||||
| R-0h | |||||||||||||||||||||||||||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | HRCLKCTR | R | 0h | Current HRCLK counter value Note: HRCLK is not synchronized to SYSCLK domain so reads may not be accurate Reset type: CPU1.SYSRSn |
HRCLKCAP is shown in Figure 22-12 and described in Table 22-14.
Return to the Summary Table.
High-Res Calibration HRCLK Capture 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 |
| HRCLKCAP | |||||||||||||||||||||||||||||||
| R-0h | |||||||||||||||||||||||||||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | HRCLKCAP | R | 0h | HRCLKCTR is captures into this register at end of calibration cycle. Note: HRCLK is not synchronized to SYSCLK domain so reads may not be accurate Reset type: CPU1.SYSRSn |