Download Print this page

ST STM32F301 6 Series Reference Manual page 267

Advanced arm-based 32-bit mcus

Advertisement

RM0366
12.5.16
ADC offset register (ADCx_OFRy, x=1) (y=1..4)
Address offset: 0x60, 0x64, 0x68, 0x6C
Reset value: 0x0000 0000
31
30
29
28
OFFSETy
OFFSETy_CH[4:0]
_EN
rw
rw
rw
rw
15
14
13
12
Res.
Res.
Res.
Res.
Bit 31 OFFSETy_EN: Offset y Enable
This bit is written by software to enable or disable the offset programmed into bits
OFFSETy[11:0].
Note: Software is allowed to write this bit only when ADSTART=0 and JADSTART=0 (which
Bits 30:26 OFFSETy_CH[4:0]: Channel selection for the Data offset y
These bits are written by software to define the channel to which the offset programmed into
bits OFFSETy[11:0] will apply.
Note: Software is allowed to write these bits only when ADSTART=0 and JADSTART=0
Note: Analog input channel 0 is not mapped: value "00000" should not be used
Bits 25: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]
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 ADCx_DR (regular conversion) or from in the ADCx_JDRyi
registers (injected conversion).
Note: Software is allowed to write these bits only when ADSTART=0 and JADSTART=0
Note: If several offset (OFFSETy) point to the same channel, only the offset with the lowest x
27
26
25
24
Res.
Res.
rw
rw
11
10
9
8
rw
rw
rw
rw
ensures that no conversion is ongoing).
(which ensures that no conversion is ongoing).
(which ensures that no conversion is ongoing).
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.
RM0366 Rev 5
Analog-to-digital converters (ADC)
23
22
21
20
Res.
Res.
Res.
Res.
7
6
5
4
OFFSETy[11:0]
rw
rw
rw
rw
19
18
17
16
Res.
Res.
Res.
Res.
3
2
1
0
rw
rw
rw
rw
267/874
277

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32F301 6 Series and is the answer not in the manual?

This manual is also suitable for:

Stm32f301 8 seriesStm32f318 8 series