Rev. 1.00
96
��ne ��� �01�
Rev. 1.00
9�
��ne ��� �01�
HT66FM5440
Brushless DC Motor A/D Flash MCU
HT66FM5440
Brushless DC Motor A/D Flash MCU
• ADCR0 Register
Bit
7
6
5
4
3
2
1
0
Name
ADSTR
EOCB
ADOFF
ADRFS
ACS3
ACS�
ACS1
ACS0
R/W
R/W
R
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
1
1
0
0
0
0
0
Bit 7
ADSTR
: Start the A/D conversion
0→1→0: Start
0→1: Reset the A/D converter and set EOCB to "
1
"
This bit is used to initiate an A/D conversion process. The bit is normally low but if set
high and then cleared low again, the A/D converter will initiate a conversion process.
When the bit is set high the A/D converter will be reset.
Bit 6
EOCB
: End of A/D conversion flag
0: A/D conversion is ended
1: A/D conversion is in progress
This read only flag is used to indicate when an A/D conversion process has completed.
When a conversion process is running the bit will be high.
Bit 5
ADOFF
: A/D converter power on/off control
0: A/D converter power on
1: A/D converter power off
This bit controls the power to the A/D internal function. This bit should be cleared
to zero to enable the A/D converter. If the bit is set high, then the A/D converter will
be switched off reducing the device power consumption. As the A/D converter will
consume a limited amount of power, even when not executing a conversion, this may
be an important consideration in power sensitive battery powered applications. It is
recommended to set ADOFF bit high before entering IDLE/SLEEP Mode for saving
power.
Bit 4
ADRFS
: A/D converter data format select
12-bit data format (ADCRL_SEL=0):
0: High Byte=D[11:4]; Low Byte=D[3:0]
1: High Byte=D[11:8]; Low Byte=D[7:0]
10-bit data format (ADCRL_SEL=1):
0: High Byte=D[9:2]; Low Byte=D[1:0]
1: High Byte=D[9:8]; Low Byte=D[7:0]
This bit controls the format of the 12-bit or 10-bit A/D converted data or boundary
data in the corresponding high byte and low byte registers. Details are respectively
provided in the A/D data registers and A/D boundary registers sections.
Bit 3~0
ACS3~ACS0
: A/D converter analog channel input select (for ADSTR triggered A/D
conversion)
0000: AN0
0001: AN1
001
0: AN2
001
1: AN3
0100
: OPA2 output
0101
: OPA1 output
0110
: OPA0 output
0111
: AN
6
1000
: AN7
1001~1111: Undefined