
Rev. 2.50
�44
��ne 22� 20��
Rev. 2.50
�45
��ne 22� 20��
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
Enhanced TM Operation
At its core is a 10-bit count-up/count-down counter which is driven by a user selectable internal
or external clock source. There are three internal comparators with the names, Comparator A,
Comparator B and Comparator P. These comparators will compare the value in the counter with the
CCRA, CCRB and CCRP registers. The CCRP comparator is 3-bits wide whose value is compared
with the highest 3-bits in the counter while CCRA and CCRB are 10-bits wide and therefore
compared with all counter bits.
The only way of changing the value of the 10-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 Enhanced
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 output pins. All operating setup conditions are
selected using relevant internal registers.
Enhanced Type TM Register Description
Overall operation of the Enhanced TM is controlled using a series of registers. A read only register
pair exists to store the internal counter 10-bit value, while two read/write register pairs exist to store
the internal 10-bit CCRA and CCRB value. The remaining three registers are control registers which
setup the different operating and control modes as well as the three CCRP bits.
Register
Name
Bit
7
6
5
4
3
2
1
0
TM�C0
T�PAU
T�CK2
T�CK�
T�CK0
T�ON
T�RP2
T�RP�
T�RP0
TM�C�
T�AM�
T�AM0
T�AIO�
T�AIO0
T�AOC
T�APOL
T�CDN
T�CCLR
TM�C2
T�BM�
T�BM0
T�BIO�
T�BIO0
T�BOC
T�BPOL T�PWM� T�PWM0
TM�DL
D�
D6
D5
D4
D3
D2
D�
D0
TM�DH
—
—
—
—
—
—
D9
D8
TM�AL
D�
D6
D5
D4
D3
D2
D�
D0
TM�AH
—
—
—
—
—
—
D9
D8
TM�BL
D�
D6
D5
D4
D3
D2
D�
D0
TM�BH
—
—
—
—
—
—
D9
D8
10-bit Enhanced TM Register List (if ETM is TM1)