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
CAPTC0 Register
Bit
7
6
5
4
3
2
1
0
Name
CAPTPAU CAPTCK� CAPTCK1 CAPTCK0 CAPTON
—
CAPS1
CAPS0
R/W
R/W
R/W
R/W
R/W
R/W
—
R/W
R/W
POR
0
0
0
0
0
—
0
0
Bit 7
CAPTPAU
: CAPTM Counter Pause Control
0: Run
1: Pause
The counter can be paused by setting this bit high. Clearing the bit to zero restores
normal counter operation. When in a Pause condition the CAPTM will remain
powered up and continue to consume power. The counter will retain its residual value
when this bit changes from low to high and resume counting from this value when the
bit changes to a low value again.
Bit 6~4
CAPTCK2~CAPTCK0
: Select CAPTM Counter clock
000:
PWMO
001: f
H
/2
010: f
H
/4
011: f
H
/
8
100: f
H
/
16
101: f
H
/32
110: f
H
/64
111: f
H
/128
These three bits are used to select the clock source for the CAPTM. The clock source
f
H
is the high speed system oscillator clock.
Bit 3
CAPTON
: CAPTM Counter On/Off Control
0: Off
1: On
This bit controls the overall on/off function of the CAPTM. Setting the bit high
enables the counter to run, clearing the bit disables the CAPTM. Clearing this bit to
zero will stop the counter from counting and turn off the CAPTM which will reduce
its power consumption. When the bit changes state from low to high the internal
counter value will be reset to zero, however when the bit changes from high to low,
the internal counter will retain its residual value.
Bit 2
Unimplemented, read as "0"
Bit 1~0
CAPS1~CAPS0
: CAPTM capture source selection
00: FHA
01: FHB
10: FHC
11: CTIN
CAPTC1 Register
Bit
7
6
5
4
3
2
1
0
Name
CAPEG1 CAPEG0 CAPEN CAPNFT CAPNFS CAPFIL CAPCLR CAMCLR
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7~6
CAPEG1~CAPEG0
: CAPTM capture active edge selection
00: CAPTM capture disabled
01: Rising edge capture
10: Falling edge capture
11: Dual edge capture