![GigaDevice Semiconductor GD32F20 Series User Manual Download Page 256](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f20-series/gd32f20-series_user-manual_2225801256.webp)
GD32F20x User Manual
256
3.
Set RSTCLB (optional).
4.
Set CLB=1.
5.
Wait until CLB=0.
14.4.2.
ADC clock
The ADCCLK clock provided by the clock controller is synchronous with the AHB and APB2
clock. The maximum frequency is 28MHz. The RCU controller has a dedicated programmable
prescaler for the ADC clock.
14.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.
14.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.
14.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.
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 ...