
GD32L23x User Manual
202
13.
Analog to digital converter (ADC)
13.1.
Overview
The 12-bit ADC is an analog-to-digital converter using the successive approximation method.
The ADC includes 16 external channels and 4 internal channels that can convert analog
signals. The analog watchdog allows the application to detect whether the input voltage
exceeds the user-defined threshold. The analog signals of the channels can be converted by
the ADC in single, continuous, scan or discontinuous mode. The output of the ADC converter
is left-aligned or right-aligned in the 16-bit data register. An on-chip hardware oversampling
mechanism can reduce the related computational burden of MCU to improve performances.
13.2.
Characteristics
High performance:
-
12-bit, 10-bit,8-bit, or 6-bit configurable resolution
-
Self-calibration
-
Programmable sampling time
-
Data alignment with built-in data registers
-
DMA support for regular group
Dual clock domain architecture (APB clock and ADC clock)
Analog input channels:
-
16 external analog inputs
-
1 channel for internal temperature sensor (V
SENSE
)
-
1 channel for internal reference voltage (V
REFINT
)
-
1 channel for monitoring external V
BAT
power supply pin
-
1 channel for monitoring SLCD voltage (V
SLCD
)
Start-of-conversion can be initiated:
-
By software
-
By hardware triggers
Conversion modes:
-
Convert a single channel or scan a sequence of channels.
-
Single mode converts the selected inputs once for per trigger
-
Continuous mode converts selected inputs continuously
-
Discontinuous mode
Interrupt generation
-
At the end of regular and inserted group conversions
-
Analog watchdog event
Analog watchdog
ADC supply requirements: 1.8V to 3.6V, and typical power supply voltage is 3.3V.
Oversampling