GD32F10x User Manual
221
11.5.1.
Free mode
In this mode, each ADC works independently and does not interfere with each other.
11.5.2.
Routine parallel mode
This mode converts the routine
sequence simultaneously. The source of external trigger
comes from the ADC0 routine
sequence (configured by the ETSRC[2:0] bits in the ADC_CTL1
register)
, and ADC1 routine
sequence is configured as software trigger mode.
At the end of conversion event on ADC0 or ADC1, an EOC interrupt is generated (if enabled
on one of the two ADC interrupt) when the ADC0/ADC1 routine
channels are all converted.
The behavior of routine
Figure 11-9. Routine 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 [31: 16] bits field and the ADC0 converted
data in the [15: 0] bits field) to SRAM.
Note:
1. If two ADCs use the same sampling channel, it should be ensured that the channel is not
used at the same time.
2. Two channels sampled by two ADCs at the same time should be configured with the same
sampling time.
Figure 11-9. Routine parallel mode on 10 channels
CH0
CH1
CH2
CH3
CH4
CH5
CH6
CH7
ADC0
ADC1
Routine
trigger
CH8
CH12
Sample
Convert
· · ·
· · ·
CH9
CH13
CH0
CH4
· · ·
· · ·
CH1
CH5
EOC
11.5.3.
Routine follow-up fast mode
The routine follow-up fast 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[2:0]
bits 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
two ADCs are continuously converted. The behavior of follow-up fast mode shows in the
Figure 11-10. Routine follow-up fast mode (the CTN bit of ADCs are set).
After an EOC interrupt is generated by ADC0 in case of setting the EOCIE bit, we can use a
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...