Microchip Technology MCU PIC10F322T-I/OT SOT-23-6 MCP PIC10F322T-I/OT 데이터 시트
제품 코드
PIC10F322T-I/OT
PIC10(L)F320/322
DS41585A-page 54
Preliminary
2011 Microchip Technology Inc.
8.1
Independent Clock Source
The WDT derives its time base from the 31 kHz
LFINTOSC internal oscillator. Time intervals in this
chapter are based on a nominal interval of 1ms. See
LFINTOSC internal oscillator. Time intervals in this
chapter are based on a nominal interval of 1ms. See
for the
LFINTOSC tolerances.
8.2
WDT Operating Modes
The Watchdog Timer module has four operating modes
controlled by the WDTE<1:0> bits in Configuration
Word. See
controlled by the WDTE<1:0> bits in Configuration
Word. See
8.2.1
WDT IS ALWAYS ON
When the WDTE bits of Configuration Word are set to
‘11’, the WDT is always on.
WDT protection is active during Sleep.
‘11’, the WDT is always on.
WDT protection is active during Sleep.
8.2.2
WDT IS OFF IN SLEEP
When the WDTE bits of Configuration Word are set to
‘10’, the WDT is on, except in Sleep.
WDT protection is not active during Sleep.
‘10’, the WDT is on, except in Sleep.
WDT protection is not active during Sleep.
8.2.3
WDT CONTROLLED BY SOFTWARE
When the WDTE bits of Configuration Word are set to
‘01’, the WDT is controlled by the SWDTEN bit of the
WDTCON register.
WDT protection is unchanged by Sleep. See
‘01’, the WDT is controlled by the SWDTEN bit of the
WDTCON register.
WDT protection is unchanged by Sleep. See
for more details.
TABLE 8-1:
WDT OPERATING MODES
8.3
Time-Out Period
The WDTPS bits of the WDTCON register set the time-
out period from 1 ms to 256 seconds (nominal). After a
Reset, the default time-out period is 2 seconds.
out period from 1 ms to 256 seconds (nominal). After a
Reset, the default time-out period is 2 seconds.
8.4
Clearing the WDT
The WDT is cleared when any of the following condi-
tions occur:
• Any Reset
• CLRWDT instruction is executed
• Device enters Sleep
• Device wakes up from Sleep
• Oscillator fail
• WDT is disabled
See
tions occur:
• Any Reset
• CLRWDT instruction is executed
• Device enters Sleep
• Device wakes up from Sleep
• Oscillator fail
• WDT is disabled
See
for more information.
8.5
Operation During Sleep
When the device enters Sleep, the WDT is cleared. If
the WDT is enabled during Sleep, the WDT resumes
counting.
When the device exits Sleep, the WDT is cleared
again.
When a WDT time-out occurs while the device is in
Sleep, no Reset is generated. Instead, the device
wakes up and resumes operation. The TO and PD bits
in the STATUS register are changed to indicate the
event. See
the WDT is enabled during Sleep, the WDT resumes
counting.
When the device exits Sleep, the WDT is cleared
again.
When a WDT time-out occurs while the device is in
Sleep, no Reset is generated. Instead, the device
wakes up and resumes operation. The TO and PD bits
in the STATUS register are changed to indicate the
event. See
and
WDTE<1:0>
SWDTEN
Device
Mode
WDT
Mode
11
X
X
Active
10
X
Awake
Active
Sleep
Disabled
01
1
X
Active
0
Disabled
00
X
X
Disabled
TABLE 8-2:
WDT CLEARING CONDITIONS
Conditions
WDT
WDTE<1:0> = 00
Cleared
WDTE<1:0> = 01 and SWDTEN = 0
WDTE<1:0> = 10 and enter Sleep
WDTE<1:0> = 10 and enter Sleep
CLRWDT
Command
Exit Sleep
Change INTOSC divider (IRCF bits)
Change INTOSC divider (IRCF bits)
Unaffected