Rev. 1.50
�6
����st ��� �01�
Rev. 1.50
��
����st ��� �01�
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
Compact Type TM – CTM
The Compact type TM, CTM, is only contained in the HT66F0185 device. Although the simplest
form of the TM types, the Compact TM type still contains three operating modes, which are
Compare Match Output, Timer/Event Counter and PWM Output modes. The Compact TM can also
be controlled with an external input pin and can drive one external output pin.
Device
TM Core
TM No.
TM Input Pin
TM Output Pin
HT66F01�5
16-bit CTM
TM�
TCK�
TP�
f
SYS
f
SYS
/4
f
H
/64
f
H
/16
f
TBC
TCKn
000
001
010
011
100
101
110
111
TnCK�~TnCK0
16-bit Co�nt-�p Co�nter
�-bit Comparator P
CCRP
b�~b15
b0~b15
16-bit Comparator �
TnON
TnP�U
Comparator � Match
Comparator P Match
Co�nter Clear
0
1
O�tp�t
Control
Polarity
Control
Pin
Control
TPn
TnOC
TnM1� TnM0
TnIO1� TnIO0
Tn�F Interr�pt
TnPF Interr�pt
TnPOL
TnCP
CCR�
TnCCLR
f
H
/�
Compact Type TM Block Diagram – n = 2 for HT66F0185 only
Compact TM Operation
The Compact TM 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 is eight-bit wide whose value is compared with the highest eight bits in the
counter while the CCRA is sixteen-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 Compact
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.