GD32VF103 User Manual
167
In sync mode, when configure the conversion which is triggered by an external event, the
slave ADC must be configured as triggered by the software in order to prevent false triggers
to start unwanted conversion. However, the external trigger must be enabled for ADC master
and ADC slave.
The following modes can be configured:
–
Free mode
–
Regular parallel mode
–
Inserted parallel mode
–
Follow-up fast mode
–
Follow-up slow mode
–
Trigger rotation mode
–
Inserted parallel mode + regular parallel mode
–
Regular parallel mode + trigger rotation mode
–
Inserted parallel mode + follow-up fast mode
–
Inserted parallel mode + follow-up slow mode
In ADC sync mode, the DMA bit must be set even if it is not used; the converted data of ADC
slave can be read from the master data register.
Figure 11-13. ADC sync block diagram
ADC_IN0
ADC_IN1
·
·
·
ADC_IN15
GPIO
V
SENSE
V
REF
EXTI11
EXTI15
A
P
B
B
U
S
ADC0
(master)
ADC1
(slave)
Regular data registers
(
16 bits
)
Inserted
channels
Inserted data registers
(
16 bits x 4
)
Regular
channels
Regular data registers
(
16 bits
)
Inserted
channels
Inserted data registers
(
16 bits x 4
)
Regular
channels
Regular
trigger mux
Inserted
trigger mux
Syncl mode
control
11.6.
Free mode
In this mode, the ADC synchronization is bypassed, and each ADC works freely.