Analog-to-digital converters (ADC)
Table 137. Maximum output results versus N and M (gray cells indicate truncation)
Over
Max
sampling
Raw data
ratio
2x
0x1FFE
4x
0x3FFC
8x
0x7FF8
16x
0xFFF0
32x
0x1FFE0
64x
0x3FFC0
128x
0x7FF80
256x
0xFFF00
There are no changes for conversion timings in oversampled mode: the sample time is
maintained equal during the whole oversampling sequence. A new data is provided every N
conversions, with an equivalent delay equal to N x T
set as follow:
•
The end of the sampling phase (EOSMP) is set after each sampling phase
•
The end of conversion (EOC) occurs once every N conversions, when the
oversampled result is available
•
The end of sequence (EOS) occurs once the sequence of oversampled data is
completed (i.e. after N x sequence length conversions total)
ADC operating modes supported when oversampling (single ADC mode)
In oversampling mode, most of the ADC operating modes are maintained:
•
Single or continuous mode conversions
•
ADC conversions start either by software or with triggers
•
ADC stop during a conversion (abort)
•
Data read via CPU or DMA with overrun detection
•
Low-power modes (AUTDLY)
•
Programmable resolution: in this case, the reduced conversion values (as per RES[1:0]
bits in ADC_CFGR1 register) are accumulated, truncated, rounded and shifted in the
same way as 12-bit conversions are
Note:
The alignment mode is not available when working with oversampled data. The ALIGN bit in
ADC_CFGR1 is ignored and the data are always provided right-aligned.
Offset correction is not supported in oversampling mode. When ROVSE and/or JOVSE bit is
set, the value of the OFFSETy_EN bit in ADC_OFRy register is ignored (considered as
reset).
666/2301
No-shift
1-bit
2-bit
shift
shift
OVSS =
OVSS =
OVSS =
0000
0001
0010
0x1FFE
0x0FFF
0x0800
0x3FFC 0x1FFE
0x0FFF
0x7FF8
0x3FFC 0x1FFE
0xFFF0
0x7FF8
0x3FFC 0x1FFE
0xFFE0
0xFFF0
0x7FF8
0xFFC0
0xFFE0
0xFFF0
0xFF80
0xFFC0 0xFFE0
0xFF00
0xFF80
0xFFC0 0xFFE0
3-bit
4-bit
shift
shift
OVSS =
OVSS =
0011
0100
0x0400
0x0200
0x0800
0x0400
0x0FFF
0x0800
0x0FFF
0x3FFC 0x1FFE
0x7FF8
0x3FFC 0x1FFE
0xFFF0
0x7FF8
0xFFF0
CONV
RM0432 Rev 6
5-bit
6-bit
7-bit
shift
shift
shift
OVSS =
OVSS =
OVSS =
0101
0110
0111
0x0100
0x0080
0x0040
0x0200
0x0100
0x0080
0x0400
0x0200
0x0100
0x0800
0x0400
0x0200
0x0FFF
0x0800
0x0400
0x0FFF
0x0800
0x3FFC 0x1FFE
0x0FFF
0x7FF8
0x3FFC 0x1FFE
= N x (t
+ t
). The flags are
SMPL
SAR
RM0432
8-bit
shift
OVSS =
1000
0x020
0x0040
0x0080
0x0100
0x0200
0x0400
0x0800
0x0FFF
Need help?
Do you have a question about the STM32L4+ Series and is the answer not in the manual?