RM0440
Bit 31 OFFSETy_EN: Offset y Enable
Note: The software is allowed to write this bit only when ADSTART=0 and JADSTART=0
Bits 30:26 OFFSETy_CH[4:0]: Channel selection for the Data offset y
Note: The software is allowed to write these bits only when ADSTART=0 and JADSTART=0
Bit 25 SATEN: Saturation enable
Note: The software is allowed to write these bits only when ADSTART=0 and JADSTART=0
Bit 24 OFFSETPOS: Positive offset
Note: The software is allowed to write these bits only when ADSTART=0 and JADSTART=0
Bits 23:12 Reserved, must be kept at reset value.
Bits 11:0 OFFSETy[11:0]: Data offset y for the channel programmed into bits OFFSETy_CH[4:0]
Note: The software is allowed to write these bits only when ADSTART=0 and JADSTART=0
20.6.18
ADC injected channel y data register (ADC_JDRy)
Address offset: 0x80 + 0x04 * (y - 1), (y = 1 to 4)
Reset value: 0x0000 0000
31
30
29
28
Res.
Res.
Res.
Res.
15
14
13
12
r
r
r
This bit is written by software to enable or disable the offset programmed into bits
OFFSETy[11:0].
(which ensures that no conversion is ongoing).
These bits are written by software to define the channel to which the offset programmed into
bits OFFSETy[11:0] will apply.
(which ensures that no conversion is ongoing).
This bit is set and cleared by software to enable the saturation at 0x000 and 0xFFF for the
offset function.
0: No saturation control, offset result can be signed
1: Saturation enabled, offset result unsigned and saturated at 0x000 and 0xFFF
(which ensures that no conversion is ongoing).
This bit is set and cleared by software to enable the positive offset.
0: Negative offset
1: Positive offset
(which ensures that no conversion is ongoing).
These bits are written by software to define the offset y to be subtracted from the raw
converted data when converting a channel (can be regular or injected). The channel to which
applies the data offset y must be programmed in the bits OFFSETy_CH[4:0]. The conversion
result can be read from in the ADC_DR (regular conversion) or from in the ADC_JDRyi
registers (injected conversion).
(which ensures that no conversion is ongoing).
If several offset (OFFSETy) point to the same channel, only the offset with the lowest x
value is considered for the subtraction.
Ex: if OFFSET1_CH[4:0]=4 and OFFSET2_CH[4:0]=4, this is OFFSET1[11:0] which is
subtracted when converting channel 4.
27
26
25
Res.
Res.
Res.
11
10
9
r
r
r
r
24
23
22
Res.
Res.
Res.
Res.
8
7
6
JDATA[15:0]
r
r
r
RM0440 Rev 1
Analog-to-digital converters (ADC)
21
20
19
18
Res.
Res.
Res.
5
4
3
2
r
r
r
r
17
16
Res.
Res.
1
0
r
r
671/3748
683
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?