
Rev. 1.00
128
October 26, 2018
Rev. 1.00
129
October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
• OVPC1 Register
Bit
7
6
5
4
3
2
1
0
Name OVPCOUT OVPCOFM OVPCRS OVPCOF4 OVPCOF3 OVPCOF2 OVPCOF1 OVPCOF0
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
OVPCOUT
: OVP comparator output bit
0: Positive input voltage < negative input voltage
1: Positive input voltage > negative input voltage
Bit 6
OVPCOFM
: OVP comparator operating mode selection
0: Normal operation mode
1: Input offset voltage calibration mode
This bit is used to select the OVP comparator operating mode. To select the comparator
input offset cancellation mode, the OVPCOFM bit must be set to 1. Refer to the
“Comparator Input Offset Cancellation” section for the detailed offset cancellation
procedures.
Bit 5
OVPCRS
: OVP comparator input offset voltage calibration reference selection
0: Input reference voltage comes from negative input
1: Input reference voltage comes from positive input
Bit 4~0
OVPCOF4~OVPCOF0
: OVP comparator input offset voltage calibration control
This 5-bit field is used to perform the comparator input offset cancellation operation
and the value for the OVP comparator input offset cancellation can be restored into
this bit field. More detailed information is described in the “Comparator Input Offset
Cancellation” section.
• OVPC2 Register
Bit
7
6
5
4
3
2
1
0
Name
—
—
—
—
HYS1
HYS0
OVPS1
OVPS0
R/W
—
—
—
—
R/W
R/W
R/W
R/W
POR
—
—
—
—
0
0
0
0
Bit 7~4
Unimplemented, read as “0”
Bit 3~2
HYS1~HYS0
: OVP comparator hysteresis voltage window control
Refer to “Over Voltage Protection Electrical Characteristics” table for details.
Bit 1~0
OVPS1~OVPS0
: OVP input source selection
00: Not choose
01: OVPI0
10: OVPI1
11: Not choose
• OVPDA Register
Bit
7
6
5
4
3
2
1
0
Name
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7~0
D7~D0
: OVP D/A converter output voltage control bits
DAC V
OUT
=(D/A converter reference voltage/256)×OVPDA[7:0]
Comparator Input Offset Cancellation
As the OVP inputs are pin-shared with other pin functions, they should be configured as OVP input
pin functions first by configuring the relevant pin-shared control bits. It should be noted that before
offset calibration, the hysteresis voltage should be zero by clearing the HYS[1:0] bits to “00”. For
comparator input offset calibration, the procedures are summarised as the following.