Rev. 1.00
6�
��ne ��� �01�
Rev. 1.00
69
��ne ��� �01�
HT66FM5440
Brushless DC Motor A/D Flash MCU
HT66FM5440
Brushless DC Motor A/D Flash MCU
Bit 2
PTnPOL
: PTMn Output polarity Control
0: Non-invert
1: Invert
This bit controls the polarity of the output pins. When the bit is set high the PTMn
output pin will be inverted and not inverted when the bit is zero. It has no effect if the
PTMn is in the Timer/Counter Mode.
Bit 1
PTnCAPTS
: PTMn Capture Trigger Source Selection
0: From TPn_0 pin
1: From TCKn pin
This bit is used to select the PTMn capture input trigger source. However for PTM0,
the capture trigger source is also determined by the CINS bit in the NF_VIH register.
When the PT0CAPTS bit is set to 1, the capture input trigger source can be TCK0 or
noise filtered Dat_Out signal determined using the CINS bit.
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
Periodic 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 Mode, Single Pulse or Capture Input Mode.
PTMnC2 Register (n=0~3)
Bit
7
6
5
4
3
2
1
0
Name
—
—
—
—
—
PTnTCLR1 PTnTCLR0 PTnVLF
R/W
—
—
—
—
—
R/W
R/W
R/W
POR
—
—
—
—
—
0
0
0
Bit 7~3
Unimplemented, read as "0"
Bit 2~1
PTnTCLR1~PTnTCLR0
: Select PTMn Counter clear condition in capture input
mode only
00: Comparator P match clear only
01: Comparator P match clear or TPn_0/TCKn rising edge clear
10: Comparator P match clear or TPn_0/TCKn falling edge clear
11: Comparator P match clear or TPn_0/TCKn dual edge clear
Bit 0
PTnVLF
: PTMn Counter value latch trigger edge flag
0: Falling edge trigger the counter value latch
1: Rising edge trigger the counter value latch
When the PTnTCLR1~PTnTCLR0 bits equal to 00B, ignore this flag status.
PTMnDL Register (n=0~3)
Bit
7
6
5
4
3
2
1
0
Name
D�
D6
D5
D4
D3
D�
D1
D0
R/W
R
R
R
R
R
R
R
R
POR
0
0
0
0
0
0
0
0
Bit 7~0
D7~D0
: PTMn Counter Low Byte Register bit 7 ~ bit 0
PTMn 10-bit/16-bit Counter bit 7 ~ bit 0