
AT32F413
Series Reference Manual
2022.06.27
Page 275
Rev 2.00
Figure 19-6
Repetition mode
ADC_IN5
ADC_IN0
OCLEN=1, OSN1=ADC_IN5, OSN2=ADC_IN0
Ordinary channel
trigger
CCE flag set
PCLEN=1, PSN3=ADC_IN14, PSN4=ADC_IN1
ADC_IN14
ADC_IN1
CCE and
PCCE flag set
ADC_IN5
ADC_IN0
CCE flag set
ADC_IN14
Sampling
Conversion
19.4.3.4 Partition mode
The partition mode of the ordinary group can be enabled by setting the OCPEN bit in the ADC_CTRL1
register. In this mode, the ordinary group conversion sequence length (OCLEN bit in the ADC_OSQ1
register) is divided into a smaller sub-group, in which the number of the channels is programmed with
the OCPCNT bit in the ADC_CTRL1 register. A single trigger event will enable the conversion of all the
channels in the sub-group. Each trigger event selects different sub-group in order.
Set the PCPEN bit in the ADC_CTRL1 register will enable the partition mode of the preempted group.
In this mode, the ordinary group conversion sequence length (OCLEN bit in the ADC_OSQ1 register) is
divided into a sub-group with only one channel. A single one trigger event will convert the channel in the
sub-group. Each trigger event select different sub-group in order.
The partition mode cannot be used with the repetition mode at the same time. The partition mode of the
ordinary group cannot be used with that of the preempted group at the same time.
an example of the behavior in partition mode for ordinary group and preempted group.
Figure 19-7
Partition mode
ADC_IN5
ADC_IN0
OCLEN=4, OCPCNT=1, OSN1=ADC_IN5, OSN2=ADC_IN0, OSN3=ADC_IN2, OSN4=ADC_IN1, OSN5=ADC_IN7
Ordinary channel
trigger
CCE flag set
PCLEN=2, PSN2=ADC_IN14, PSN3=ADC_IN1, PSN4=ADC_IN13
ADC_IN2
ADC_IN1
ADC_IN7
Ordinary channel
trigger
CCE flag set
ADC_IN5
Ordinary channel
trigger
ADC_IN14
ADC_IN1
Preempted
channel trigger
PCCE flag set
ADC_IN13
ADC_IN14
Preempted
channel trigger
Preempted
channel trigger
Preempted
channel trigger
CCE flag set
Ordinary channel
trigger
ADC_IN0
CCE flag set
Sampling
Conversion