![ARTERY AT32F435 Series Скачать руководство пользователя страница 361](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592361.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 361
Rev 2.03
Figure 18-4
Sequence mode
ADC_IN5
ADC_IN0
ADC_IN5
OCLEN=2, OSN1=ADC_IN5, OSN2=ADC_IN0, OSN3=ADC_IN5
Ordinary channel
trigger
OCCE flag set
ADC_IN5
ADC_IN0
ADC_IN5
OCCE 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
PCCE flag set
ADC_IN14
ADC_IN1
ADC_IN14
PCCE flag set
Preempted channel
trigger
Sampling
Conversion
18.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. Figure 18-5
shows an example of the behavior when the automatic preempted group conversion mode works with
the ordinary group.
Figure 18-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
OCCE flag set
PCLEN=1, PSN3=ADC_IN14, PSN4=ADC_IN1
ADC_IN14
ADC_IN1
PCCE flag set
Sampling
Conversion
18.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 converted 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. Figure 19-6 shows an example of the behavior
when the repetition mode works with the sequence mode and preempted group auto conversion mode.