
AT32F413
Series Reference Manual
2022.06.27
Page 274
Rev 2.00
Figure 19-4
Sequence mode
ADC_IN5
ADC_IN0
ADC_IN5
OCLEN=2, OSN1=ADC_IN5, OSN2=ADC_IN0, OSN3=ADC_IN5
Ordinary channel
trigger
CCE flag set
ADC_IN5
ADC_IN0
ADC_IN5
CCE flag set
Ordinary channel
trigger
ADC_IN14
ADC_IN1
ADC_IN14
PCLEN=2, PSN2=ADC_IN14, PSN3=ADC_IN1, PSN4=ADC_IN14
Preempted channel
trigger
CCE and
PCCE flag set
ADC_IN14
ADC_IN1
ADC_IN14
CCE and
PCCE flag set
Preempted channel
trigger
Sampling
Conversion
19.4.3.2 Automatic preempted group conversion mode
The automatic preempted group conversion mode is enabled by setting the PCAUTOEN bit in the
ADC_CTRL1 register. Once the ordinary channel conversion is over, the preempted group will
automatically continue its conversion. This mode can work with the sequence mode. The preempted
group conversion starts automatically at the end of the conversion of the ordinary group.
shows an example of the behavior when the automatic preempted group conversion mode works with
the ordinary group.
Figure 19-5
Preempted group auto conversion mode
ADC_IN5
ADC_IN0
ADC_IN5
OCLEN=2, OSN1=ADC_IN5, OSN2=ADC_IN0, OSN3=ADC_IN5
Ordinary channel
trigger
CCE flag set
PCLEN=1, PSN3=ADC_IN14, PSN4=ADC_IN1
ADC_IN14
ADC_IN1
CCE and
PCCE flag set
Sampling
Conversion
19.4.3.3 Repetition mode
The repetition mode is enabled by setting the RPEN bit in the ADC_CTRL2 register. When a trigger
signal is detected, the ordinary channels will be converting repeatedly. This mode can work with the
ordinary channel conversion in the sequence mode to enable the repeated conversion of the ordinary
group. Such mode can also work with the preempted group auto conversion mode to repeatedly convert
the ordinary group and preempted group in sequence.
shows an example of the behavior
when the repetition mode works with the sequence mode and preempted group auto conversion mode.