GD32W51x User Manual
358
14.
Analog to digital converter (ADC)
14.1.
Overview
The 12-bit ADC is an analog-to-digital converter using the successive approximation method.
The ADC includes 9 external channels, 2 internal channels and the battery voltage (V
BAT
)
channel that can convert analog signals. Analog watchdog allows the application to detect
whether the input voltage exceeds the user's set of high and low threshold. The A/D
conversion of each channel can be performed in single, continuous, scan, or discontinuous
mode. A left-aligned or right-aligned 16-bit data register holds the output of the ADC. An on-
chip hardware oversample scheme improves performances while off-loading the related
computational burden from the MCU.
14.2.
Characteristics
High performance:
2.5MSPs for 12-bit resolution
Programmable sampling time
Data alignment with built-in data registers
DMA support for regular channels and inserted channels
Analog input channels:
9 external analog inputs
1 channel for internal temperature sensor (V
SENSE
)
1 channel for internal reference voltage (V
REFINT
)
1 channel for external battery power supply pin (V
BAT
)
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 selected input channel once per trigger
Continuous mode converts selected input channels continuously
Discontinuous mode
Interrupt generation
At the end of regular or inserted group conversions
Analog watchdog event
Overflow event
Analog watchdog
Oversampling
16-bit data register