
Rev. 1.00
110
October 26, 2018
Rev. 1.00
111
October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
ADCEN
START
ADBZ
SACS[3:0]
(SAINS[2:0]=000B)
off
on
off
on
t
ON2ST
t
ADS
A/D sampling time
t
ADS
A/D sampling time
Start of A/D conversion
Start of A/D conversion
Start of A/D conversion
End of A/D
conversion
End of A/D
conversion
t
ADC
A/D conversion time
t
ADC
A/D conversion time
t
ADC
A/D conversion time
0011B
0010B
0000B
0001B
A/D channel
switch
A/D Conversion Timing – External Channel Input
Summary of A/D Conversion Steps
The following summarises the individual steps that should be executed in order to implement an A/D
conversion process.
• Step 1
Select the required A/D conversion clock by properly programming the SACKS2~SACKS0 bits
in the SADC1 register.
• Step 2
Enable the A/D converter by setting the ADCEN bit in the SADC0 register to one.
• Step 3
Select which signal is to be connected to the internal A/D converter by correctly configuring the
SAINS bit field.
Selecting the external channel input to be converted, go to Step 4.
Selecting the internal analog signal to be converted, go to Step 5.
• Step 4
If the SAINS field is set to select the external channel input, the corresponding pin should be
configured as an A/D input function by selecting the relevant function control bits. Then the
desired external channel input is selected by configuring the SACS field. Then go to Step 6.
• Step 5
Before the A/D input signal is selected to come from the internal analog signal by configuring the
SAINS field, the SACS field must be set to “1xxx” to select a non-existed channel input. After
this, the desired internal analog signal is selected by configuring the SAINS bit field. Then go to
Step 6.
• Step 6
Select the A/D converter reference voltage source by configuring the SAVRS bit field in the
SADC1 register. If the internal reference voltage is selected, the external reference input pin
function must be disabled by properly configuring the relevant pin-shared control bits.
Step 7
Select the A/D converter output data format by configuring the ADRFS bit in the SADC0 register.
• Step 8
If A/D conversion interrupt is used, the interrupt control registers must be correctly configured
to ensure the A/D interrupt function is active. The master interrupt control bit, EMI, and the A/D
conversion interrupt control bit, ADE, must both be set high in advance.