Download Print this page

Holtek BS66F340C Manual page 162

Touch a/d flash mcu

Advertisement

• SADC0 Register
Bit
7
Name
START
R/W
R/W
POR
0
Bit 7
START: Start the A/D conversion
0→1→0: Start
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.
ADBZ: A/D converter busy flag
Bit 6
0: No A/D conversion is in progress
1: A/D conversion is in progress
This read only flag is used to indicate whether the A/D conversion is in progress or
not. When the START bit is set from low to high and then to low again, the ADBZ flag
will be set to 1 to indicate that the A/D conversion is initiated. The ADBZ flag will be
cleared to zero after the A/D conversion is complete.
Bit 5
ADCEN: A/D converter function enable control
0: Disable
1: Enable
This bit controls the A/D internal function. This bit should be set high to enable the A/D
converter. If the bit is cleared to zero, then the A/D converter will be switched off reducing
the device power consumption. When the A/D converter function is disabled, the contents
of the A/D data register pair known as SADOH and SADOL will be unchanged.
Bit 4
ADRFS: A/D conversion data format selection
0: A/D converter data format → SADOH=D[11:4]; SADOL=D[3:0]
1: A/D converter data format → SADOH=D[11:8]; SADOL=D[7:0]
This bit controls the format of the 12-bit converted A/D value in the two A/D data
registers. Details are provided in the A/D converter data register section.
Bit 3~0
SACS3~SACS0: A/D converter external analog input channel selection
0000: AN0
0001: AN1
0010: AN2
0011: AN3
0100: AN4
0101: AN5
0110: AN6
0111: AN7
1xxx: Non-existed channel, input floating if selected
These bits are used to select which external analog input channel is to be converted.
• SADC1 Register
Bit
7
Name
SAINS2
R/W
R/W
POR
0
SAINS2~SAINS0: A/D converter input signal selection
Bit 7~5
000: External source – External analog channel intput, ANn
001: Internal source – Internal bandgap reference voltage, V
010~100: Unused, connected to ground
101~111: External source – External analog channel input, ANn
Care must be taken if the SAINS field is set to "001" to select the internal analog
signal to be converted. When the internal analog signal is selected to be converted, the
external channel input pin must never be selected as the A/D input signal by properly
Rev. 1.11
BS66F340C/BS66F350C/BS66F360C
6
5
4
ADBZ
ADCEN
ADRFS
R
R/W
R/W
0
0
0
6
5
4
SAINS1
SAINS0
SAVRS1
R/W
R/W
R/W
0
0
0
162
Touch A/D Flash MCU
3
2
1
SACS3
SACS2
SACS1
R/W
R/W
R/W
0
0
0
3
2
1
SAVRS0
SACKS2
SACKS1
R/W
R/W
R/W
0
0
0
BG
November 09, 2023
0
SACS0
R/W
0
0
SACKS0
R/W
0

Advertisement

loading
Need help?

Need help?

Do you have a question about the BS66F340C and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Bs66f350cBs66f360c