GD32VF103 User Manual
168
11.6.1.
Regular parallel mode
This mode converts the regular channel simultaneously. The source of external trigger comes
from the regular group MUX of ADC0 (selected by the ETSRC[2:0] bits in the ADC_CTL1
register). A simultaneous trigger is provided to ADC1.
At the end of conversion event on ADC0 or ADC1 an EOC interrupt is generated (if enabled
on one of the two ADC interfaces) when the ADC0/ADC1 regular channels are all converted.
The behavior of regular parallel mode shows in the
Figure 11-14. Regular parallel mode on
A 32-bit DMA is used, which transfers ADC_RDATA 32-bit register (the ADC_RDATA 32-bit
register containing the ADC1 converted data in the upper half-word and the ADC0 converted
data in the lower half-word) to SRAM.
Note:
1. Do not convert the same channel on the two ADCs (no overlapping sampling times for the
two ADCs when converting the same channel).
2. In parallel mode, exactly the same sampling time should be configured for the two channels
that will be sampled simultaneously by ACD0 and ADC1.
Figure 11-14. Regular parallel mode on 16 channels
CH0
CH1
CH2
CH3
CH4
CH5
CH6
CH7
ADC0
ADC1
Regular
trigger
CH14
CH2
Sample
Convert
·
·
·
·
·
·
CH15
CH3
CH0
CH4
·
·
·
·
·
·
CH1
CH5
EOC
11.6.2.
Inserted parallel mode
This mode converts the inserted channel simultaneously. The source of external trigger
comes from the inserted group MUX of ADC0 (selected by the ETSIC[2:0] bits in the
ADC_CTL1 register). A simultaneous trigger is provided to ADC1.
At the end of conversion event on ADC0 or ADC1, an EOIC interrupt is generated (if enabled
on one of the two ADC interfaces). ADC0/ADC1 inserted channels are all converted, and the
converted data is stored in the ADC_IDATAx registers of each ADC interface. The behavior
of inserted parallel mode shows in the
Figure 11-15. Inserted parallel mode on 4 channels
Note:
1. Do not convert the same channel on the two ADCs (no overlapping sampling times for the
two ADCs when converting the same channel).
2. In parallel mode, exactly the same sampling time should be configured for the two channels
that will be sampled simultaneously by ADC0 and ADC1.