![GigaDevice Semiconductor GD32E23 Series Скачать руководство пользователя страница 162](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794162.webp)
GD32E23x User Manual
162
5.
Wait for CLB =0.
10.4.2.
Dual clock domain architecture
The ADC sub-module, with exception of the APB interface block, is feed by an ADC clock,
which can be asynchronous and independent from the APB clock.
Application can reduce PLCK frequency for low power operation while still keeping optimum
ADC performance.
for more information on generating this clock source.
10.4.3.
ADC enable
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 off mode. After ADC is enabled, you need delay
t
su
time for sampling, the value of t
su
please refer to the chip datasheet.
10.4.4.
Routine sequence
The channel management circuit can organize the sampling conversion channels into a
sequence: routine sequence. The routine sequence supports up to 16 channels, and each
channel is called routine channel. The RL[3:0] bits in the ADC_RSQ0 register specify the
total conversion sequence length. The ADC_RSQ0~ADC_RSQ2 registers specify the
selected channels of the routine sequence o
peration modes
10.4.5.
Operation mode
Single operation mode
In the single operation mode, the ADC performs conversion on the channel specified in the
RSQ0[4:0] bits in ADC_RSQ2 at a routine trigger. When the ADCON is 1, the ADC samples
and converts a single channel, once the corresponding software trigger or external trigger is
active.
Figure 10-2. Single operation mode
CH2
CH2
CH2
CH2
CH2
EOC
Routine
trigger
Sample
Convert
After the conversion of a single routine 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.