SPRUIZ1B July 2023 – August 2024 TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
Table 3-53 lists the memory-mapped registers for the WD_REGS registers. All register offset addresses not listed in Table 3-53 should be considered as reserved locations and the register contents should not be modified.
Offset | Acronym | Register Name | Write Protection | Section |
---|---|---|---|---|
22h | SCSR | System Control & Status Register | EALLOW | Go |
23h | WDCNTR | Watchdog Counter Register | EALLOW | Go |
25h | WDKEY | Watchdog Reset Key Register | EALLOW | Go |
28h | SYNCBUSYWD | SYNCBUSY status for Watchdog Register | EALLOW | Go |
29h | WDCR | Watchdog Control Register | EALLOW | Go |
2Ah | WDWCR | Watchdog Windowed Control Register | EALLOW | Go |
Complex bit access types are encoded to fit into small table cells. Table 3-54 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 |
W1S | W 1S | Write 1 to set |
Reset or Default Value | ||
-n | Value after reset or the default value | |
Register Array Variables | ||
i,j,k,l,m,n | When these variables are used in a register name, an offset, or an address, they refer to the value of a register array where the register is part of a group of repeating registers. The register groups form a hierarchical structure and the array is represented with a formula. | |
y | When this variable is used in a register name, an offset, or an address it refers to the value of a register array. |
SCSR is shown in Figure 3-55 and described in Table 3-55.
Return to the Summary Table.
System Control & Status Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | WDINTS | WDENINT | WDOVERRIDE | ||||
R-0-0h | R-1h | R/W-0h | R/W1S-1h | ||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-3 | RESERVED | R-0 | 0h | Reserved |
2 | WDINTS | R | 1h | Watchdog Interrupt Status This bit indicates the state of the active-low watchdog interrupt signal (synchronized to SYSCLK). If the watchdog interrupt is used to wake the system from a low-power mode, then that mode should only be entered while this bit is high. Likewise, this bit must go high before the watchdog can be safely disabled and re-enabled. Reset type: SYSRSn |
1 | WDENINT | R/W | 0h | Watchdog Interrupt Enable/Reset Disable This bit determines whether the watchdog triggers an interrupt (WAKE/WDOG) or a reset (WDRS) when the counter expires. Reset type: SYSRSn |
0 | WDOVERRIDE | R/W1S | 1h | Watchdog Enable Lock Writing a 1 to this bit clears it and locks the WDDIS bit in the WDCR register. The bit will remain in this state until the next system reset. Reads of this bit return its current value. Writing a 0 to this bit has no effect. Reset type: SYSRSn |
WDCNTR is shown in Figure 3-56 and described in Table 3-56.
Return to the Summary Table.
Watchdog Counter Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
WDCNTR | |||||||
R-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-8 | RESERVED | R-0 | 0h | Reserved |
7-0 | WDCNTR | R | 0h | Watchdog Counter These bits contain the current value of the watchdog counter. This counter increments with each WDCLK (INTOSC1) cycle. If the counter overflows, either an interrupt or a reset is generated based on the value of the WDINTEN bit in the SCSR register. If the correct value is written to the WDKEY register, this counter is reset to zero. Reset type: IORSn |
WDKEY is shown in Figure 3-57 and described in Table 3-57.
Return to the Summary Table.
Watchdog Reset Key Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
WDKEY | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-8 | RESERVED | R-0 | 0h | Reserved |
7-0 | WDKEY | R/W | 0h | Watchdog Counter Reset Writing 0x55 followed by 0xAA will cause the watchdog counter to reset to zero, preventing an overflow. Writing other values has no effect. Reads of this register return the value of the WDCR register. Reset type: IORSn |
SYNCBUSYWD is shown in Figure 3-58 and described in Table 3-58.
Return to the Summary Table.
SYNCBUSY status for Watchdog Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | WDCR | BUSY | |||||
R-0-0h | R-0h | R-0h | |||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-2 | RESERVED | R-0 | 0h | Reserved |
1 | WDCR | R | 0h | This status bit indicates write to the register is in progress 0 : Not BUSY - No synchronization in progress 1 : BUSY - Synchronization is in progress Reset type: SYSRSn |
0 | BUSY | R | 0h | This status bit indicates write to any of the following registers (OR_REDUCE) is in progress or not. WDCR 0 : Not BUSY - No synchronization in progress 1 : BUSY - Synchronization is in progress Reset type: SYSRSn |
WDCR is shown in Figure 3-59 and described in Table 3-59.
Return to the Summary Table.
Watchdog Control Register
This memory mapped register requires a delay of 69 SYSCLK cycles between subsequent writes to the register, otherwise a second write can be lost. This delay can be realized by adding 69 NOP instructions.
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | WDPRECLKDIV | ||||||
R-0-0h | R/W-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | WDDIS | WDCHK | WDPS | ||||
R/W1S-0h | R/W-0h | R-0/W-0h | R/W-0h | ||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-12 | RESERVED | R-0 | 0h | Reserved |
11-8 | WDPRECLKDIV | R/W | 0h | Watchdog Clock Pre-divider These bits determine the watchdog clock pre-divider, which is the first of the two dividers between INTOSC1 and the watchdog counter clock (WDCLK). The frequency of WDCLK is given by the formulas: PREDIVCLK = INTOSC1 / Pre-divider WDCLK = PREDIVCLK / Prescaler The watchdog reset or interrupt pulse is 512 INTOSC1 cycles long, so the counter period must be longer. To guarantee this, the product of the prescaler and pre-divider must be greater than or equal to four. The default pre-divider value is 512. Reset type: IORSn |
7 | RESERVED | R/W1S | 0h | Reserved |
6 | WDDIS | R/W | 0h | Watchdog Disable Setting this bit disables the watchdog module. Clearing this bit enables the watchdog module. This bit can be locked by the WDOVERRIDE bit in the SCSR register. The watchdog is enabled on reset. Reset type: IORSn |
5-3 | WDCHK | R-0/W | 0h | Watchdog Check Bits During any write to this register, these bits must be written with the value 101 (binary). Writing any other value will immediately trigger the watchdog reset or interrupt. Reset type: IORSn |
2-0 | WDPS | R/W | 0h | Watchdog Clock Prescaler These bits determine the watchdog clock prescaler, which is the second of the two dividers between INTOSC1 and the watchdog counter clock (WDCLK). The frequency of WDCLK is given by the formulas: PREDIVCLK = INTOSC1 / Pre-divider WDCLK = PREDIVCLK / Prescaler The watchdog reset or interrupt pulse is 512 INTOSC1 cycles long, so the counter period must be longer. To guarantee this, the product of the prescaler and pre-divider must be greater than or equal to four. The default prescaler value is 1. Reset type: IORSn |
WDWCR is shown in Figure 3-60 and described in Table 3-60.
Return to the Summary Table.
Watchdog Windowed Control Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | RESERVED | ||||||
R-0-0h | R-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
MIN | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-9 | RESERVED | R-0 | 0h | Reserved |
8 | RESERVED | R | 0h | Reserved |
7-0 | MIN | R/W | 0h | Watchdog Window Threshold These bits specify the lower limit of the watchdog counter reset window. If the counter is reset via the WDKEY register before the counter value reaches the value in this register, the watchdog immediately triggers a reset or interrupt. Reset type: IORSn |