
Rev. 1.00
124
October 26, 2018
Rev. 1.00
125
October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
Bit 6
OCPORSP
: OCP Operational Amplifier Input Offset Voltage Calibration Reference
selection
0: Select negative input as the reference input
1: Select positive input as the reference input
Bit 5~0
OCPOOF5~OCPOOF0
: OCP Operational Amplifier Input Offset Voltage Calibration
value
This 6-bit field is used to perform the operational amplifier input offset Calibration
operation and the value for the OCP operational amplifier input offset Calibration can
be restored into this bit field. More detailed information is described in the “Operational
Amplifier Input Offset Calibration” section.
• OCPCCAL Register
Bit
7
6
5
4
3
2
1
0
Name OCPCOUT OCPCOFM OCPCRSP OCPCOF4 OCPCOF3 OCPCOF2 OCPCOF1 OCPCOF0
R/W
R
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
1
0
0
0
0
Bit 7
OCPCOUT
: OCP Comparator Output, positive logic (read only)
0: Positive input voltage < Negative input voltage
1: Positive input voltage > Negative input voltage
This bit is used to indicate whether the positive input voltage is greater than the
negative input voltage when the OCP operates in the input offset Calibration mode. If
the OCPCOUT is set to 1, the positive input voltage is greater than the negative input
voltage. Otherwise, the positive input voltage is less than the negative input voltage.
Bit 6
OCPCOFM
: OCP Comparator Input Offset Calibration Mode enable control
0: Input Offset Calibration Mode disabled
1: Input Offset Calibration Mode enabled
This bit is used to control the OCP comparator input offset Calibration function. The
OCPEN1 and OCPEN0 bits must first be set to “11” and then the OCPCOFM bit must
be set to 1 followed by the OCPOOFM bit being setting to 0, then the comparator
input offset calibration mode will be enabled. Refer to the “Comparator Input Offset
Calibration” section for the detailed offset calibration procedures.
Bit 5
OCPCRSP
: OCP Comparator Input Offset Calibration Reference Input select
0: Select negative input as the reference input
1: Select positive input as the reference input
Bit 4~0
OCPCOF4~OCPCOF0
: OCP Comparator Input Offset Calibration value
This 5-bit field is used to perform the comparator input offset calibration operation
and the value for the OCP comparator input offset calibration can be restored into
this bit field. More detailed information is described in the “Comparator Input Offset
Calibration” section.
Input Voltage Range
Together with different PGA operating modes, the input voltage on the OCP pin can be positive
or negative for flexible operation. The PGA output for the positive or negative input voltage is
calculated based on different formulas and described by the following.
• For input voltages V
IN
> 0, the PGA operates in the non-inverting mode and the PGA output is
obtained using the formula below:
V
OUT
=(1+R2/R1)×V
IN
• When the PGA operates in the non-inverting mode by setting the OCPEN[1:0] to “01” with unity
gain select by setting the G[2:0] to “000”, the PGA will act as a unit-gain buffer whose output is
equal to V
IN
.
V
OUT
=V
IN