Rev. 1.00
64
��ne ��� �01�
Rev. 1.00
65
��ne ��� �01�
HT66FM5440
Brushless DC Motor A/D Flash MCU
HT66FM5440
Brushless DC Motor A/D Flash MCU
Periodic Type TM – PTM
The Periodic Type TM contains five operating modes, which are Compare Match Output, Timer/
Event Counter, Capture Input, Single Pulse Output and PWM Output modes. The Periodic TM can
be controlled with one or two external input pins and can drive one or two external output pins.
Note that the TM input and output pin functions should be selected by proper configuration which is
described in the Pin-shared Functions section.
Name
TM No.
TM Input Pin
TM Output Pin
16-bit PTM
0� 1
TCK0� TP0_0; TCK1� TP1_0 TP0_0� TP0_1; TP1_0� TP1_1
10-bit PTM
�� 3
TCK�� TP�_0; TCK3� TP3_0 TP�_0� TP�_1; TP3_0� TP3_1
16-bit
Co�nt-�p Co�nter
16-bit Comparator P
CCRP
16-bit Comparator A
O�tp�t
Control
Polarity
Control
TPn_0
CCRA
Edge
Detector
PTnCCLR
f
SYS
f
SYS
/4
f
H
/64
f
H
/16
f
SUB
PTnCK�~PTnCK0
PTnON
PTnPAU
Comparator A Match
Comparator P Match
Co�nter Clear
PTOC
PTM1� PTM0
PTIO1� PTIO0
TMnAF Interr�pt
TMnPF Interr�pt
PTPOL
PTnIO1� PTnIO0
f
SUB
PTnCAPTS
000
001
010
011
100
101
110
111
b0~b15
b0~b15
0
1
1
0
CCRB
PTnVLF
Falling edge detect
Rising edge detect
Comparator P match only
Comparator P match or TPn_0/TCKn rising edge
Comparator P match or TPn_0/TCKn falling edge
Comparator P match or TPn_0/TCKn d�al edge
PTnTCLR1� PTnTCLR0
00
01
10
11
TCKn
TPn_1
CINS
1
0
Dat_O�t
16-bit Periodic Type TM Block Diagram (n=0)
16-bit
Co�nt-�p Co�nter
16-bit Comparator P
CCRP
16-bit Comparator A
O�tp�t
Control
Polarity
Control
TPn_0
CCRA
Edge
Detector
PTnCCLR
f
SYS
f
SYS
/4
f
H
/64
f
H
/16
f
SUB
PTnCK�~PTnCK0
PTnON
PTnPAU
Comparator A Match
Comparator P Match
Co�nter Clear
PTOC
PTM1� PTM0
PTIO1� PTIO0
TMnAF Interr�pt
TMnPF Interr�pt
PTPOL
PTnIO1� PTnIO0
f
SUB
PTnCAPTS
000
001
010
011
100
101
110
111
b0~b15
b0~b15
0
1
1
0
CCRB
PTnVLF
Falling edge detect
Rising edge detect
Comparator P match only
Comparator P match or TPn_0/TCKn rising edge
Comparator P match or TPn_0/TCKn falling edge
Comparator P match or TPn_0/TCKn d�al edge
PTnTCLR1� PTnTCLR0
00
01
10
11
TCKn
TPn_1
16-bit Periodic Type TM Block Diagram (n=1)