RM0432
21.4.11
Channel selection (SQRx, JSQRx)
There are up to 19 multiplexed channels per ADC:
•
5 fast analog inputs coming from GPIO pads (ADCx_INP/INN[1:5])
•
Up to 11 slow analog inputs coming from GPIO pads (ADCx_INP/INN[6:16])
•
The ADCs are connected to the following internal analog inputs:
–
–
–
–
–
Note:
To convert one of the internal analog channels, the corresponding analog sources must first
be enabled by programming bits VREFEN, CH17SEL or CH18SEL in the ADCx_CCR
registers.
It is possible to organize the conversions in two groups: regular and injected. A group
consists of a sequence of conversions that can be done on any channel and in any order.
For instance, it is possible to implement the conversion sequence in the following order:
ADCx_INP/INN3, ADCx_INP/INN8, ADCx_INP/INN2, ADCx_INN/INP2, ADCx_INP/INN0,
ADCx_INP/INN2, ADCx_INP/INN2, ADCx_INP/INN15.
•
A regular group is composed of up to 16 conversions. The regular channels and their
order in the conversion sequence must be selected in the ADC_SQRy registers. The
total number of conversions in the regular group must be written in the L[3:0] bits in the
ADC_SQR1 register.
•
An injected group is composed of up to 4 conversions. The injected channels and
their order in the conversion sequence must be selected in the ADC_JSQR register.
The total number of conversions in the injected group must be written in the L[1:0] bits
in the ADC_JSQR register.
ADC_SQRy registers must not be modified while regular conversions can occur. For this,
the ADC regular conversions must be first stopped by writing ADSTP=1 (refer to
Section 21.4.17: Stopping an ongoing conversion (ADSTP,
The software is allowed to modify on-the-fly the ADC_JSQR register when JADSTART is set
to 1 (injected conversions ongoing) only when the context queue is enabled (JQDIS=0 in
ADC_CFGR register). Refer to
The internal reference voltage (V
The internal temperature sensor (V
The V
monitoring channel (V
BAT
The DAC1 internal channel 1 is connected to ADC2_INP17.
The DAC1 internal channel 2 is connected to ADC2_INP18.
) is connected to ADC1_INP0.
REFINT
) is connected to ADC1_INP17.
TS
/3) is connected to ADC1_INP18.
BAT
Section 21.4.21: Queue of context for injected conversions
RM0432 Rev 6
Analog-to-digital converters (ADC)
JADSTP)).
627/2301
724
Need help?
Do you have a question about the STM32L4+ Series and is the answer not in the manual?