PIC12C5XX
8.6.1 WDT PERIOD
The WDT has a nominal time-out period of 18 ms,
(with no prescaler). If a longer time-out period is
desired, a prescaler with a division ratio of up to 1:128
can be assigned to the WDT (under software control)
by writing to the OPTION register. Thus, a time-out
period of a nominal 2.3 seconds can be realized.
These periods vary with temperature, VDD and part-to-
part process variations (see DC specs).
Under worst case conditions (VDD = Min., Temperature
= Max., max. WDT prescaler), it may take several
seconds before a WDT time-out occurs.
8.6.2 WDT PROGRAMMING CONSIDERATIONS
The CLRWDT instruction clears the WDT and the
postscaler, if assigned to the WDT, and prevents it
from timing out and generating a device RESET.
The SLEEP instruction resets the WDT and the
postscaler, if assigned to the WDT. This gives the
maximum SLEEP time before a WDT wake-up reset.
FIGURE 8-12: WATCHDOG TIMER BLOCK DIAGRAM
From Timer0 Clock Source
(Figure 8-5)
Watchdog
Timer
WDT Enable
Configuration Bit
0
M
1
U
X
PSA
PPoosststsccaalelerr
8 - to - 1 MUX
PS2:PS0
To Timer0 (Figure 8-4)
Note: T0CS, T0SE, PSA, PS2:PS0
are bits in the OPTION register.
0
1
MUX
WDT
Time-out
PSA
TABLE 8-6: SUMMARY OF REGISTERS ASSOCIATED WITH THE WATCHDOG TIMER
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Value on
Power-On
Reset
N/A
OPTION GPWU GPPU T0CS T0SE PSA PS2 PS1 PS0 1111 1111
Legend: Shaded boxes = Not used by Watchdog Timer, — = unimplemented, read as ’0’, u = unchanged
Value on
All Other
Resets
1111 1111
© 1999 Microchip Technology Inc.
DS40139E-page 43