Microchip Technology AC244055 Data Sheet

Page of 488
 2011-2013 Microchip Technology Inc.
DS40001574C-page 105
PIC16(L)F1938/9
10.6
Register Definitions: Watchdog Control 
            
REGISTER 10-1:
WDTCON: WATCHDOG TIMER CONTROL REGISTER
U-0
U-0
R/W-0/0
R/W-1/1
R/W-0/0
R/W-1/1
R/W-1/1
R/W-0/0
WDTPS<4:0>
SWDTEN
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
u = Bit is unchanged
x = Bit is unknown
-m/n = Value at POR and BOR/Value at all other Resets 
‘1’ = Bit is set
‘0’ = Bit is cleared
     
bit 7-6
Unimplemented: Read as ‘0’
bit 5-1
WDTPS<4:0>: Watchdog Timer Period Select bits
Bit Value  = Prescale Rate
00000  = 1:32 (Interval 1 ms typ)
00001  = 1:64 (Interval 2 ms typ)
00010  = 1:128 (Interval 4 ms typ)
00011  = 1:256 (Interval 8 ms typ)
00100  = 1:512 (Interval 16 ms typ)
00101  = 1:1024 (Interval 32 ms typ)
00110  = 1:2048 (Interval 64 ms typ)
00111  = 1:4096 (Interval 128 ms typ)
01000  = 1:8192 (Interval 256 ms typ)
01001  = 1:16384 (Interval 512 ms typ)
01010  = 1:32768 (Interval 1s typ)
01011  = 1:65536  (Interval 2s typ) (Reset value)
01100  = 1:131072 (2
17
) (Interval 4s typ)
01101  = 1:262144 (2
18
) (Interval 8s typ)
01110  = 1:524288 (2
19
) (Interval 16s typ)
01111  = 1:1048576 (2
20
) (Interval 32s typ)
10000  = 1:2097152 (2
21
) (Interval 64s typ)
10001  = 1:4194304 (2
22
) (Interval 128s typ)
10010  = 1:8388608 (2
23
) (Interval 256s typ)
10011  = Reserved. Results in minimum interval (1:32)
 •
 •
 •
11111  = Reserved. Results in minimum interval (1:32)
bit 0
SWDTEN: Software Enable/Disable for Watchdog Timer bit
If WDTE<1:0> = 00:
This bit is ignored.
If WDTE<1:0> = 01:
1 = WDT is turned on
0 = WDT is turned off
If WDTE<1:0> = 1x:
This bit is ignored.