
Rev. 1.00
126
October 26, 2018
Rev. 1.00
127
October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
Over Voltage Protection Registers
Overall operation of the OVP function is controlled using several registers. The OVPDA register is
used to provide the reference voltage for the OVP circuit. The OVPC0~OVPC2 control registers are
used to control the OVP function, D/A converter reference voltage selection, comparator de-bounce
time selection, comparator hysteresis function and comparator output polarity control, etc.
Register
Name
Bit
7
6
5
4
3
2
1
0
OVPC0
OVPO
OVPSPOL
OVPEN
—
—
OVPDEB2 OVPDEB1 OVPDEB0
OVPC1
OVPCOUT OVPCOFM OVPCRS OVPCOF4 OVPCOF3 OVPCOF2 OVPCOF1 OVPCOF0
OVPC2
—
—
—
—
HYS1
HYS0
OVPS1
OVPS0
OVPDA
D7
D6
D5
D4
D3
D2
D1
D0
OVP Register List
• OVPC0 Register
Bit
7
6
5
4
3
2
1
0
Name
OVPO OVPSPOL OVPEN
—
—
OVPDEB2 OVPDEB1 OVPDEB0
R/W
R
R/W
R/W
—
—
R/W
R/W
R/W
POR
0
0
0
—
—
0
0
0
Bit 7
OVPO
: OVP comparator output bit after debounce
0: Positive input voltage < negative input voltage
1: Positive input voltage > negative input voltage
Bit 6
OVPSPOL
: OVP debounced output signal polarity control
0: Non-invert
1: Invert
This bit will determine the OVP interrupt occurrence condition when the OVPO bit
changes state from low to high or high to low.
Bit 5
OVPEN
: OVP function enable control
0: Disable
1: Enable
If the OVPEN bit is cleared to 0, the over voltage protection function is disabled and
no power will be consumed. This results in the comparator and D/A converter of the
OVP both being switched off.
Bit 4~3
Unimplemented, read as “0”
Bit 2~0
OVPDEB2~OVPDEB0
: OVP comparator debounce time selection
000: No debounce
001: (1~2)×t
DEB
010: (3~4)×t
DEB
011: (7~8)×t
DEB
100: (15~16)×t
DEB
101: (31~32)×t
DEB
110: (63~64)×t
DEB
111: (127~128)×t
DEB
Note: t
DEB
=1/f
SYS
.