Analog/digital converter (ADC) UM0306
456/519
19.4.8 Scan mode
This mode is used to scan a group of analog channels.
Scan mode can be selected by setting the SCAN bit in the ADC_CR1 register. Once this bit
is set, ADC scans all the channels selected in the ADC_SQRx registers (for regular
channels) or in the ADC_JSQR (for injected channels). A single conversion is performed for
each channel of the group. After each end of conversion the next channel of the group is
converted automatically. If the CONT bit is set, conversion does not stop at the last selected
group channel but continues again from the first selected group channel.
If the DMA bit is set, the direct memory access controller is used to transfer the converted
data of regular group channels to SRAM after each EOC.
The injected channel converted data is always stored in the ADC_JDRx registers.
Table 66. Analog watchdog channel selection
Channels to be guarded by Analog
Watchdog
ADC_CR1 register control bits (x = don’t care)
AWDSGL bit AWDEN bit JAWDEN bit
None x 0 0
All injected channels 0 0 1
All regular channels 0 1 0
All regular and injected channels 0 1 1
Single
(1)
injected channel
1. Selected by AWDCH[4:0] bits
101
Single
(1)
regular channel 1 1 0
Single
(1)
regular or injected channel 1 1 1