GD32VF103 User Manual
170
after 14 ADC clock cycles, after the second 14 ADC clock cycles the ADC1 runs again.
Continuous mode can
’
t be used in this mode, because it continuously converts the regular
channel. The behavior of follow-up slow mode shows in the
After an EOC interrupt is generated by ADC0 (if enabled through the EOCIE bit), we can use
a 32-bit DMA, which transfers to SRAM 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.
Note:
1. The maximum sampling time allowed is <14 ADCCLK cycles to avoid the overlap between
ADC0 and ADC1 sampling phases in the event that they convert the same channel.
2. For both the fast and follow-up slow mode, we must ensure that no external trigger for
inserted channel occurs.
Figure 11-17. Follow-up slow mode on 1 channel
CH1
ADC0
ADC1
Regular
trigger
Sample
Convert
·
·
·
·
·
·
EOC(ADC0 )
EOC(ADC1)
CH1
CH1
CH1
CH1
CH1
CH1
CH1
14 ADCCLK
cycles
14 ADCCLK
cycles
11.6.5.
Trigger rotation mode
This mode can be running on the inserted channel group. The source of external trigger
comes from the inserted channel MUX of ADC0 (selected by the ETSIC[2:0] bits in the
ADC_CTL1 register).
When the first trigger occurs, all the inserted channels of ADC0 are converted. When the
second trigger occurs, all the inserted channels of ADC1 are converted. The behavior of
trigger rotation mode shows in the
Figure 11-18. Trigger rotation: inserted channel group
If the EOIC interrupt of ADC0 and ADC1 are enabled, when all the channels of ADC0 or ADC1
have been converted, the corresponded interrupt occurred.
If another external trigger occurs after all inserted group channels have been converted, the
trigger rotation process restarts by converting ADC0 inserted group channels.