
Rev. 1.20
166
��to�e� 0�� 201�
Rev. 1.20
167
��to�e� 0�� 201�
HT69F30A/HT69F40A/HT69F50A
TinyPower
TM
I/O Flash 8-Bit MCU with LCD & EEPROM
HT69F30A/HT69F40A/HT69F50A
TinyPower
TM
I/O Flash 8-Bit MCU with LCD & EEPROM
Time Base Interrupt
The function of the Time Base Interrupt is to provide regular time signal in the form of an internal
interrupt. It is controlled by the overflow signal from its internal timer. When this happens its
interrupt request flag, TBnF, will be set. To allow the program to branch to its respective interrupt
vector addresses, the global interrupt enable bit, EMI and Time Base enable bit, TBnE, must first be
set. When the interrupt is enabled, the stack is not full and the Time Base overflows, a subroutine
call to its respective vector location will take place. When the interrupt is serviced, the interrupt
request flag, TBnF, will be automatically reset and the EMI bit will be cleared to disable other
interrupts.
The purpose of the Time Base Interrupt is to provide an interrupt signal at fixed time periods. Its
clock source, f
TB
, originates from the internal clock source f
SUB
or f
SYS
/4. And then passes through
a divider, the division ratio of which is selected by programming the appropriate bits in the TBC
register to obtain longer interrupt periods whose value ranges. The clock source which in turn
controls the Time Base interrupt period is selected using a bit in the TBC register.
TBC Register
Bit
7
6
5
4
3
2
1
0
Name
TB�N
TBCK
TB11
TB10
LXTLP
TB02
TB01
TB00
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
P�R
0
0
1
1
0
1
1
1
Bit 7
TBON:
Time Base 0 and Time Base 1 Enable/Disable
0: Disable
1: Enable
Bit 6
TBCK:
TB Clock f
TB
Select
0: f
SUB
1: f
SYS
/4
Bit 5~4
TB11~TB10:
Time Base 1 Time-out Period Selection
00: 2
12
/f
TB
01: 2
13
/f
TB
10: 2
14
/f
TB
11: 2
15
/f
TB
Bit 3
LXTLP:
LXT Low Power Control
0: Disable (LXT quick start-up)
1: Enable (LXT low power start-up)
Bit 2~0
TB02~TB00:
Time Base 0 Time-out Period
000: 2
8
/f
TB
001: 2
9
/f
TB
010: 2
10
/f
TB
011: 2
11
/f
TB
100: 2
12
/f
TB
101: 2
13
/f
TB
110: 2
14
/f
TB
111: 2
15
/f
TB
Time Base Interrupt