![ARTERY AT32F435 Series Reference Manual Download Page 364](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592364.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 364
Rev 2.03
18.4.5.1 Oversampling of ordinary group of channels
The OOSRSEL bit in the ADC_OVSP register can be used to resume ordinary oversampling mode.
OOSRSEL=0: continuous conversion mode. Ordinary group of channels, after being interrupted
by preempted group of channels during oversampling, will retain the converted data and resume
from the last interrupted ordinary conversion.
OOSRSEL=1: restart mode. Ordinary group of channels, after being interrupted by preempted
group of channels during oversampling, will be reset and restart the ordinary conversion.
Figure 18-9 shows the differences between ordinary continuous modes and restart mode in 4x
oversampling rate and sequential mode.
Figure 18-9 Ordinary oversam pling restart mode selection
ADC_IN0
ADC_IN0
Preempted
trigger
Oversampling
halt
Oversampling
continue
OCCE flag set
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
OCCE flag set
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. Figure
18-10 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.