Step6. Restore the comparator input offset calibration value V
The offset Calibration procedure is now finished.
Where V
COS
Note: S4 is on and the D/A converter is off. This situation is only available for comparator calibration
procedure. In the normal operation mode, S4 is off.
Over Voltage Protection – OVP
The device includes an over voltage protection function which provides a protection mechanism for
applications. The input voltage on the OVPI0 or OVPI1 pin is compared with a reference voltage
generated by an 8-bit D/A converter. When a preset voltage condition occurs, an OVP interrupt will
be generated if the corresponding interrupt control is enabled.
AV
DD
8-bit
OVPDA[7:0]
DAC
OVPS[1:0]
OVPI0
OVPCOFM OVPCRS S0
OVPI1
x: Don't care
Note: As the OVP function relevant external pins are pin-shared with general I/O or other functions, before using
the OVP function, make sure the corresponding pin-shared function registers be set properly.
Over Voltage Protection Operation
The OVP circuit is used to prevent the input voltage from being in an unexpected level range. The
voltage can be sourced from the OVPI0 or OVPI1 pin which is determined by the OVPS1~OVPS0
bits in the OVPC2 register. The selected OVP input voltage is compare with a reference voltage
provided by an 8-bit D/A converter. The 8-bit D/A converter reference input signal is supplied by
the positive power supply, AV
certain de-bounce time period selected by the OVPDEB2~OVPDEB0 bits in the OVPC0 register.
Then a filtered OVP digital comparator output, OVPO, is obtained to indicate whether a user-defined
voltage condition occurs or not.
If the OVPSPOL bit is cleared to 0 and the comparator inputs force the OVPO bit to change from
0 to 1, or if the OVPSPOL bit is set to 1 and the comparator inputs force the OVPO bit changes
from 1 to 0, the corresponding interrupt will be generated if the relevant interrupt control bit is
enabled. Therefore, the OVPSPOL bit must be properly configured according to user's application
requirements. The comparator in the OVP circuit also has hysteresis function controlled by the
HYS1~HYS0 bits.
Note that the debounce clock, f
voltage is controlled by the OVPDA register, the D/A converter output is defined as below:
Rev. 1.00
High Voltage Touch A/D Flash MCU with HVIO
=(V
+V
)/2
COS1
COS2
OVPEN
S1
-
CMP
S2
+
S0
HYS[1:0]
S1
S2
0
x
ON
ON
OFF
1
0
OFF
ON
ON
ON OFF ON
1
1
Over Voltage Protection Circuit
. The comparator output, OVPCOUT, will first be filtered with a
DD
, comes from the system clock, f
DEB
DAC V
=(D/A converter reference voltage/256)×OVPDA[7:0]
OUT
126
BS86DH12C
into the OCPCOF[4:0] bit field.
COS
OVPCOUT
f
OVPO
SYS
Debounce
OVPSPOL
OVPDEB[2:0]
. The D/A converter output
SYS
October 26, 2018
OVPCOUT
OVP interrupt
Need help?
Do you have a question about the BS86DH12C and is the answer not in the manual?