HT47C20L
16
January 18, 2000
Oscillator configuration
The HT47C20L provides one 32768Hz crystal
oscillator for real time clock and system clock.
The 32768Hz crystal oscillator still work at halt
mode. The halt mode stop the system clock and
T1 and ignores an external signal to conserve
power. The real time clock comes from 32768Hz
crystal and still works at halt mode.
A 32768Hz crystal across OSC1 and OSC2 is
needed to provide the feedback and phase shift
needed for the oscillator, no other external
components are needed.
Watchdog timer
WDT
The clock source of the WDT (f
s
) is implemented
by a 32768Hz crystal oscillator. The timer is
designed to prevent a software malfunction or
sequence jumping to an unknown location with
unpredictable results. The watchdog timer can
be disabled by mask option. If the watchdog
timer is disabled, all the executions related to
the WDT result in no operation.
The HALT instruction is executed, WDT still
countsandcanwake-upfromhaltmodeduetothe
WDT time-out.
The WDT overflow under normal operation will
initialize chip reset and set the status bit TO.
Whereas in the halt mode, the overflow will ini-
tialize a warm reset only the PC and SP are re-
set to zero. To clear the contents of WDT, three
methods are adopted, external reset (a low level
to RES), software instruction, or a HALT instruc-
tion. The software instructions are of two sets
which includeCLRWDTandtheotherset
WDT1 and CLR WDT2. Of these two types of in-
struction,onlyonecanbeactivedependingonthe
mask option
CLR WDT times selection op-
tion . If the CLR WDT is selected (i.e., CLR
WDT times equal one), any execution of the CLR
WDT instruction will clear the WDT. In case
CLR WDT1 and CLR WDT2 are chosen (i.e.
CLR WDT times equal two), these two instruc-
tions must be executed to clear the WDT; other-
wise, the WDT may reset the chip because of the
time-out.
CLR
The WDT time-out period ranges from
f
s/215
~f
s/216
. The CLR WDT or CLR WDT1
and CLRWDT2 instruction only clear the last
two-stage of the WDT.
Multi-function timer
The HT47C20L provides a multi-function timer
for the WDT, time base and real time clock but
with
different
time-out
multi-function timer consists of a 7-stage di-
vider and an 8-bit prescaler, with the clock
source coming from the 32768Hz. The
multi-function timer also provides a fixed fre-
quency signal (f
s
/8) for the LCD driver circuits,
and a selectable frequency signal (ranges from
f
s
/2
2
to f
s
/2
9
) for buzzer output by mask option.
periods.
The
* + , - . /
'
0 ( 2 7 ( & 1 3
$ ( 1 7
0 (( & 1 3
0( & 1 3
$ 1 ( 1 1
32768Hz crystal
* + , - . / ( $1 (
8
1
:
( 1
<
<
@(
'
( ( ( 6 ( '
,
-
'
'
Watchdog timer