Operational amplifier (OPAMP)
RM0365
431/1080
DocID025202 Rev 7
18.4 OPAMP
registers
18.4.1 OPAMP1
control
register (OPAMP1_CSR)
Note:
This register is only available in STM32F302xB/C/D/E devices.
Address offset : 0x38
Reset value: 0xXXXX 0000
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
LOCK OUTCAL
TSTR
EF
TRIMOFFSETN
TRIMOFFSETP
USER_
TRIM
PGA_GAIN
rw
r
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PGA_GAIN
CALSEL
CAL
ON
VPS_SEL
VMS_SE
L
TCM_
EN
VM_SEL
Res.
VP_SEL
FORCE
_VP
OPAMP
1EN
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bit 31
LOCK:
OPAMP 1 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 OPAMP1_CSR register as read-only.
0: OPAMP1_CSR is read-write.
1: OPAMP1_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
REFOPAMP1
).
0: V
REFOPAMP1
is output.
1: V
REFOPAMP1
is not output.
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.