English
Language : 

HT66F0172 Datasheet, PDF (91/115 Pages) Holtek Semiconductor Inc – Enhanced A/D Flash 8-Bit MCU
HT66F0172/HT66F0174
Enhanced A/D Flash 8-Bit MCU
TBC Register – HT66F0172
Bit
7
6
5
4
3
Name TBON TBCK
TB11
TB10
—
R/W
R/W
R/W
R/W
R/W
—
POR
0
0
1
1
—
Bit 7
Bit 6
Bit 5~4
Bit 3
Bit 2~0
TBON: TB0 and TB1 Control
0: Disable
1: Enable
TBCK: Select fTB Clock
0: fTBC
1: fSYS/4
TB11~TB10: Select Time Base 1 Time-out Period
00: 4096/fTB
01: 8192/fTB
10: 16384/fTB
11: 32768/fTB
Unimplemented, read as "0"
TB02~TB00: Select Time Base 0 Time-out Period
000: 256/fTB
001: 512/fTB
010: 1024/fTB
011: 2048/fTB
100: 4096/fTB
101: 8192/fTB
110: 16384/fTB
111: 32768/fTB
TB 02~TB 00
fS Y S /4
LX T
L IR C
M
U
X
M
fT B C
U
fT B
X
2 8 ~ 2 15
2 12 ~ 2 15
C o n fig u r a tio n
O p tio n
T B C K B it
TB 11~TB 10
Time Base Interrupt
2
TB02
R/W
1
1
TB01
R/W
1
T im e B a s e 0 In te r r u p t
T im e B a s e 1 In te r r u p t
0
TB00
R/W
1
Multi-function Interrupt
Within the device there are up to three Multi-function interrupts. Unlike the other independent
interrupts, these interrupts have no independent source, but rather are formed from other existing
interrupt sources, namely the TM Interrupts, LVD interrupt and EEPROM Interrupt. A Multi-
function interrupt request will take place when any of the Multi-function interrupt request flags,
MFnF are set. The Multi-function interrupt flags will be set when any of their included functions
generate an interrupt request flag and the corresponding interrupt enable bit must be set. To allow
the program to branch to its respective interrupt vector address, when the Multi-function interrupt
is enabled and the stack is not full, and either one of the interrupts contained within each of Multi-
function interrupt occurs, a subroutine call to one of the Multi-function interrupt vectors will take
place. When the interrupt is serviced, the related Multi-Function request flag, will be automatically
reset and the EMI bit will be automatically cleared to disable other interrupts.
However, it must be noted that, although the Multi-function Interrupt flags will be automatically
reset when the interrupt is serviced, the request flags from the original source of the Multi-
function interrupts, namely the PTM Interrupts, LVD interrupt and EEPROM Interrupt will not be
automatically reset and must be manually reset by the application program.
Rev. 1.00
91
July 11, 2013