GD32F20x User Manual
253
14.
Analog-to-digital converter (ADC)
14.1.
Overview
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.
14.2.
Characteristics
High performance
-
12-bit, 10-bit, 8-bit or 6-bit configurable resolution
-
ADC sampling rate: 2 MSPs for 12-bit resolution, faster sampling rate can be obtained
by lowering the 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
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...