GD32VF103 User Manual
153
11. Analog-to-digital converter (ADC)
11.1. Introduction
The 12-bit ADC is an analog-to-digital converter using the successive approximation method.
It has 18 multiplexed channels making the ADC convert analog signals from 16 external
channels, and 2 internal channels. The analog watchdog allows the application to detect
whether the input voltage goes outside the user-defined higher or lower thresholds. The
analog signals of the channels can be converted by the ADC 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.
11.2. Main features
High performance
– 12-bit, 10-bit, 8-bit or 6-bit configurable resolution
– ADC sampling rate: 2 MSPs for 12-bit resolution
– Self-calibration
– Programmable sampling time
– Data alignment with built-in data coherency
– DMA support
Analog input channels
– 16 external analog inputs
– 1 channel for internal temperature sensor (V
SENSE
)
– 1 channel for internal reference voltage (V
REFINT
)
Start-of-conversion can be initiated
– By software
– By hardware triggers
Conversion modes
– Converts a single channel or scans a sequence of channels.
– Single mode converts selected inputs once per trigger.
– Continuous mode converts selected inputs continuously
– Discontinuous mode
– SYNC mode(the device with two or more ADCs)
Analog watchdog
Interrupt generation:
– at the end of regular and inserted group conversions
– analog watchdog event
Oversampler
– 16-bit data register