Rev. 1.00
�4
��ne ��� �01�
Rev. 1.00
�5
��ne ��� �01�
HT66FM5440
Brushless DC Motor A/D Flash MCU
HT66FM5440
Brushless DC Motor A/D Flash MCU
Capture Timer Module – CAPTM
The Capture Timer Module is a timing unit specifically used for Motor Control purposes. The
CAPTM is controlled by a program selectable clock source
.
Capture Timer Overview
At the core of the Capture Timer is a 16-bit count-up counter which is driven by a user selectable
internal clock source which is some multiple of the system clock or by the PWM. There is also an
internal comparator which compares the value of this 16-bit counter with a pre-programmed 16-
bit value stored in two registers. There are two basic modes of operation, a Compare Mode and
a Capture Mode, each of which can be used to reset the internal counter. When a compare match
situation is reached a signal will be generated to reset the internal counter. The counter can also be
cleared when a capture trigger is generated by one of four sources, FHA, FHB, FHC and CTIN.
Rising/Falling
/Do�ble edge
Detector
CAPTM
Noise
Filter
Rising/Falling
/Do�ble edge
Detector
Compare Register
CAPTMAH
/CAPTMAL
Compare
CAPTMCH
/CAPTMCL
Clear CAPTM co�nter (CAMCLR=1)
CLR
CapTM_Over
CapTM_Cmp
H1
H3
CAPS[1:0]
16-bit
CAPTM
CLK
CAPTCK[�:0]
PWMO
f
SYS
/�
f
SYS
/1��
f
SYS
/64
INTA
INTB
INTC
FHA
FHB
FHC
H�
CTIN
CAPEG[1:0]
INTEG0
+
C3EN
-
CMP 3
+
C�EN
-
CMP �
+
C1EN
-
CMP 1
C3N
C3P
C�N
C�P
C1N
C1P
Hall
Noise
Filter
HA
HB
HC
HSEL
CAPNFT/
CAPNFS/
CAPFIL
HCHK_NUM HNF_MSEL
Note: The detailed control and input selection for the Hall noise filter is described in the Hall Sensor Noise Filter
section.
Capture Timer Block Diagram
Capture Timer Register Description
Overall operation of the Capture Timer is controlled using eight registers. A read only register pair
exists to store the internal counter 16-bit value, while a read/write register pair exists to store the
internal 16-bit compare value. An additional read only register pair is used to store the capture value.
The remaining two registers are control registers which setup the different operating and control
modes.
Register
Name
Bit
7
6
5
4
3
2
1
0
CAPTC0 CAPTPAU CAPTCK� CAPTCK1 CAPTCK0 CAPTON
—
CAPS1
CAPS0
CAPTC1
CAPEG1 CAPEG0
CAPEN
CAPNFT CAPNFS CAPFIL CAPCLR CAMCLR
CAPTMDL
D�
D6
D5
D4
D3
D�
D1
D0
CAPTMDH
D15
D14
D13
D1�
D11
D10
D9
D�
CAPTMAL
D�
D6
D5
D4
D3
D�
D1
D0
CAPTMAH
D15
D14
D13
D1�
D11
D10
D9
D�
CAPTMCL
D�
D6
D5
D4
D3
D�
D1
D0
CAPTMCH
D15
D14
D13
D1�
D11
D10
D9
D�
Capture Timer Registers List