HT47C20L
17
January 18, 2000
Time base
The time base offers a periodic time-out period to
generate a regular internal interrupt. Its time-out
periodrangesfromf
s
/2
12
tof
s
/2
15
selectedbymask
option. If time base time-out occurs, the related
interruptrequestflag(TBF;bit5ofINTC0)isset.
But if the interrupt is enabled, and the stack is
not full, a subroutine call to location 08H occurs.
When the HALT instruction is executed, the time
base still works and can wake up from halt mode.
If the TBF is set 1 before entering the halt
mode, the wake up function will be disabled.
Real time clock
RTC
The real time clock is operated in the same
manner as the time base that is used to supply
a regular internal interrupt. Its time-out period
ranges from f
s
/2
8
to f
s
/2
15
by software program-
ming.WritingdatatoRT2,RT1andRT0(bits2,
1, 0 of RTCC;09H) yields various time-out
periods. If a real time clock time-out occurs, the
related interrupt request flag (RTF; bit 6 of
INTC0) is set. But if the interrupt is enabled,
and the stack is not full, a subroutine call to lo-
cation 0CH occurs. The real time clock time-out
signal can also be applied as a clock source of
timer/event counter A, so as to get a longer
time-out period.
RT2
RT1
RT0
RTC Clock Divided
Factor
2
8
2
9
2
10
2
11
2
12
2
13
2
14
2
15
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
Power down operation
HALT
The halt mode is initialized by the HALT in-
struction and results in the following.
The 32768Hz crystal oscillator will still work
but the system clock and T1 will turn off.
The contents of the on-chip RAM and regis-
ters remain unchanged.
The WDT will be cleared and recount again.
All I/O ports maintain their original status.
The PD flag is set and the TO flag is cleared.
LCD driver is still running (by mask option).
The time base and real time clock will still
work.
8
7 (
1
% ( (
( (
'
( ( ( 6 ( '
=
/ /
'
( ( 6 ( '
9
' -
-
'
'
Time base
8
( ( ( ( ( ( ( (
- (
D
1
1 ( ( 17 (
-
=
'
( ( 6 ( '
-
'
'
Real time clock