GD32VF103 User Manual
156
11.4.2.
ADC clock
The ADCCLK clock provided by the clock controller is synchronous APB2 clock. The RCU
controller has a dedicated programmable prescaler for the ADC clock.
11.4.3.
ADCON switch
The ADCON bit on the ADC_CTL1 register is the enable switch of the ADC module. The ADC
module will keep in reset state if this bit is 0. For power saving, when this bit is reset, the
analog sub-module will be put into power-down mode.
11.4.4.
Regular and inserted channel groups
The ADC supports 18 multiplexed channels and organizes the conversion results into two
groups: a regular channel group and an inserted channel group.
In the regular group, a sequence of up to 16 conversions can be organized in a specific
sequence. The ADC_RSQ0~ADC_RSQ2 registers specify the selected channels of the
regular group. The RL[3:0] bits in the ADC_RSQ0 register specify the total conversion
sequence length.
In the inserted group, a sequence of up to 4 conversions can be organized in a specific
sequence. The ADC_ISQ register specify the selected channels of the inserted group. The
IL[1:0] bits in the ADC_ISQ register specify the total conversion sequence length.
11.4.5.
Conversion modes
Single conversion mode
This mode can be running on both regular and inserted channel group. In the single
conversion mode, the ADC performs conversion on the channel specified in the RSQ0[4:0]
bits of ADC_RSQ2 at a regular trigger or the channel specified in the ISQ3[4:0] bits of
ADC_ISQ. When the ADCON has been set high, the ADC samples and converts a single
channel, once the corresponding software trigger or external trigger is active.
Figure 11-2. Single conversion mode
CH2
CH2
CH2
CH2
CH2
EOC
Regular
trigger
Sample
Convert
After conversion of a single regular channel, the conversion data will be stored in the
ADC_RDATA register, the EOC will be set. An interrupt will be generated if the EOCIE bit is
set.