SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
Table 41-194 lists the memory-mapped registers for the CM_WD_REGS registers. All register offset addresses not listed in Table 41-194 should be considered as reserved locations and the register contents should not be modified.
| Offset | Acronym | Register Name | Write Protection | Section |
|---|---|---|---|---|
| 0h | SCSR | System Control & Status Register | Go | |
| 4h | WDCNTR | Watchdog Counter Register | Go | |
| 8h | WDKEY | Watchdog Reset Key Register | Go | |
| Ch | WDCR | Watchdog Control Register | Go | |
| 10h | WDWCR | Watchdog Windowed Control Register | Go |
Complex bit access types are encoded to fit into small table cells. Table 41-195 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 | |
SCSR is shown in Figure 41-175 and described in Table 41-196.
Return to the Summary Table.
System Control & Status Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| KEY | |||||||
| R-0/W-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| KEY | |||||||
| R-0/W-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| rsvd | |||||||
| R-0-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| rsvd | RESERVED | WDENINT | WDOVERRIDE | ||||
| R-0-0h | R-0h | R-1h | R/W1S-1h | ||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | KEY | R-0/W | 0h | A write to this register shall only succeed if a value of 0x1234 is written to this field, else the write will be ignored Reset type: CM.RESETn |
| 15-3 | rsvd | R-0 | 0h | Reset type: CM.RESETn |
| 2 | RESERVED | R | 0h | Reserved |
| 1 | WDENINT | R | 1h | This bit is 1 at reset and cannot be modified. On every watchdog event (overflow, key sequence write outside the window, incorrect WDCHK value) an NMI will be fired to CM4. Reset type: CM.RESETn |
| 0 | WDOVERRIDE | R/W1S | 1h | If this bit is set to 1, the user is allowed to change the state of the Watchdog disable (WDDIS) bit in the Watchdog Control (WDCR) register (refer to Watchdog Block section of this spec). If the WDOVERRIDE bit is cleared, by writing a 1 the WDDIS bit cannot be modified by the user. Writing a 0 will have no effect. If this bit is cleared, then it will remain in this state until a reset occurs. The current state of this bit is readable by the user. Reset type: CM.RESETn |
WDCNTR is shown in Figure 41-176 and described in Table 41-197.
Return to the Summary Table.
Watchdog 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 |
| rsvd | WDCNTR | ||||||||||||||||||||||||||||||
| R-0-0h | R-0h | ||||||||||||||||||||||||||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | rsvd | R-0 | 0h | Reset type: CM.RESETn |
| 7-0 | WDCNTR | R | 0h | These bits contain the current value of the WD counter. The 8-bit counter continually increments at the WDCLK rate. If the counter overflows, a NMI is generated. If the WDKEY register is written with a valid combination within the watchdog window, then the counter is reset to zero. If the WDKEY register is written with a valid combination outside the watchdog window, then a NMI is generated. Reset type: CM.RESETn |
WDKEY is shown in Figure 41-177 and described in Table 41-198.
Return to the Summary Table.
Watchdog Reset Key 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 |
| rsvd | WDKEY | ||||||||||||||||||||||||||||||
| R-0-0h | R/W-0h | ||||||||||||||||||||||||||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | rsvd | R-0 | 0h | Reset type: CM.RESETn |
| 7-0 | WDKEY | R/W | 0h | Writing 0x55 followed by 0xAA will cause the WDCNTR bits to be cleared. Note.. [1] Reads from the WDKEY return the value of WDCR register. Reset type: CM.RESETn |
WDCR is shown in Figure 41-178 and described in Table 41-199.
Return to the Summary Table.
Watchdog Control Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| rsvd | |||||||
| R-0-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| rsvd | |||||||
| R-0-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| rsvd | WDPRECLKDIV | ||||||
| R-0-0h | R/W-0h | ||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| WDFLG | WDDIS | WDCHK | WDPS | ||||
| R/W1S-0h | R/W-1h | R-0/W-0h | R/W-0h | ||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-12 | rsvd | R-0 | 0h | Reset type: CM.RESETn |
| 11-8 | WDPRECLKDIV | R/W | 0h | These bits configure the Clock Pre-divider (DIV_N) that feeds clock to prescaler, These bits form upper two bits of the divider 1000 :DIV_N = 2 1001 :DIV_N = 4 1010 :DIV_N = 8 1011 :DIV_N = 16 1100 :DIV_N = 32 1101 :DIV_N = 64 1110 :DIV_N = 128 1111 :DIV_N = 256 0000 :DIV_N = 512 0001 :DIV_N = 1024 0010 :DIV_N = 2048 0011 :DIV_N = 4096 0100 :DIV_N = Reserved 0101 :DIV_N = Reserved 0110 :DIV_N = Reserved 0111 :DIV_N = Reserved All Reserved combinations shall default to DIV_N=512. Reset type: CM.RESETn |
| 7 | WDFLG | R/W1S | 0h | Watchdog nmi status flag bit. This bit, if set, indicates a NMI was fired to CM4 from WWD. This bit remains latched until the user writes a 1 to clear the condition. Writes of 0 will be ignored. Reset type: CM.RESETn |
| 6 | WDDIS | R/W | 1h | Writing a 1 to this bit will disable the watchdog module. Writing a 0 will enable the module. This bit can only be modified if the WDOVERRIDE bit in the SCSR register is set to 1. On reset, the watchdog module is disabled. Reset type: CM.RESETn |
| 5-3 | WDCHK | R-0/W | 0h | The user must ALWAYS write 1,0,1 to these bits whenever a write to this register is performed. Writing any other value will cause an nmi to the CPU (if WD enabled). Reset type: CM.RESETn |
| 2-0 | WDPS | R/W | 0h | These bits configure the watchdog counter clock (WDCLK) rate relative to OSCCLK/512.. 000 WDCLK = OSCCLK/<WDPRECLKDIV>/1 001 WDCLK = OSCCLK/<WDPRECLKDIV>/1 010 WDCLK = OSCCLK/<WDPRECLKDIV>/2 011 WDCLK = OSCCLK/<WDPRECLKDIV>/4 100 WDCLK = OSCCLK/<WDPRECLKDIV>/8 101 WDCLK = OSCCLK/<WDPRECLKDIV>/16 110 WDCLK = OSCCLK/<WDPRECLKDIV>/32 111 WDCLK = OSCCLK/<WDPRECLKDIV>/64 Reset type: CM.RESETn |
WDWCR is shown in Figure 41-179 and described in Table 41-200.
Return to the Summary Table.
Watchdog Windowed Control Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| KEY | |||||||
| R-0/W-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| KEY | |||||||
| R-0/W-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| rsvd | FIRSTKEY | ||||||
| R-0-0h | R-0h | ||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| MIN | |||||||
| R/W-0h | |||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | KEY | R-0/W | 0h | A write to this register shall only succeed if a value of 0x1234 is written to this field, else the write will be ignored Reset type: CM.RESETn |
| 15-9 | rsvd | R-0 | 0h | Reset type: CM.RESETn |
| 8 | FIRSTKEY | R | 0h | This bit indicates if the 1st valid WDKEY (0x55 + 0xAA) got detected after MIN was configured to a non-zero value 0.. First Valid Key after non-zero MIN configuration has not happened yet 1.. First Valid key after non-zero MIN configuration got detected Notes.. [1] If MIN = 0, this bit is never set [2] If MIN is written to by software, this bit is auto-cleared [3] This bit is added for debug purposes only Reset type: CM.RESETn |
| 7-0 | MIN | R/W | 0h | These bits define the lower limt of the Windowed functionality Reset type: CM.RESETn |