DocID025202 Rev 7
434/1080
RM0365
Operational amplifier (OPAMP)
436
Bit 18
USER_TRIM:
User trimming enable.
This bit is used to configure the OPAMP offset.
0: User trimming disabled.
1: User trimming enabled.
Bits 17:14
PGA_GAIN:
gain in PGA mode
0X00 = Non-inverting gain = 2
0X01 = Non-inverting gain = 4
0X10 = Non-inverting gain = 8
0X11 = Non-inverting gain = 16
1000 = Non-inverting gain = 2 - Internal feedback connected to VM0
1001 = Non-inverting gain = 4 - Internal feedback connected to VM0
1010 = Non-inverting gain = 8 - Internal feedback connected to VM0
1011 = Non-inverting gain = 16 - Internal feedback connected to VM0
1100 = Non-inverting gain = 2 - Internal feedback connected to VM1
1101 = Non-inverting gain = 4 - Internal feedback connected to VM1
1110 = Non-inverting gain = 8 - Internal feedback connected to VM1
1111 = Non-inverting gain = 16 - Internal feedback connected to VM1
Bits 13:12
CALSEL:
Calibration selection
This bit is set and cleared by software. It is used to select the offset calibration bus used to generate
the internal reference voltage when CALON = 1 or FORCE_VP= 1.
00 =
V
REFOPAMP
= 3.3% V
DDA
01 =
V
REFOPAMP
= 10% V
DDA
10 =
V
REFOPAMP
= 50% V
DDA
11 =
V
REFOPAMP
= 90% V
DDA
Bit 11
CALON:
Calibration mode enable
This bit is set and cleared by software. It is used to enable the calibration mode connecting VM and
VP to the OPAMP internal reference voltage.
0: calibration mode disabled.
1: calibration mode enabled.
Bits 10:9
VPS_SEL:
OPAMP2 Non inverting input secondary selection.
These bits are set and cleared by software. They are used to select the OPAMP2 non inverting input
when TCM_EN = 1.
00: PD14 used as OPAMP2 non inverting input (STM32F302xB/C/D/E devices only)
01: PB14 used as OPAMP2 non inverting input
10: PB0 used as OPAMP2 non inverting input
11: PA7 used as OPAMP2 non inverting input
Bit 8
VMS_SEL:
OPAMP2 inverting input secondary selection
This bit is set and cleared by software. It is used to select the OPAMP2 inverting input when
TCM_EN = 1.
0: PC5 (VM0) used as OPAMP2 inverting input
1: PA5 (VM1) used as OPAMP2 inverting input
Bit 7
TCM_EN:
Timer controlled Mux mode enable.
This bit is set and cleared by software. It is used to control automatically the switch between the
default selection (VP_SEL and VM_SEL) and the secondary selection (VPS_SEL and VMS_SEL) of
the inverting and non inverting inputs.