PIC16C745/P Microchip Technology, PIC16C745/P Datasheet - Page 106

no-image

PIC16C745/P

Manufacturer Part Number
PIC16C745/P
Description
8-Bit CMOS Microcontrollers with USB
Manufacturer
Microchip Technology
Datasheet
PIC16C745/765
13.8
The watchdog timer is a free running on-chip dedicated
oscillator, which does not require any external compo-
nents. The WDT will run, even if the clock on the OSC1/
CLKIN and OSC2/CLKOUT pins of the device has
been stopped, for example, by execution of a SLEEP
instruction.
During normal operation, a WDT time-out generates a
device RESET (Watchdog Timer Reset). If the device is
in SLEEP mode, a WDT time-out causes the device to
wake-up and resume normal operation (Watchdog
Timer Wake-up).
The WDT can be permanently disabled by clearing
configuration bit WDTE (Section 13.1).
13.8.1
The WDT has a nominal time-out period of 18 ms
(parameter #31, T
temperature, V
time-out periods are desired, a prescaler with a division
FIGURE 13-7: WATCHDOG TIMER BLOCK DIAGRAM
TABLE 13-8:
DS41124A-page 106
Address
2007h
81h,181h
Legend: Shaded cells are not used by the Watchdog Timer.
Note 1:
Note: PSA and PS<2:0> are bits in the OPTION register.
Watchdog Timer (WDT)
WDT PERIOD
See Register 13-1 for operation of these bits.
Name
Config. bits
OPTION_REG
DD
WDT
SUMMARY OF WATCHDOG TIMER REGISTERS
and process variations. If longer
). The time-out periods vary with
WDT Timer
Enable Bit
WDT
RBPU
Bit 7
From TMR0 Clock Source
(Figure 6-1)
BODEN
INTEDG
Bit 6
Advanced Information
(1)
0
1
T0CS
Bit 5
CP1
PSA
M
U
X
T0SE
Bit 4
CP0
PWRTE
ratio of up to 1:128 can be assigned to the WDT under
software control by writing to the OPTION register.
Time-out periods up to 128 T
The CLRWDT and SLEEP instructions clear the WDT
and the postscaler, if assigned to the WDT. In addition,
the SLEEP instruction prevents the WDT from generat-
ing a reset, but will allow the WDT to wake the device
from sleep mode.
The TO bit in the STATUS register will be cleared upon
a WDT time-out.
13.8.2
It should also be taken into account that under worst
case conditions (V
max. WDT prescaler) it may take several seconds
before a WDT time-out occurs.
0
Bit 3
Note:
PSA
Time-out
8 - to - 1 MUX
MUX
WDT
Postscaler
(1)
WDT PROGRAMMING CONSIDERATIONS
WDTE
When a CLRWDT instruction is executed
and the prescaler is assigned to the WDT,
the prescaler count will be cleared, but the
prescaler assignment is not changed.
1
Bit 2
PS2
8
DD
Bit 1
PS1
PLL
PSA
To TMR0 MUX
(Figure 6-1)
= Min., Temperature = Max., and
1999 Microchip Technology Inc.
FOSC0
PS<2:0>
Bit 0
PS0
WDT
can be realized.
1111 1111 1111 1111
POR, BOR
Value on
All Other
Value on
Resets

Related parts for PIC16C745/P