GD32F10x User Manual
213
11.4.
Function overview
Figure 11-1. ADC module block diagram
ADC_IN0
ADC_IN1
· ·
·
ADC_IN15
GPIO
C
h
a
n
ne
l s
e
le
c
to
r
V
SENSE
V
REFP
V
REFN
V
DDA
V
SSA
12bit
routine data registers
(
16 bits
)
Routine sequence
Channel Management
Trig select
E
X
T
I11
T
IM
E
R
0
_
CH
0
T
IM
E
R
0
_
CH
1
T
IM
E
R
0
_
CH
2
T
IM
E
R
1
_
CH
1
Analog
watchdog
A
P
B
B
U
S
EOC
watchdog
event
Interrupt
generator
ADC
Interrupt
SAR ADC
CLB
self calibration
V
REFINT
DMA request
11.4.1.
Foreground calibration function
During the foreground calibration procedure, the ADC calculates a calibration factor which is
internally applied to the ADC until the next ADC power-off. The application must not use the
ADC during calibration and must wait until it is completed. Calibration should be performed
before starting A/D conversion. The calibration is initiated by setting bit CLB=1. CLB bit stays
at 1 during all the calibration sequence. It is then cleared by hardware as soon as the
calibration is completed.
When the ADC operating conditions change (such as supply power voltage V
DDA
, positive
reference voltage V
REF+
, temperature and so on), it is recommended to re-run a calibration
cycle.
The internal analog calibration can be reset by setting the RSTCLB bit in ADC_CTL1 register.
Calibration software procedure:
1.
Ensure that ADCON=1.
2.
Delay 14 CK_ADC to wait for ADC stability.
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...