
Rev. 1.00
122
October 26, 2018
Rev. 1.00
123
October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
Over Current Protection Registers
Overall operation of the over current protection is controlled using several registers. The OCPDA
register is used to provide the reference voltage for the over current protection circuit. The
OCPOCAL and OCPCCAL registers are used to cancel out the operational amplifier and comparator
input offset. The OCPC0 and OCPC1 registers are control registers which control the OCP function,
D/A converter reference voltage selection, PGA gain selection, comparator de-bounce time together
with the hysteresis function.
Register
Name
Bit
7
6
5
4
3
2
1
0
OCPC0
OCPEN1
OCPEN0
OCPVRS
OCPCHY
—
—
—
OCPO
OCPC1
—
—
G2
G1
G0
OCPDEB2 OCPDEB1 OCPDEB0
OCPDA
D7
D6
D5
D4
D3
D2
D1
D0
OCPOCAL OCPOOFM OCPORSP OCPOOF5 OCPOOF4 OCPOOF3 OCPOOF2 OCPOOF1 OCPOOF0
OCPCCAL OCPCOUT OCPCOFM OCPCRSP OCPCOF4 OCPCOF3 OCPCOF2 OCPCOF1 OCPCOF0
OCP Register List
• OCPC0 Register
Bit
7
6
5
4
3
2
1
0
Name
OCPEN1 OCPEN0 OCPVRS OCPCHY
—
—
—
OCPO
R/W
R/W
R/W
R/W
R/W
—
—
—
R
POR
0
0
0
0
—
—
—
0
Bit 7~6
OCPEN1~OCPEN0
: OCP function operating mode selection
00: OCP function is disabled, S1and S3 on, S0 and S2 off
01: Non-inverting mode, S0 and S3 on, S1 and S2 off
10: Inverting mode, S1 and S2 on, S0 and S3 off
11: Calibration mode, S1 and S3 on, S0 and S2 off
Bit 5
OCPVRS
: OCP D/A converter reference voltage selection
0: From AV
DD
1: From OCPVR pin
Bit 4
OCPCHY
: OCP comparator hysteresis function control
0: Disable
1: Enable
Bit 3~1
Unimplemented, read as “0”
Bit 0
OCPO
: OCP digital output bit
0: No over current situation occurred
1: Over current situation occurred