Rev. 1.71
98
April 11, 2017
Rev. 1.71
99
April 11, 2017
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
A/D Converter Register Description
Overall operation of the A/D converter is controlled using five registers. A read only register pair
exists to store the ADC data 12-bit value. The remaining three registers are control registers which
setup the operating and control function of the A/D converter.
Name
Bit
7
6
5
4
3
2
1
0
SADOL
(ADRFS=0)
D3
D2
D1
D0
—
—
—
—
SADOL
(ADRFS=1)
D7
D6
D5
D4
D3
D2
D1
D0
SADOH
(ADRFS=0)
D11
D10
D9
D8
D7
D6
D5
D4
SADOH
(ADRFS=1)
—
—
—
—
D11
D10
D9
D8
SADC0
START
ADBZ
ENADC
ADRFS
—
—
SACS1
SACS0
SADC1
SAINS2
SAINS1
SAINS0
—
—
SACK2
SACK1
SACK0
SADC2
ENOPA
VBGEN
—
—
SAVRS3 SAVRS2 SAVRS1 SAVRS0
A/D Converter Register List – HT66F002/HT66F0025/HT66F003
Name
Bit
7
6
5
4
3
2
1
0
SADOL
(ADRFS=0)
D3
D2
D1
D0
—
—
—
—
SADOL
(ADRFS=1)
D7
D6
D5
D4
D3
D2
D1
D0
SADOH
(ADRFS=0)
D11
D10
D9
D8
D7
D6
D5
D4
SADOH
(ADRFS=1)
—
—
—
—
D11
D10
D9
D8
SADC0
START
ADBZ
ENADC
ADRFS
—
SACS2
SACS1
SACS0
SADC1
SAINS2
SAINS1
SAINS0
—
—
SACKS2 SACKS1 SACKS0
SADC2
ENOPA
VBGEN
—
—
SAVRS3 SAVRS2 SAVRS1 SAVRS0
A/D Converter Register List – HT66F004
A/D Converter Data Registers – SADOL, SADOH
As the devices contain an internal 12-bit A/D converter, it requires two data registers to store the
converted value. These are a high byte register, known as SADOH, and a low byte register, known
as SADOL. After the conversion process takes place, these registers can be directly read by the
microcontroller to obtain the digitised conversion value. As only 12 bits of the 16-bit register space
is utilised, the format in which the data is stored is controlled by the ADRFS bit in the SADC0
register as shown in the accompanying table. D0~D11 are the A/D conversion result data bits.
Any unused bits will be read as zero. Note that the A/D converter data register contents will not be
cleared to zero if the A/D converter is disabled.
ADRFS
SADOH
SADOL
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
0
D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
0
0
0
0
1
0
0
0
0
D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
A/D Data Registers