Operational amplifier (OPAMP)
RM0365
433/1080
DocID025202 Rev 7
18.4.2 OPAMP2
control
register (OPAMP2_CSR)
Address offset: 0x3C
Reset value: 0xXXXX 0000
Bits 3:2
VP_SEL:
OPAMP1 Non inverting input selection.
These bits are set and cleared by software. They are used to select the OPAMP1 non inverting
input.
00: PA7 used as OPAMP1 non inverting input
01: PA5 used as OPAMP1 non inverting input
10: PA3 used as OPAMP1 non inverting input
11: PA1 used as OPAMP1 non inverting input
Bit 1
FORCE_VP:
This bit forces a calibration reference voltage on non-inverting input and disables external
connections.
0: Normal operating mode. Non-inverting input connected to inputs.
1: Calibration mode. Non-inverting input connected to calibration reference voltage.
Bit 0
OPAMP1EN:
OPAMP1 enable.
This bit is set and cleared by software. It is used to enable the OPAMP1.
0: OPAMP1 is disabled.
1: OPAMP1 is enabled.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
LOCK
OUT
CAL
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_
SEL
TCM_
EN
VM_SEL
Res.
VP_SEL
FORCE
_VP
OPAMP
2EN
rw
rw
rw
rw
rw
rw
rw
rw
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
is output.
1: V
REFOPAMP2
is not output.
Bits 28:24
TRIMOFFSETN:
Offset trimming value (NMOS)
Bits 23:19
TRIMOFFSETP:
Offset trimming value (PMOS)