Z8 Encore! XP
®
4K Series
Product Specification
86
All three Watch-Dog Timer Reload registers must be written in the order just listed. There
must be no other register writes between each of these operations. If a register write
occurs, the lock state machine resets and no further writes can occur unless the sequence is
restarted. The value in the Watch-Dog Timer Reload registers is loaded into the counter
when the Watch-Dog Timer is first enabled and every time a WDT instruction is executed.
Watch-Dog Timer Calibration
Due to its extremely low operating current, the Watch-Dog Timer oscillator is somewhat
inaccurate. This variation can be corrected using the calibration data stored in the Flash
Information Page (see
Loading these values into the
Watch-Dog Timer Reload Registers will result in a one-second timeout at room tempera-
ture and 3.3V supply voltage.
Timeouts other than one second may be obtained by scaling the calibration values up or
down as required. Note that the Watch-Dog Timer accuracy will still degrade as tempera-
ture and supply voltage vary. See
for details.
Watch-Dog Timer Control Register Definitions
Watch-Dog Timer Control Register
The Watch-Dog Timer Control (WDTCTL) register is a write-only control register. Writ-
ing the
55H
,
AAH
unlock sequence to the WDTCTL register address unlocks the three
Watch-Dog Timer Reload Byte registers (WDTU, WDTH, and WDTL) to allow changes
to the time-out period. These write operations to the WDTCTL register address produce
no effect on the bits in the WDTCTL register. The locking mechanism prevents spurious
writes to the Reload registers.
This register address is shared with the read-only Reset Status Register.
Table 58. Watch-Dog Timer Control Register (WDTCTL)
BITS
FIELD
RESET
R/W
ADDR
X
W
X
W
X
W
7
6
5
4
X
W
FF0H
3
X
W
2
X
W
1
X
W
0
X
W
WDTUNLK
PS022815-0206
Watch-Dog Timer