
Rev. 1.00
106
October 26, 2018
Rev. 1.00
107
October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
• SADC1 Register
Bit
7
6
5
4
3
2
1
0
Name
SAINS2
SAINS1
SAINS0 SAVRS1 SAVRS0 SACKS2 SACKS1 SACKS0
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~5
SAINS2~SAINS0
: A/D converter input signal selection
000: External source – External analog channel intput, ANn
001: Internal source – Internal bandgap reference voltage, V
BG
010: Internal source – Internal high voltage power VCC1 divided voltage, V
CC1O
011: Internal source – Internal high voltage power VCC2 divided voltage, V
CC2O
100: Internal source – Internal OCP operational amplifier output voltage, V
OCPAO
101~111: External source – External analog channel input, ANn
Care must be taken if the SAINS field is set to “001~100” 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
setting the SACS bit field with a value of “1000~1111”. Otherwise, the external
channel input will be connected together with the internal analog signal. This will
result in unpredictable situations such as an irreversible damage.
Bit 4~3
SAVRS1~SAVRS0
: A/D converter reference voltage selection
00: External VREF pin
01: Internal A/D converter power, AV
DD
1x: External VREF pin
These bits are used to select the A/D converter reference voltage source. Care must
be taken if the SAVRS field is set to “01” to select the internal A/D converter power
voltage as the reference voltage source. When the internal reference voltage source is
selected, the external VREF pin cannot be configured as the reference voltage input by
properly configuring the relevant pin-shared control bits. Otherwise, the external input
voltage on the VREF pin will be connected to the internal A/D converter power. This
will result in unpredictable situations.
Bit 2~0
SACKS2~SACKS0
: A/D conversion clock source selection
000: f
SYS
001: f
SYS
/2
010: f
SYS
/4
011: f
SYS
/8
100: f
SYS
/16
101: f
SYS
/32
110: f
SYS
/64
111: f
SYS
/128
These bits are used to select the clock source for the A/D converter.
A/D Converter Reference Voltage
The actual reference voltage supply to the A/D converter can be supplied from the positive power
supply, AV
DD
, or an external reference source supplied on pin VREF determined by the SAVRS
bit field in the SADC1 register. When the SAVRS field is set to “01”, the A/D converter reference
voltage will come from the AV
DD
. Otherwise, the A/D converter reference voltage will come
from the VREF pin if the SAVRS field is set to any other value except “01”. When the VREF pin
is selected as the reference voltage supply pin, the relevant pin-shared control bits should first
be properly configured to enable the VREF pin function as it is pin-shared with other functions.
However, if the internal A/D converter power is selected as the reference voltage, the external VREF
pin must not be configured as the reference voltage input function to avoid the internal connection
between the VREF pin to the internal A/D converter power. Note that the analog input values must
not be allowed to exceed the value of the selected reference voltage.