Download 8-Bit XC82x

Transcript
XC82x
Watchdog Timer
8.2
System Information
This section consist of the system information required to use the WDT.
8.2.1
Reset effects
The Watchdog Timer maintains a counter which must be refreshed or cleared
periodically. Otherwise, the counter will overflow and the watchdog reset will be
asserted. The occurrence of a WDT reset is indicated by the bit WDTRST in RSTCON
register. The bit field of
The bit field PAGE of SCU_PAGE register must be programmed before accessing the
RSTCON register.
RSTCON
Reset Control Register
RMAP: 0, PAGE: 1
7
6
Reset Value: 00H1)
(F7H)
5
4
3
2
1
0
SWRQ
0
SOFTRS
WDTRST
WKRS
rwh
r
rwh
rwh
rwh
1) The reset value for watchdog timer reset is 02H.
Field
Bits
Type Description
WDTRST
1
rwh
Watchdog Timer Reset Indication Bit
0
No watchdog reset occurred.
1
Watchdog reset has occurred.
This bit can only be set by hadware and clear by
software.
0
[6:3]
r
Reserved
Returns 0 if read; should be written with 0.
8.2.2
Clocking Configuration
The WDT runs on the 75 KHz Oscillator.
8.2.3
Interrupt Events and Assignment
Table 8-1 shows the non-maskable interrupt node assignment of the WDT interrupt
source.
User’s Manual
WDT, V1.0
8-2
V1.0, 2010-02