GD32A50x User Manual
280
same sampling time.
Figure 14-12. Routine parallel mode on 16 channels
CH0
CH1
CH2
CH3
CH4
CH5
CH6
CH7
ADC0
ADC1
Routine
trigger
CH14
CH2
Sample
Convert
· · ·
· · ·
CH15
CH3
CH0
CH4
· · ·
· · ·
CH1
CH5
EOC
14.5.3.
Routine follow-up fast mode
This mode can be running on the routine sequence (usually one channel). The source of
trigger comes from the routine channel of ADC0 (selected by the ETSRC bit in the ADC_CTL1
register). When the trigger occurs, ADC1 runs immediately and ADC0 runs after 7 ADC clock
cycles.
If the continuous mode is enabled for both ADC0 and ADC1, the selected routine channels of
both ADCs are continuously converted. The behavior of follow-up fast mode shows in the
Figure 14-13. Routine follow-up fast mode on 1 channel in continuous operation mode
If EOCIE bit is set, an EOC interrupt is generated by ADC0 at the end of conversion event on
ADC0. Also a 32-bit DMA can be 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:
The maximum sampling time allowed is < 7 CK_ADC cycles to avoid the overlap
between ADC0 and ADC1 sampling phases in the event that they convert the same channel.
Figure 14-13. Routine follow-up fast mode on 1 channel in continuous operation mode
CH1
ADC0
ADC1
Routine
trigger
Sample
Convert
· · ·
· · ·
EOC(ADC1 )
EOC(ADC0)
CH1
CH1
CH1
CH1
CH1
CH1
CH1
7 ADCCLK cycles
14.5.4.
Routine follow-up slow mode
The routine follow-up slow mode is applicable to sample the same channel of two ADCs. The
source of external trigger comes from the ADC0 routine channel
(selected by the ETSRC bit
in the ADC_CTL1 register).When the trigger occurs, ADC1 runs immediately, ADC0 runs after
14 ADC clock cycles, after the second 14 ADC clock cycles the ADC1 runs again.