AT32F425
Series Reference Manual
2022.03.30
Page 306
Ver 2.01
Figure 18-8 Ordinary oversampling restart mode selection
ADC_IN0
ADC_IN0
Preempted
trigger
Oversampling
halt
Oversampling
continue
CCE flag set
CCE and PCCE
flag set
Continue mode
:
OOSEN = 1, POSEN = 0,
OOSRSEL
= 0,
OOSTREN
=0
Ordinary
trigger
1
st
2
nd
3
rd
ADC_IN0
ADC_IN4
ADC_IN5
ADC_IN0
ADC_IN0
3
rd
4
th
Ordinary
Preempted
ADC_IN0
ADC_IN0
Preempted
trigger
Oversampling
halt
Oversampling
continue
CCE flag set
CCE and PCCE
flag set
Restart mode
:
OOSEN = 1, POSEN = 0,
OOSRSEL
= 1,
OOSTREN
=0
Ordinary
trigger
1
st
2
nd
3
rd
ADC_IN0
ADC_IN4
ADC_IN5
Ordinary
Preempted
ADC_IN0
ADC_IN0
1
st
2
nd
3
rd
ADC_IN0 4
th
ADC_IN0
OCLEN=0, OSN1=ADC_IN0
PCLEN=1, PSN3=ADC_IN4, PSN4=ADC_IN5
Sampling
Conversion
Trigger mode can be enabled by setting the OOSTREN bit in the ADC_OVSP register. The user must
trigger each of the ordinary conversions. In this mode, once the ordinary conversion is interrupted by
preempted group of channels, it is necessary to re-trigger ordinary group of channels before resuming
the ordinary channels.
When the trigger mode works together with conversion sequence management mode, trigger mode is
applied, and the conversion complete flag follows the conversion sequence management mode.
shows the behavior when the ordinary trigger mode works together with resume mode in 4x
oversampling rate and sequential mode.
Note: It is not possible to use both the trigger mode and repetition mode simultaneously.
Figure 18-9
Ordinary oversampling trigger mode
ADC_IN0
ADC_IN0
CCE flag set
Non-triggered oversampling mode
:
OOSEN = 1, POSEN = 0,
OOSRSEL
= 0,
OOSTREN
=0
Ordinary
trigger
1
st
2
nd
3
rd
ADC_IN0
Ordinary
OCLEN=1, OSN1=ADC_IN0, OSN2=ADC_IN1
4
th
ADC_IN0
ADC_IN1
ADC_IN1
1
st
2
nd
3
rd
ADC_IN1 4
th
ADC_IN1
ADC_IN0
ADC_IN0
CCE flag set
Triggered oversampling mode
:
OOSEN = 1, POSEN = 0,
OOSRSEL
= 0,
OOSTREN
=1
Ordinary
trigger
1
st
2
nd
3
rd
ADC_IN0
Ordinary
4
th
ADC_IN0
ADC_IN1
ADC_IN1
1
st
2
nd
3
rd
ADC_IN1
4
th
ADC_IN1
Ordinary
trigger
Ordinary
trigger
Ordinary
trigger
Ordinary
trigger
Ordinary
trigger
Ordinary
trigger
Ordinary
trigger
Sampling
Conversion
18.4.4.2 Oversampling of preempted group of channels
It is possible to use both the preempted oversampling and ordinary oversampling simultaneously or
individually. The oversampling of the preempted group of channles does not affect the ordinary
oversampling modes.
shows the behavior when the preempted oversampling and ordinary
oversampling trigger mode are used simultaneously in 4x oversampling rate and auto-conversion of
preempted group.