Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

HT66F016 View Datasheet(PDF) - Holtek Semiconductor

Part Name
Description
MFG CO.
HT66F016
Holtek
Holtek Semiconductor Holtek
'HT66F016' PDF : 116 Pages View PDF
HT66F016/HT66F017/HT68F016/HT68F017
HT66F016R/HT66F017R/HT68F016R/HT68F017R
Standard Type TM - STM
The Standard Type TM contains five operating modes, which are Compare Match Output, Timer/Event Counter, Cap-
ture Input, Single Pulse Output and PWM Output modes. The Standard TM can also be controlled with an external in-
put pin and can drive one or two external output pins.
STM
All devices
Name
16-bit STM
TM No.
1
TM Input Pin
TCK1
TM Output Pin
TP1
Standard TM Operation
At its core is a 16-bit count-up counter which is driven by
a user selectable internal or external clock source.
There are also two internal comparators with the names,
Comparator A and Comparator P. These comparators
will compare the value in the counter with CCRP and
CCRA registers. The CCRP comparator is 8-bit wide
whose value is compared with the highest eight bits in
the counter while the CCRA is 16-bit wide and therefore
compares with all counter bits.
The only way of changing the value of the 16-bit counter
using the application program, is to clear the counter by
changing the TnON bit from low to high. The counter will
also be cleared automatically by a counter overflow or a
compare match with one of its associated comparators.
When these conditions occur, a TM interrupt signal will
also usually be generated. The Standard Type TM can
operate in a number of different operational modes, can
be driven by different clock sources including an input
pin and can also control an output pin. All operating
setup conditions are selected using relevant internal
registers.
Standard Type TM Register Description
Overall operation of the Standard TM is controlled using
a series of registers. A read only register pair exists to
store the internal counter 16-bit value, while a read/write
register pair exists to store the internal 16-bit CCRA
value. There is also a read/write register used to store
the internal 8-bit CCRP value. The remaining two regis-
ters are control registers which setup the different oper-
ating and control modes.
fS Y S /4
000
fS Y S
001
fH /1 6
010
fH /6 4
011
fT B C
100
fH /8
101
110
TC Kn
111
TnO N
TnP A U
TnC K 2~TnC K 0
CCRP
8 - b it C o m p a r a to r P
C o m p a ra to r P M a tc h
T n P F In te rru p t
b8~b15
TnO C
1 6 - b it C o u n t- u p C o u n te r
b0~b15
C o u n te r C le a r 0
1
TnC C LR
O u tp u t
C o n tro l
P o la r ity
C o n tro l
TPn
TnM 1,TnM 0
T n IO 1 , T n IO 0
TnP O L
1 6 - b it
C o m p a ra to r A
CCRA
C o m p a ra to r A M a tc h
T n IO 1 , T n IO 0
E dge
D e te c to r
Standard Type TM Block Diagram
T n A F In te rru p t
Rev. 1.40
62
November 22, 2016
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]