
CH32V003
Reference Manual
V1.3
74
trigger
method
group channels (ADC_ISQR) one by one
in sequence.
Trigger injection method: When the rule
group channel conversion process can be
inserted into the injection group channel
all conversion, and then continue the rule
group channel conversion afterwards; but
the rule group channel conversion will not
be inserted when converting the injection
group channel.
1
ADON
position 1
or external
trigger
method
Single scan mode: performs a single
conversion of all selected rule group
channels (ADC_RSQRx) or all injection
group channels (ADC_ISQR) one by one
in sequence.
Automatic injection method: After the
rule group channel is converted, the
injection group channel is automatically
converted.
0
1 (RDISCEN and
IDISCEN cannot
be 1 at the same
time)
0
External
trigger
method
Single intermittent mode: Each time an
event is started, a short sequence
(DISCNUM[2:0] defined number) of
channel number transitions is executed
and cannot be restarted until all selected
channel transitions are completed.
Note: The IDISCEN and RDISCEN
control bits are selected for the rule group
and injection group respectively, and the
intermittent mode cannot be configured
for the rule group and injection group at
the same time.
1
-
Disable this mode.
1
1
X
-
No such mode.
1
0
0
0
ADON
position 1
or external
trigger
method
Continuous single channel/scan mode:
repeat a new round of transitions at the
end of each round until CONT clears 0 to
terminate.
1
0
0
1
Note: The external trigger events for rule groups and injection groups are different, and the 'ACON' bit can
only initiate rule group channel conversion, so the initiation events for rule group and injection group channel
conversion are independent.
1)
Single single-channel conversion mode
In this mode, only one conversion is executed for the current 1 channel. This mode performs conversion for
the channel that is sorted 1st in the rule group or injection group, where it is initiated by setting ADON position
1 of the ADC_CTLR2 register (for rule channels only) or can be initiated by external trigger (for rule channels
or injection channels). Once the conversion of the selected channel is completed it will.
If the conversion is for a rule group channel, the conversion data is stored in the 16-bit ADC_RDATAR register,
the EOC flag is set, and an ADC interrupt is triggered if the EOCIE bit is set.
If the conversion is for an injection group channel, the conversion data is stored in the 16-bit ADC_IDATAR1
register, the EOC and JEOC flags are set, and an ADC interrupt is triggered if the JEOCIE or EOCIE bit is set.
2)
Single scan mode conversion
The ADC scan mode is entered by setting the SCAN bit of the ADC_CTLR1 register to 1.
This mode is used
to scan a group of analog channels and perform a single conversion for all channels selected by ADC_RSQRx
register (for regular channels) or ADC_ISQR (for injection channels) one by one, and the next channel in the