![Holtek HT68F30 Скачать руководство пользователя страница 121](http://html1.mh-extra.com/html/holtek/ht68f30/ht68f30_manual_2146822121.webp)
Rev. 2.10
120
���� 02� 201�
Rev. 2.10
121
���� 02� 201�
HT68F20/HT68F30/HT68F40/HT68F50/HT68F60
HT68FU30/HT68FU40/HT68FU50/HT68FU60
Enhanced I/O Flash Type 8-Bit MCU with EEPROM
HT68F20/HT68F30/HT68F40/HT68F50/HT68F60
HT68FU30/HT68FU40/HT68FU50/HT68FU60
Enhanced I/O Flash Type 8-Bit MCU with EEPROM
Standard Type TM – STM
The Standard Type TM contains five operating modes, which are Compare Match Output, Timer/Event
Counter, Capture Input, Single Pulse Output and PWM Output modes. The Standard TM can also be
controlled with an external input pin and can drive two external output pins.
STM
Name
TM No.
TM Input Pin
TM Output Pin
HT68F20
10-bit STM
1
TCK1
TP1_0� TP1_1
HT68F30
—
—
—
—
HT68F�0
16-bit STM
2
TCK2
TP2_0� TP2_1
HT68F50
16-bit STM
2
TCK2
TP2_0� TP2_1
HT68F60
16-bit STM
2
TCK2
TP2_0� TP2_1
Standard Type TM Block Diagram
Standard TM Operation
There are two sizes of Standard TMs, one is 10-bit wide and the other is 16-bit wide. At the core is a
10 or 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 3 or 8 bits wide whose value is compared the with highest 3 or 8 bits in the counter
while the CCRA is the ten or sixteen bits and therefore compares all counter bits.
The only way of changing the value of the 10 or 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.