Figure 1-48. Watchdog Control Register (WDCR)
15
8
Reserved
R-0
7
6
5
3
2
0
WDFLAG
WDDIS
WDCHK
WDPS
R/W1C-0
R/W-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 1-46. Watchdog Control Register (WDCR) Field Descriptions
Bits
Field
Value
Description
15-8
Reserved
Any writes to these bits must always have a value of 0.
7
WDFLAG
Watchdog reset status flag bit
0
The reset was caused either by the XRS pin or because of power-up. The bit remains latched
until you write a 1 to clear the condition. Writes of 0 are ignored.
1
Indicates a watchdog reset ( WDRST) generated the reset condition. .
6
WDDIS
Watchdog disable bit. This bit can be modified only if the WDOVERRIDE bit in the SCSR
register is set to 1 (default behavior upon reset).
0
Enables the watchdog module. Upon reset, the watchdog module is enabled.
1
Disables the watchdog module.
5-3
WDCHK
Watchdog check.
0,0,0
You must ALWAYS write 1,0,1 to these bits whenever a write to this register is performed
unless the intent is to reset the device via software.
other
Writing any other value causes an immediate device reset or watchdog interrupt to be taken.
Note that this happens even when watchdog module is disabled. Do not write to WDCHK bits
when the watchdog module is disabled. These bits can be used to generate a software reset
of the device. These three bits always read back as zero (0, 0, 0).
2-0
WDPS
Watchdog pre-scale. These bits configure the watchdog counter clock (WDCLK) rate relative
to (OSCCLKSRC1 or 2)/512:
000
WDCLK = (OSCCLKSRC1 or 2)/512/1 (default)
001
WDCLK = (OSCCLKSRC1 or 2)/512/1
010
WDCLK = (OSCCLKSRC1 or 2)/512/2
011
WDCLK = (OSCCLKSRC1 or 2)/512/4
100
WDCLK = (OSCCLKSRC1 or 2)/512/8
101
WDCLK = (OSCCLKSRC1 or 2)/512/16
110
WDCLK = (OSCCLKSRC1 or 2)/512/32
111
WDCLK = (OSCCLKSRC1 or 2)/512/64
(1)
This register is EALLOW protected. See
for more information.
When the XRS line is low, the WDFLAG bit is forced low. The WDFLAG bit is only set if a rising edge on WDRST
signal is detected (after synch and an 8192 SYSCLKOUT cycle delay) and the XRS signal is high. If the XRS
signal is low when WDRST goes high, then the WDFLAG bit remains at 0. In a typical application, the WDRST
signal connects to the XRS input. Hence to distinguish between a watchdog reset and an external device reset,
an external reset must be longer in duration then the watchdog pulse.
System Control and Interrupts
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
101
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......