Over Current Protection - Ocp; Over Current Protection Operation - Holtek BS86DH12C Manual

High voltage touch a/d flash mcu with hvio
Table of Contents

Advertisement

BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
Over Current Protection – OCP
The device includes an over current protection function which provides a protection mechanism
for applications. The current on the OCPI pin is converted to a relevant voltage level according to
the current value using the OCP operational amplifier. It is then compared with a reference voltage
generated by an 8-bit D/A converter. When an over current event occurs, an OCP interrupt will be
generated if the corresponding interrupt control is enabled.
OCPVR
AV
DD
OCPDA[7:0]
S0
OCPI
S1
S2
S3
(R1 = 4K)
OCPEN[1:0]
Note: As the OCP function relevant external pins are pin-shared with general I/O or other functions, before using
the OCP function, make sure the corresponding pin-shared function registers be set properly.

Over Current Protection Operation

The OCP circuit is used to prevent the input current from exceeding a specific level. The current on
the OCPI pin is converted to a voltage and then amplified by the OCP operational amplifier with a
programmable gain from 1 to 50 selected by the G2~G0 bits in the OCPC1 register. This is known
as a Programmable Gain Amplifier or PGA. This PGA can also be configured to operate in the non-
inverting, inverting or input offset calibration mode determined by the OCPEN1~OCPEN0 bits in
the OCPC0 register. After the current is converted and amplified to a specific voltage level, it will
be compared with a reference voltage provided by an 8-bit D/A converter. The 8-bit D/A converter
reference voltage can be supplied by AV
OCPVRS bit in the OCPC0 register. The comparator output, OCPCOUT, will first be filtered with
a certain de-bounce time period selected by the OCPDEB2~OCPDEB0 bits in the OCPC1 register.
Then a filtered OCP digital comparator output, OCPO, is obtained to indicate whether an over
current condition occurs or not. The OCPO bit will be set to 1 if an over current condition occurs.
Otherwise, the OCPO bit is zero. Once an over current event occurs, i.e., the converted voltage
of the OCP input current is greater than the reference voltage, the corresponding interrupt will be
generated if the relevant interrupt control bit is enabled.
Note that the debounce clock, f
output voltage can be directly output on the OCPAO pin, and also can be read out by the A/D
converter through an A/D internal input channel. The D/A converter output voltage is controlled by
the OCPDA register and the D/A converter output is defined as below:
Rev. 1.00
OCPVRS
M
U
X
8-bit
DAC
S4
+
OPA
-
R1
R2
G[2:0]
Over Current Protection Circuit
or external OCPVR pin, which is selected by the
DD
, comes from the system clock, f
DEB
DAC V
=(D/A converter reference voltage/256)×OCPDA[7:0]
OUT
121
f
SYS
OCPCHY
OCPCOUT
OCPO
-
CMP
Debounce
+
OCPDEB[2:0]
V
OCPAO
(To A/D Converter)
. The operational amplifier
SYS
OCP interrupt
OCPAO
October 26, 2018

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BS86DH12C and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents