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
10-bit
Co�nt-�p Co�nter
10-bit Comparator P
CCRP
10-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~b9
b0~b9
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
10-bit Periodic Type TM Block Diagram (n=2~3)
Periodic TM Operation
The Periodic Type TM core is a 10-bit 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 CCRA and CCRP comparators are 10-bit or 16-bit wide whose
value is respectively compared with all counter bits.
The only way of changing the value of the 10-bit or 16-bit counter using the application program, is
to clear the counter by changing the PTnON 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 PTMn interrupt signal will also usually be generated. The Periodic
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 more than one output pin. All operating setup
conditions are selected using relevant internal registers.