RM0366
15.4
OPAMP registers
15.4.1
OPAMP2 control register (OPAMP2_CSR)
Address offset: 0x3C
Reset value: 0xXXXX 0000
31
30
29
28
OUT
TSTR
LOCK
CAL
EF
rw
r
rw
15
14
13
12
PGA_GAIN
CALSEL
rw
rw
Bit 31 LOCK: OPAMP 2 lock
This bit is write-once. It is set by software. It can only be cleared by a system reset.
This bit is used to configure the OPAMP2_CSR register as read-only.
0: OPAMP2_CSR is read-write.
1: OPAMP2_CSR is read-only.
Bit 30 OUTCAL:
OPAMP output status flag, when the OPAMP is used as comparator during calibration.
0: Non-inverting < inverting
1: Non-inverting > inverting.
Bit 29 TSTREF:
This bit is set and cleared by software. It is used to output the internal reference voltage
(V
REFOPAMP2
0: V
REFOPAMP2
1: V
REFOPAMP2
Bits 28:24 TRIMOFFSETN: Offset trimming value (NMOS)
Bits 23:19 TRIMOFFSETP: Offset trimming value (PMOS)
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
27
26
25
24
TRIMOFFSETN
rw
11
10
9
8
CAL
VMS_
VPS_SEL
ON
SEL
rw
rw
rw
).
is output.
is not output.
RM0366 Rev 5
Operational amplifier (OPAMP)
23
22
21
20
TRIMOFFSETP
rw
7
6
5
TCM_
VM_SEL
Res.
EN
rw
rw
19
18
17
USER_
PGA_GAIN
TRIM
rw
4
3
2
1
FORCE
VP_SEL
_VP
rw
rw
16
rw
0
OPAMP
2EN
rw
309/874
312
Need help?
Do you have a question about the STM32F301 6 Series and is the answer not in the manual?