English
Language : 

GMS77C1001 Datasheet, PDF (39/44 Pages) Hynix Semiconductor – 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS77C1000/GMS77C1001
15. WATCHDOG TIMER (WDT)
The Watchdog Timer (WDT) is a free running on-chip RC
oscillator which does not require any external components.
This RC oscillator is separate from the RC oscillator of the
XIN pin. That means that the WDT will run even if the
clock on the XIN and XOUT pins have been stopped, for ex-
ample, by execution of a SLEEP instruction. During nor-
mal operation or SLEEP, a WDT reset or wake-up reset
generates a device RESET.
The TO bit (STATUS<4>) will be cleared upon a Watch-
dog Timer reset.
The WDT can be permanently disabled by programming
the configuration bit WDTE as a '0' (Figure 12-2). Refer to
the GMS77C100X Programming Specifications to deter-
mine how to access the configuration word.
15.1 WDT Period
The WDT has a nominal time-out period of 14 ms, (with
no prescaler). If a longer time-out period is desired, a pres-
caler with a division ratio of up to 1:256 can be assigned to
the WDT (under software control) by writing to the OP-
TION register. Thus, time-out a period of a nominal 3.5
seconds can be realized. These periods vary with tempera-
ture, 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.
15.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.
Watchdog Timer
on-chip
RC-OSC
enable
From TMR0 Clock Source
8-bit asynchronous
ripple counter
clear
0
MUX
1
PSA
WDTE
SLEEP
clearing WDT
SLEEP
Postscaler
8
8 - to - 1 MUX
PSA
clearing WDT
PS2:PS0
0
1
MUX
To TMR0
PSA
WDT Time-Out
FIGURE 15-1 WATCHDOG TIMER BLOCK DIAGRAM
Name Address Bit7
Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
OPTION N/A
LOWOPT PFDEN T0CS T0SE PSA PS2 PS1 PS0
Power-On
Reset
0011 1111
RESET and
WDT Reset
0011 1111
TABLE 15-1 SUMMARY OF REGISTERS ASSOCIATED WITH THE WATCHDOG TIMER
36
July. 2001 Ver. 1.1