
Rev. 1.21
�2
�ove��e� ��� 2�1�
Rev. 1.21
�3
�ove��e� ��� 2�1�
HT66F488/HT66F489
A/D Flash MCU with EEPROM
HT66F488/HT66F489
A/D Flash MCU with EEPROM
different from the initial value setup using the PTnOC bit otherwise no change will
occur on the TM output pin when a compare match occurs. After the TM output pin
changes state it can be reset to its initial level by changing the level of the PTnON bit
from low to high.
Bit 3
PTnOC
: PTPn Output control bit
Compare Match Output Mode
0: Initial low
1: Initial high
PWM Mode/Single Pulse Output Mode
0: Active low
1: Active high
This is the output control bit for the TM output pin. Its operation depends upon
whether TM is being used in the Compare Match Output Mode or in the PWM Mode/
Single Pulse Output Mode. It has no effect if the TM is in the Timer/Counter Mode. In
the Compare Match Output Mode it determines the logic level of the TM output pin
before a compare match occurs. In the PWM Mode it determines if the PWM signal is
active high or active low.
Bit 2
PTnPOL
: PTPn Output polarity control
0: Non-invert
1: Invert
This bit controls the polarity of the PTPn output pin. When the bit is set high the TM
output pin will be inverted and not inverted when the bit is zero. It has no effect if the
TM is in theTimer/Counter Mode.
Bit 1
PTnCKS
: Input Capture trigger source selection
0: External Clock source of Capture Input Mode comes from PTPn
1: External Clock source of Capture Input Mode comes from PTCKn
Bit 0
PTnCCLR
: Select PTMn Counter clear condition
0: PTMn Comparator P match
1: PTMn Comparator A match
This bit is used to select the method which clears the counter. Remember that the P-type
TM contains two comparators, Comparator A and Comparator P, either of which can
be selected to clear the internal counter. With the PTnCCLR bit set high, the counter
will be cleared when a compare match occurs from the Comparator A. When the bit is
low, the counter will be cleared when a compare match occurs from the Comparator
P or with a counter overflow. A counter overflow clearing method can only be
implemented if the CCRP bits are all cleared to zero. The PTnCCLR bit is not used in
the PWM, Single Pulse or Input Capture Mode.