812
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
27.2.5
OPAMP calibration
The chip has been calibrated before delivery. Users can calibrate the chip again according to the actual environment.
Note: Contact Nations for specific calibration methods to obtain relevant information.
27.2.6
OPAMP independent write protection
By configuring the OPAMP_LOCK register, the write protection of OPAMP can be set independently.After the write
protection is set, the software cannot write to the corresponding OPAMP register. Only after the chip is reset, the
write protection can be cancelled.
27.2.7
OPAMP TIMER controls the switching mode
In some applications, the input switching of the OPAMP can be performed through TIMx_CC6 .TIM1_CC6 controls
the input switching of OPAMP1 and OPAMP2, and TIM8_CC6 controls the input switching of OPAMP3 and
OPAMP4.
When TIM1_CC6 is high, OPAMP1 and OPAMP2 select the port configured by VPSSEL/VMSSEL as input,
otherwise use VPSEL/VMSEL. When TIM8_CC6 is high, OPAMP3 and OPAMP4 select the port configured by
VPSSEL/VMSSEL as input, otherwise use VPSEL/VMSEL.
Set OPAMPx_CS. TCMEN to 1 to enable the automatic switchover input function. The process for configuring the
automatic switchover is as follows:
Enable automatic switching function OPAMPx_CS.TCMEN (OPAMP independent control)
Configured two conversion MUX configuration (VPSEL,VMSEL, VPSSEL, VMSSEL)
Start OPAMP and TIM
OPAMP register
27.3.1
OPAMP register overview
Table 27-1 OPAMP register overview
Offset
Register
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
000h
OPAMP_CS1
Reserved
VPS
S
E
L
[2:0]
VM
S
S
E
L
[1:0
]
T
C
M
E
N
R
AN
GE
C
AL
OU
T
T
S
T
R
E
F
R
es
er
ve
d
C
AL
ON
VPS
E
L
[2:0]
VM
S
E
L
[1:0]
P
GA
GA
N[
2:0]
M
OD
[1:0]
EN
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
010h
OPAMP_CS2
Reserved
VPS
S
E
L
[2
:0]
VM
S
S
E
L
[
1:0]
T
C
M
E
N
R
AN
GE
C
AL
OU
T
T
S
T
R
E
F
R
es
er
ve
d
C
AL
ON
VPS
E
L
[2:
0]
VM
S
E
L
[1:
0]
P
GA
GA
N[
2:0]
M
OD
[1:0]
EN
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
020h
OPAMP_CS3
Reserved
VPS
S
E
L
[2:0]
VM
S
S
E
L
[1:0
]
T
C
M
E
N
R
AN
GE
C
AL
OU
T
T
S
T
R
E
F
R
es
er
ve
d
C
AL
ON
VPS
E
L
[2:0]
VM
S
E
L
[1:0]
P
GA
GA
N[
2:0]
M
OD
[1:0]
EN
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0