Sei sulla pagina 1di 15

Threshold Sensing for Industrial Control Systems

with the HCPL-3700 Interface Optocoupler

Application Note 1004

Introduction
The use of electronic logic circuitry in most applications signal in industrial control systems may be AC or DC and
outside a controlled environment very quickly brings may range from low 5 volt levels to 110 or 240 volts AC,
the design engineer into contact with the problems and the design of such a threshold switching system can be-
hazards involved in interfacing the logic function and come more than a trivial problem. This is especially true
the controlled function. These problems have always when using the optocoupler, considering the relatively
been particularly evident in the field of industrial con- large range of current transfer ratio (CTR) found in most
trol where the electrically noisy environment produced devices.
by motors, power lines, lightning, and other sources of
The problem of establishing an input switching thresh-
interference may mask the desired signal, and, in some
old is resolved in the design of the Avago Technologies
cases, even result in the destruction of the logic control
HCPL-3700 optocoupler. This device combines an AC
system itself. In these situations, the designer must re-
or DC voltage and/or current detection function with a
sort to solutions which will provide isolation between
high insulation voltage optocoupler in a single eight pin
the logic system and the input or output function. Tra-
plastic dual in-line package.
ditional methods of isolation involve the use of such
devices as capacitors, relays, transformers, and opto- As shown in the block diagram of Figure 1, this device
couplers. Of these methods, the optocoupler provides consists of a full-wave bridge rectifier and threshold de-
an ideal combination of speed, DC response, high com- tection integrated circuit, an LED, and an optically cou-
mon mode rejection, and low input to output coupling pled detector integrated circuit. The detector circuit is a
capacitance. combination of a photodiode and a high current gain,
split Darlington amplifier.
In the implementation of an interface from an electri-
cally noisy environment into logic systems, it is often The input circuit will operate from an AC or DC source
desirable, if not mandatory, to establish some current or and provide a guaranteed, temperature compensated
voltage switching point or threshold at which the input threshold level with hysteresis. The device may be pro-
signal is considered true. Since the input, or feedback, grammed for higher switching thresholds through the
use of a single external resistor.
DC+ INPUT VCC

2 8

D1 ICC
D2
1

IO
AC VO
INPUT D3 D4

3 5

DC INPUT GND

Figure 1. Block Diagram of the HCPL-3700

1
With threshold level detection provided prior to the that the maximum input current limits not be exceeded.
optical isolation path and subsequent gain stage, varia- Also, to prevent excessive current flow in a substrate di-
tions in the current transfer ratio of the device with time, ode, the DC input cannot be backbiased more than -0.5
or from unit to unit, are no longer important. V. The choice of the input voltage clamp level is deter-
In addition to allowing AC or DC input signals, the Zener mined by the requirements of the system design. The
diodes of the bridge circuit also provide input voltage advantages of clamping the input at a low voltage level
clamping to protect the threshold circuitry and LED from are in limiting the magnitude of forward current to the
LED, as well as limiting the input power to the device
over voltage/current stress conditions. The LED current
during large voltage or current transients in the indus-
is provided by a switched current source.
trial control environment. The internal limiting will, in
The HCPL-3700 optocoupler output is an open collector, some cases, eliminate the need for additional protection
high gain, split Darlington configuration. The output is components.
compatible with TTL and CMOS logic levels. High com-
The AC input appears similar to the DC input except that
mon mode rejection, or transient immunity of 600V/s,
the circuit has two additional diode forward voltages.
allows excellent isolation. Insulation capability is 3000
The AC input voltage will clamp at 6.7 V (one Zener di-
volts DC. The recommended operating temperature
ode voltage plus one forward biased diode voltage), and
range is 0C to 70C.
is symmetric for plus or minus polarity. The AC voltage
The HCPL-3700 meets the requirements of the industrial clamp level cannot be changed with different possible
control environment for interfacing signals from AC or DC pin connections.
DC power equipment to logic control electronics. Isolat-
ed monitoring of relay contact closure or relay coil volt- The transfer characteristic displayed in Figure 3 shows
ages, monitoring of limit or proximity switch operation how the output voltage varies with input voltage, or cur-
or sensor signals for temperature or pressure, etc., can rent, levels. Hysteresis is provided to enhance noise im-
be accomplished by the HCPL-3700. The HCPL-3700 may munity, as well as to maintain a fast transition response
also be used for sensing low power line voltage (Brown (tr, tf) for slowly changing input signals.
Out) or loss of line power (Black Out). The hysteresis of the device is given in voltage terms as
VHYS = VTH+ - VTH- , or in terms of current as IHYS = ITH+ - ITH-
Device Characteristics . The optocoupler output is in the high state until the
The function of the HCPL-3700 can best be understood input voltage (current) exceeds VTH+(ITH+). The output
through a review of the input V/I function and the input state will return high when the input voltage (current)
to output transfer function. Figure 2 shows the input becomes less than VTH- (ITH-).
characteristics, IIN (mA) versus VIN (volts), for both the As is shown in Figure 3, the HCPL-3700 has prepro-
AC and DC cases. grammed AC and DC switching threshold levels. High-
60 er input switching thresholds may be programmed
TA = 25 C
55 through the use of a single series input resistance as de-
50 fined in Equation (1). In some cases, it may be desirable
IIN INPUT CURRENT mA

45
AC (PINS 1, 4
to split this resistance in half to achieve transient protec-
40 PINS 1, 2
CONNECTED
PINS 2, 3 tion on each input lead and reduce the power dissipa-
OPEN)
35
DC
TOGETHER;
PINS 3, 4
tion requirement of each of the resistors.
30
CONNECTED DC (PINS 2, 3
25 TOGETHER PINS 1, 4 6
20 OPEN) VCC = 4.5 V VOH = 2.4 V
IOL = 4.2.mA IOH 100 A
15 5 VOL 0.4 V
VO OUTPUT VOLTAGE V

10 TH+ TH_
5 VTH (DC) 3.8 V 2.6 V PINS 2, 3
4 VTH (AC) 5.1 V 3.8 V PINS 1, 4
0 ITH (AC/DC) 2.5 mA 1.3 mA PINS 2, 3
1 2 3 4 5 6 7 8 9 10 11 12 13 OR PINS 1, 4
VIN INPUT VOLTAGE V 3
VOH
Figure 2. Typical Input Characteristics, IIN vs. VIN
2

The DC input of the HCPL-3700 appears as a 1000 re-


1
sistor in series with a one volt offset. If the AC pins (1, 4)
VOL
are left unconnected, the DC input voltage can increase
0
to 12 V (two Zener diode voltages) before the onset of TH_ TH+

input voltage clamping occurs. If the AC pins (1, 4) are


Figure 3. Typical Transfer Characteristics of the HCPL-3700
connected to ground or to DC pins (2, 3), respectively,
the DC input voltage will clamp at 6.0 V (one Zener di-
ode voltage). Under clamping conditions, it is important

2
Figure 4 illustrates three typical interface situations a Example 1. DC Voltage Sensing
designer may encounter in utilizing a microprocessor as
The DC motor monitor function is established to provide
a controller in industrial environments.
an indication that the motor is operating at a minimum
Example 1. A DC voltage applied to the motor is monitored desired speed prior to the initiation of another process
as an indication of proper speed and/or load condition. phase. If the applied voltage, VM, is greater than 5 V, it is
Example 2. A limit switch uses a 115 V AC or 220 V AC con- assumed that the desired speed is obtained. The maxi-
trol loop to improve noise immunity, and because it is a mum applied voltage in the system is 10 V. The HCPL-
convenient high voltage for that purpose. 3700 circuit configuration for this DC application is
shown in Figure 5.
Example 3. An HCPL-3700 is used to monitor a computer
power line to sense a loss of line power condition. Use of NOTE: See Appendix for a definition of terms and sym-
a resistive shunt for improvement of threshold accuracy bols for this and all other examples.
is analyzed in this example.
Also illustrated is an application in which two HCPL-
3700s are used to monitor a window of safe operating
temperatures for some process parameters. This exam-
ple also requires a rather precise control of the optocou-
pler switching threshold. An additional dedicated leased
line system example is also shown (Example 4).

POWER 115 V AC
MPU
SUPPLY OR
CONTROL UNIT
220 V AC

DATA DATA DATA

PERIPHERAL INTERFACE ADAPTER


(PIA)

HCPL-3700

HCPL-3700 HCPL-3700 HCPL-3700 HCPL-3700


AC LINE
MONITOR
LIMIT
SWITCH THERMOCOUPLE

AMP

115 V AC

10 V DC M

Figure 4. Applications of the HCPL-3700 for Interfacing AC and DC Voltages to a Microprocessor


VCC
IIN

RX/2
1 AC VCC 8 VCC
235 5%
2 DC+ 7 P.I.A.
V VIN HCPL-3700 DATA MPU
3 DC VO 6 PA
RX/2
4 AC GND 5 GND
235 5%

Figure 5. Interfacing a DC Voltage to an MPU using the HCPL-3700

3
The following conditions are given for the external volt- Calculation of the maximum power dissipation in Rx is
age threshold level and input requirements of the HCPL- determined by knowing which of the following inequali-
3700: ties is true:
External Voltage Levels - VM
V+ = 5 V DC (50%) V+ VTH+
> (3)
Vpeak = 10 V DC VPEAK VIHC
HCPL-3700 Input Levels
V TH+ = 3.8 V (VIN will not clamp)
V TH- = 2.6 V
VICH3 = 12 V
V+ VTH+
ITH+ = 2.5 mA < (VIN will clamp)
ITH- = 1.3 mA VPEAK VIHC
(4)

V+ VTH+ where VIHC is the particular input clamp voltage listed on


RX = (1) the data sheet.
ITH+
For this DC application with AC pins (1, 4) open, input
5V 3.8 V voltage clamping will not occur, i.e.,
=
2.5 mA
V+ VTH+
>
RX = 480 1 (470 1 5%) VPEAK VIHC3
For the 5V threshold, Rx is calculated via the expression: 5V 3.8 V
The resultant lower threshold level is formed by using >
10 V 12.0 V
the following expression:
Consequently, a conservative value for the maximum
power dissipation in Rx for the unclamped input voltage
V = ITH RX + VTH (2) condition ignoring the input offset voltage is given by:

= (1.3 mA) 470 1 2.60 V 2

V = 3.21 V

With the possible unit to unit variations in the input


PRX = VPEAK
( RX
RX + 1 k1 (
threshold levels, as well as 5% tolerance variations RX
with Rx, the variation of V+ is +12.4%, -15% and V var-
ies +14%, -23.5%. (NOTE: With a low, external voltage (Unclamped Input) (5)
threshold level, V+, which is comparable in magnitude 2

( (
to the V TH+ voltage threshold level of the optocoupler
470 1
(V+ 10 V TH+), the tolerance variations are not signifi- 10V
1470 1
cantly improved by the use of a 1% precision resistor for
Rx. However, at a large external voltage threshold level =
compared to V TH+ (V+ > 10 V TH+), the use of a precision 470 1
1% resistor for Rx does reduce the variation of V+.)
PRX = 21.8 mW
For simultaneous selection of external upper, V+, and
lower, V, voltage threshold points, a combination of se-
ries and parallel input resistors can be used. Refer to the If V+/Vpeak < V TH+/VIHC was true (clamped input voltage
example on AC operation with improved threshold con- condition), then the formula for the maximum power
trol and accuracy for detailed information. dissipation in RX becomes:

PRX =
(VPEAK VIHC( 2 (6)
RX
(Clamped Input)

4
The value of Rx for the upper threshold detection level
VPEAK VIHC (7) without the filter capacitor, C, across the DC input, can
IIN = <IIN (MAX)
RX be obtained from the following expression.
or
V+ VTH+
RX = (9)
PIN =VIHC (IIN) <PIN (MAX) (8) ITH+
(Clamped condition) VTH+ = 5.1 V
The maximum input current or power must be deter- (AC instantaneous)
mined to ensure that it is within the maximum input ITH+ = 2.5 mA
rating of the HCPL-3700. For the clamped input voltage
condition, 98 V 5.1 V
For the unclamped input voltage condition, the maxi- RX =
2.5 mA
mum input current, or power, will not be exceeded, be-
cause maximum input current and power will occur only RX = 37.2 k1
under clamp conditions.
(use RX/2 = 18.7 k1, 1% resistor
An output load resistance is not needed in this applica- for each input lead)
tion because the peripheral interface adapter, such as
MC6821, has an internal pullup resistor connected to its The resulting lower threshold point is:
input.
V = ITH RX + VTH (10)
Example 2. AC Operation
As shown in Figure 6, an AC application is that of a moni- = (1.3 mA) 37.4 k1 + 3.8 V
tored 115V AC limit switch. AC sensing is commonly
V = 52.4 V
used and the HCPL-3700 conveniently provides an inter-
nal rectification circuit. With the HCPL-3700 interfacing (32% of peak input voltage)
to the P.I.A., a choice can be made not to filter the AC
signal, or to filter the AC signal at the input or output of Figure 7 provides a convenient, graphical choice for
the device. All three conditions will be explored. Simplic- the external series resistor, RX, and a particular external
ity is obtained with no filtering at all, but software detec- threshold voltage V.
tion techniques must be used. Output filtering is a stan- 300
V EXTERNAL THRESHOLD VOLTAGE V

V+ (AC) V (AC)
dard method, but may present problems with slow RC
250
rise time of the output waveform when TTL logic is used. V+ (DC)
Input filtering avoids the RC rise time problem of output
200 V (DC)
filtering, but introduces an extra time delay at the input.

AC Operation With No Filtering 150


VTH+ = 3.8 V
DC: PINS
VTH = 2.6 V
In this example, a V+ value of 98V is selected based on 100 VTH+ = 5.1 V
2, 3
VTH = 3.8 V AC: PINS
a criterion of 60% of Vpeak. Monitoring a limit switch for ITH+ = 2.5 mA 1, 4
a 60% level of the signal will give sufficient noise im- 50 ITH = 1.3 mA
TA = 25 C
munity from an open 115V AC line, while allowing the (AC VOLTAGE IS INSTANTANEOUS VALUE)
HCPL-3700 to turn on under low line voltage conditions 0
1 40 80 120 160 200 240
RX EXTERNAL SERIES RESISTOR k
of -15% from nominal values when the limit switch is
closed. Figure 7. Typical External Threshold Characteristic, V vs. RX.
VCC
IIN

RX/2
1 AC VCC 8 VCC
18.7 k 1%
2 DC+ 7 P.I.A.
V VIN HCPL-3700 DATA MPU
3 DC VO 6 PA
RX/2
4 AC GND 5 GND
18.7 k 1%

Figure 6. Interfacing an AC Voltage to an MPU using the HCPL-3700.

5
The corresponding RX value and output waveform of the (pins 1-4) of the full wave rectifier bridge. Input filtering
HCPL-3700 for a V+ = 98V (60% of peak) are shown in Fig- allows flexibility in using the HCPL-3700 output for di-
ure 8. rect interfacing with TTL or CMOS devices without the
slow rise time which would be encountered with output
To determine the time in the high state, refer to Figure 9
filtering. In addition, the input filter capacitor provides
and Equation (11).
extra transient and contact bounce filtering. Because
Due to symmetry of the sinusoidal waveform, the high filtering is done after RX, the capacitor working volt-
state time is t + t+ where t is given by: age is limited by the VIHC2 clamp voltage rating which is
6.7V peak for AC operation. The disadvantage of input
where arc sine is in degrees and
filtering is that this technique introduces time delays at
T = period of sinusoidal waveform. turn-on and turn-off of the optocoupler due to the initial
charge/discharge of the input filter capacitor.
t = T sin-1
360 ( ( V
VPEAK
(11) The application of AC input filtering is illustrated in Fig-
ure 10 and is described in the following example. The AC
input conditions are the same as in the previous exam-
In the unfiltered condition, the output waveform of Fig- ple of the 115V AC limit switch.
ure 8 must be used as sensed information. Software can
be created in which the microprocessor will examine The minimum value of capacitance, C, to ensure proper
the waveform from the optocoupler at specific intervals AC filtering is determined by the parameters of the op-
to determine if AC is present or absent at the input to tocoupler. At low AC input voltage, the capacitor must
the HCPL-3700. This technique eliminates the problem charge to at least V TH+ in order to turn on, but must not
of filtering and the accompanying delays, but requires a discharge to V TH- during the discharge cycle. A conserva-
more sophisticated software implementation in the mi- tive estimate for the minimum value of C is given by the
croprocessor. following equations.

Input Filtering for AC Operation VTH+ VTH = VTH+e-t/o, (12)


A convenient method used to achieve a continuous out- o = RIN CMIN
put low state in the presence of the applied AC signal is
to filter the input DC terminals (pins 2-3) with a capaci- is given by the following equations.
tance C, while the AC signal is applied to the AC input where RIN is the equivalent input
V
VPEAK = 163 V
INPUT V V+ = 98 V (60%) OFF STATE TIME
115V AC V = 52 V (32%)
60 Hz 0V
VPEAK

a
V+
OUTPUT
HCPL-3700
V
VOH VCC

t
VOL 0 T/2
0V
2.85 ms
t

8.33 ms
b t+

Figure 8. Output Waveforms of the HCPL-3700 Design in Figure 7 with no Filtering Applied. Figure 9. Determination of Off/On State Time.
VCC
IIN

RX/2
1 AC VCC 8 VCC

2 DC+ 7 P.I.A.
V VIN C HCPL-3700 DATA MPU
3 DC VO 6 PA
RX/2
4 AC GND 5 GND

Figure 10. Input Filtering with the HCPL-3700.

6
(13) Example 3. AC Operation with Improved Threshold Con-
t trol and Accuracy
CMIN =

RIN In
( VTH+
VTH+ VTH ( Some applications may occur which require threshold
level detection at specific upper and lower threshold
points. The ability to independently set the upper and
where RIN is the equivalent input resistance of the HCPL- lower threshold levels provides the designer with flex-
3700. with RIN = 1k, V TH+ = 3.8V, V TH = 2.6V and t = ibility to meet special design criteria. As illustrated in Fig-
8.33ms for 60 Hz or t = 10ms for 50 Hz. ure 12, a computer power line is monitored for a power
failure condition in order to prevent loss of memory in-
Cmin = 7.23 F for 60 Hz
formation during power line failure.
Cmin = 8.68 F for 50 Hz
In this design, the HCPL-3700 optocoupler monitors the
To ensure proper filtering, the recommended value of computer power line and the output of the optocoupler
C should be large enough such that with the tolerance is interfaced to a TTL Schmitt trigger gate (7414).
variation, C will always be greater than Cmin. (C should
In the earlier AC application of the HCPL-3700 (limit
otherwise be kept as small as possible to minimize the
switch example), a single external series resistor, RX,
inherent delay times which are encountered with this
was used to determine one of the threshold levels. The
technique.) Since the filter capacitor affects the input
other threshold level was determined by the hysteresis
impedance, a slightly different value of RX is required for
of the device, and not the designer. A potential problem
the input filtered condition. Figure 11 shows the RX ver-
of single threshold selection with 115V line application
sus V threshold voltage for C = 10F, 22F, and 47F. For
would be to determine RX for a lower threshold level of
an application of monitoring a 115V RMS line for 65% of
50% of nominal peak input voltage, only to find that the
nominal voltage condition (75V RMS), an RX = 26.7k
upper threshold level is 90% of peak input voltage. With
1% with C = 10F will yield the desired threshold. The
the possible AC line voltage variations (+10%, -15%), it
power dissipation for RX is determined from the clamped
is possible that the optocoupler could never reach the
condition (V+/Vpeak < V TH+/VICH2) and is 455mW (see Fig-
upper threshold point with an AC line that is at -15% of
ure 6) which suggests RX/2 of 1/2 watt resistors for each
nominal value. To give the designer more control over
input lead.
both threshold points, a combination of series resis-
tance, RX,, and parallel resistance, Rp, may be used, as
V EXTERNAL THRESHOLD VOLTAGE V (rms)

360
C = 47 F shown in Figure 12.
320 V+ C = 22 F
C =10 F
280 Two equations can be written for the two external
240
threshold level conditions.
200 At the upper threshold point,
160 (14)
120

80

40
C = 47 F
C = 22 F
C =10 F
V
V+ = RX
(
ITH+ +
VTH+
RP ( + VTH+

and at the lower threshold point,


0
0 20 40 60 80 100 120
RX EXTERNAL RESISTOR k (15)
Figure 11. External Threshold Voltage versus RX for
Applications Using an Input Filter Capacitor C (Figure 10).
IIN
V = RX
(
ITH +
VTH
RP ( + VTH

RX/2
1 AC VCC 8 VCC

2 DC+ 7 RL
IO 74
V RP VIN HCPL-3700 II
3 DC VO 6
RX/2
4 AC GND 5
CL

Figure 12. An AC Power Line Monitor with Simultaneous Selection of Upper and Lower
Threshold Levels and Output Filtering.

7
Solving these equations for Rx and Rp yield the follow- tion in RX and Rp, a check must be made to determine
ing expressions: if the input voltage will clamp at peak applied voltage.
Using Equations (3) and (4) to determine if a clamp or no
(16)
clamp exists, it is found that the ratios
VTH (V+) VTH+ (V)
RX =
ITH+ (VTH ) ITH (VTH+) V+ VTH+
0.75 = 5 = 0.76
VPEAK VIHC2
(17) indicate that VIN slightly entered clamp condition. In this
RP =
VTH (V+) VTH+ (V) application, the operating input current, IIN, is given ap-
proximately by
ITH+ (V VTH) +ITH (VTH+V+)
IIN = (20)
Equations (16) and (17) are valid only if the conditions of VIHC2 VIHC2
Equations (18) or (19) are met. The desired external volt- V
2 2
age threshold levels, V+ and V, are established and the < IIN (MAX)
values for V TH and ITH are taken from the data sheet. RX RP
With the V TH, ITH values, the denominator of RX, Equa- 6.7 V 6.7 V
tion (16) is checked to see if it is positive or negative. If it 115V
is positive, then the following ratios must be met: 2 2
=
18 k1 1.2 k1
(18)
V+ VTH+ V+ VTH+ ITH+ IIN = 2.18 mA RMS < 34.3 mA
and <
V VTH V VTH ITH Power dissipation in RX is determined from the following
equation,
Conversely, if the denominator of RX, Equation (16) is
negative, then the following ratios must hold: 2

(19)
PRX =
( V
VIHC2
2
RX
( (21)

V+ VTH+ V+ VTH+ ITH+


and >
V VTH V VTH ITH which yields 0.675W. With the clamp condition existing,
the maximum power dissipation for Rp is 18.7mW which
is determined from
Consider that the computer power line is monitored for
a 50% line drop condition and a 75% line presence con-
2
dition. The 115V 60 Hz AC line (163V peak) can vary from
85% (139V) to 110% (179V) of nominal value.
Require: PRP =
( ( VIHC2
2
RP
(22)

V = 81.5V (50%) - Turn-off threshold


V+ = 122.5V (75%) - Turn-on threshold Output Filtering
The advantage of filtering at the output of the HCPL-
Given: 3700 is that it is simple to implement. The output wave-
V TH+ = 5.lV ITH+ = 2.5mA form introduces only one additional delay time at turn-
VIHC2 = 6.7V V TH- = 3.8V off condition as opposed to the input filtering method
ITH- = 1.3mA which introduces additional delay times at both the
turn-on and turn-off conditions due to initial charge
Using the Equations (16, 17) for RX, Rp with the condi- or discharge of the input filter capacitor. The disadvan-
tions of Equations (18, 19) being met yields tage of output filtering is that the long transition time,
tr, which is introduced by the output RC filter, requires a
RX = 17.4 k use 18 k 5% Schmitt trigger logic gate to buffer the output filter cir-
Rp = 1.2 k use 1.2 k 5% cuit from the subsequent logic circuits to prevent logic
chatter problems. The determination of load resistance
To complete the input calculations for maximum input and capacitance is illustrated in the following text.
current IIN to the device, and maximum power dissipa-

8
The following given values specify the interface condi- dent upon the selected V+ levels. In this example, V+ =
tions: 122.5 (75%) and V = 81.5V (50%) and allowing for a min-
imum peak line voltage of 138V (-15%), the high state
HCPL-3700
time (without CL) from Equation (11), is 4.58ms. With the
VOL = 0.4V appropriate CL value, the output waveform (solid line)
shown in Figure 13 is filtered.
IOL = 4.2mA
The maximum ripple amplitude above VOL is chosen to
IOH = 100A max
be 0.6V; that is, VOL + VOL = 1.0V. This gives a 0.5V noise
VCC = 5.OV 5% margin before V T+ (min) = 1.5V is reached. The exponen-
tial ripple waveform is caused by the CL being charged
7414
through RL and input resistance, RINTTL, of TTL gate. An
V T+ (min) = 1.5V
V T+ (max) = 2.OV } Schmitt trigger
upper threshold
level
expression for the allowable change in VOL can be writ-
ten:
VOL = (VOH VOL) (1- e-t/) (25)
IIH = 40A max
where = RLCL with RL equal to parallel combina-
IIL = 1.2mA max
tion of RL and RINTTL.
With the current convention shown in Figure 12, the
Below V T+ = 1.5V (min), RINTTL is constant and nominally
minimum value of RL which ensures that the output
6 k. Hence:
transistor remains in saturation is:

(23) RL RINTTL
VCC (MAX) VOL R'L = (26)
RL (MIN) RL + RIN
IOL + IIL
(1.65 k1) (6 k1)
=
5.25 V 0.4 V 1.65 k1 + 6 k1
= = 1.62 k1
4.2 mA 1.2 mA
R'L = 1.29 k1
The maximum value for RL is calculated allowing for a
Solving Equation (25) for o yields
guardband of 0.4V in V T+ (max) parameter, or VIH = V T+
(max) + 0.4V.
(27)
t
(24) o=

RL (MAX)
VCC (MIN) VIH
IOL IIH
In
( VOH VOL
VOH VOL 6VOL (
and substituting previous parameter values and using
4.75 V 2.4 V
= = 16.8 k1 VOH = VCC - (IOH +IIH), RL results in
0.1 mA + 0.04 mA
RL is chosen to be 1650. 4.58 ms
=
CL can be determined in the following fashion. As illus-
trated in Figure 8, the output of the optocoupler will be
in the high state for a specific amount of time depen-
In
( 4.8 V 0.4 V
4.8 V 0.4 V 0.6 V (
o = 31.24 ms
WITHOUT CL
VCC
VOH
(VOL)
MAXIMUM RIPPLE VT + MIN
AMPLITUDE VOL
4.58 ms WITH CL

8.33 ms

Figure 13. Output Waveforms of the HCPL-3700.

9
If higher threshold accuracy is desired, it can be accom-
CL can be calculated directly,
plished by decreasing the value of Rp in order to allow
Rp to dominate the input resistance variations of the
o
CL = (28) opto-coupler. Using a 1% resistor for Rp and resistance of
R'L sufficiently small magnitude, the V+ tolerance variations
31.24 ms can be significantly improved. The following analysis will
= allow the designer to obtain nearly optimum threshold
1.29 k1 accuracy from unit to unit. It should be noted that the
HCPL-3700 demonstrates excellent threshold repeatabil-
CL = 24.2 +F use 27 +F 10% ity once the external resistors are adjusted for a particu-
lar level and unit. The compromise made for the added
or 33 +F 20% control on threshold accuracy is that more input power
With this value of CL, the time the must be consumed within the Rp, RX resistors.
R'LCL filter network takes to reach I+ ITH+
RX
VT+ of the TTL gate is found as 1 8
follows.
2 7
VOL + (VOH VOL)(1- e-t/) = V T+ RP VTH+ HCPL-3700
3 6
Solving for t, (29) IP+

4 5

t = oIn
( VOH VOL
VOH VT+ (MIN) ( (30)
Figure 14. Threshold Accuracy Improvement
through the Use of External RX and Rp Resistors.

and substituting VOH = 4.8V, In Figure 14, assume the circuit is at the upper threshold
VOL = 0.4V, V T+ (min) = 1.5V, and =31.24ms yields point. At constant V TH+, it is desirable to maintain I+ to
within 5% variation of nominal value while allowing
t = 9.0ms 1% variation in IP+. With this requirement, Equations (31)
This is the delay time that the system takes to respond to and (32) can be written and solved for the magnitude of
the AC line voltage going below the 50% (V) threshold IP+ which is needed to maintain the desired condition on
level. In essence, the response time is slightly more than I+. I+ is the sum of IP+ and ITH+.
a half cycle (8.33ms) of 60 Hz AC line with worst case line + 1.05 I+ = 1.01 IP+
variation taken into account. This delay time is accept- (31)
at
able for system power line protection. In this example, + ITH+ (max) constant
a complete worst case analysis was not performed. A 0.95 I+ = 0.99 IP+ V TH+
worst case analysis should be done to ensure proper
function of the circuit over variations in line voltage, + ITH+ (min) (32)
unit to unit device parameter variations, component tol- where
erances, and temperature.
ITH+ (max) = 3.11mA
Threshold Accuracy Improvement
ITH+ (min) = 1.96mA
In the above example on output filtering, the two exter-
nal threshold levels were selected for turn-on conditions Solving for Ip+ yields
at V+ = 122.5V (75%) and turn- off at V = 81.5V (50%). The Ip+ = 11.2mA,
calculated external resistor values were RX = 17.4 k and
Rp = 1.2 k. Using standard 5% resistors of 18 k and 1.2 and
k, respectively, the upper threshold voltage was actu-
VTH+
ally 126.6V nominal. RP =
IP+ (33)
Examination of the worst possible combination of varia-
tions of the HCPL-3700 optocoupler V TH+, ITH+, levels
5.1 V
from unit to unit, and the =
11.2 mA
5% variations of RX and Rp can result in the V+ level
changing +23% to -25% from design nominal. RP = 433 1
(use 453 1, 1% resistor)

10
This new value of Rp replaces the earlier Rp = 1.2 k, and of voltage threshold detection and optical isolation from
the circuit requires a new RX value to maintain the same the metallic line to the remote equipment. This greatly
V+ threshold level. reduces the expense of using a sophisticated modem
system over a conventional telephone line.
V+ VTH+ Figure 15 represents the application of the HCPL-3700
RX = (34)
I+ for a line which is to control tank levels in a water district.

where I+ = IP+ + ITH+ Some comments are necessary concerning dedicated


metallic lines. The use of a private metallic line places
= 11.2 mA + 2.5 mA restrictions upon the designers signal levels. The line
in this example would be used in the interrupted DC
122.5 V 5.1 V mode (duration of each interruption greater than one
= second), the maximum allowed voltage between any
13.7 mA
conductor and ground is 135 volts. Maximum current
should be limited to l50mA if the cable has compensat-
RX = 8.57 k1 ing inductive coils in it. Balanced operation of the line
is strongly recommended to reduce possible cross talk
(use 8.66 k1, 1% resistor) interference, as well as to allow larger signal magnitudes
to be used. Precaution also should be taken to protect
With the possible variation of 1% in Rp and RX, as well the line and equipment. The line needs to be fused to
as unit to unit variations in the optocoupler V TH+, ITH+, the ensure against equipment failure causing excessive cur-
upper threshold level V+ will vary significantly less than rent to flow through telephone company equipment.
in the 5% resistor design case. The variations in V+, which In addition, protection from damaging transients must
is given by V+ = RX I+ +V TH+ ,where I+ = IP+ + ITH+, are com- be taken via spark gap arrestors and commercial tran-
pared in Table 1. sient suppressors. Details of private line metallic circuits
Table 1 illustrates the possible improvements in V+ tol- can be found in the American Telephone and Telegraph
erance as RX and Rp are adjusted to limit the variation Company publication 43401.
of the external input threshold current, I+, to the resis- In this application, a 48V DC floating power source sup-
tor network and optocoupler. This table is centered at a plies the signal for the metallic line. The HCPL-3700 up-
nominal external input threshold voltage of V+ = 122.5V. per voltage threshold level is set for V+ = 36V (75%). Con-
It is the designers compromise to keep power consump- sequently, RX is
tion low, but threshold accuracy high.
The resulting lower voltage threshold level is
NOTE: The above method for selecting Rp and RX can be
adapted for applications where larger sense currents V+ VTH+
RX = (35)
(wet sensing) may be appropriate. ITH+
Example 4. Dedicated Lines for Remote Control 36 V 3.8 V
=
In situations involving a substantial separation between 2.5 mA
the signal source and the receiving station, it may be de-
sirable to lease a dedicated private line metallic circuit = 12.9 k1
(DC path) for supervisory control of remote equipment.
The HCPL-3700 can provide the interface requirements (use RX /2 = 6.49 k1, 1% resistor
in each input level)

Table 1. Comparison of the V+ Threshold Accuracy Improvement versus RX and Rp and Power Dissipation for a Nominal V+ = 122.5 V.

RX TOL. Rp TOL. I+ Tolerance V+ Tolerance Maximum Total Power


in RX + Rp (RMS)

18 k 5% 1.2 k 5% +17.5% +23% -25% 0.69 W


-21.2%

8.66 k 1% 453 1% 5% +12.7% -19.3% 1.45 W

4.32 k 1% 205 1% 3% +11.2% -18.9% 2.92 W

2.15 k 1% 97.5 1% 2% +10.6% -18.8% 5.89 W

11
V = RX ITH +V TH (36) For this application, the AC inputs could also be used,
which would remove any concern about the polarity of
= 13 k (1.3mA) + 2.6V
the input signal.
V = 19.5V
General Protection Considerations for the HCPL-3700
yielding VHYS = 16.5V. The average induced AC voltage
from adjacent power lines is usually less than 10 volts The HCPL-3700 optocoupler combines a unique func-
(reference ATT publication 43401) which would not tion of threshold level detection and optical isolation
falsely turn on, or off, the HCPL-3700, but could affect for interfacing sensed signals from electrically noisy,
conventional optocouplers. and potentially harmful, environments. Protection from
transients which could damage the threshold detection
Under normal operation (full reservoir), the optocoupler circuit and LED is provided internally by the Zener diode
is off. When the float switch is closed (low reservoir), the bridge rectifier and an external series resistor. An exami-
optocoupler output (VOL) needs inversion, via a transis- nation of Figure 1 shows that an input AC voltage clamp
tor, to drive the power Darlington transistor which con- condition will occur at a maximum of a Zener diode volt-
trols a motor starting relay. The relay applies AC power age plus a forward biased diode voltage.
to the system water pump. With VCC 10V, IB2 = 0.5mA, IB1
= 0.5mA. At clamp condition, the bridge diodes limit the applied
input voltage at the device and shunt excess input cur-
rent which could damage the threshold detection circuit
VCC 2VBE (37)
R1 = or cause excessive stress to the LED.
IB2
The HCPL-3700 optocoupler can tolerate significant in-
10 V 1.4 V put current transient conditions. The maximum DC input
= current into or out of any lead is 50mA. The maximum
0.5 mA
input surge current is 140 mA for 3ms at 120 Hz pulse
repetition rate, and the maximum input transient current
R1 = 17.2 k1
is 500mA for 10 s at 120 Hz pulse repetition rate. The use
(R1 = 18 k1) of an external series resistor, RX, provides current limiting
to the device when a large voltage transient is present.
VCC VBE The amplitude of the acceptable voltage transient is di-
RL = (38) rectly proportional to the value of RX.
IB1
However, in order to protect the HCPL-3700 when the
10 V 0.7 V input voltage to the device is clamped, the maximum
=
0.5 mA input current must not be exceeded. An external means
by which to enhance transient protection can be seen in
RL = 18.6 k1 Figure 16.

(RL = 18 k1)

RESERVOIR SWITCH
CONDITION CONDITION
WATER
FULL OPEN 115 AC
PUMP
LOW CLOSED

VCC
IIN
RX/2 RELAY
RESERVOIR
FLOAT SWITCH
2 8
R1
D1
1A FUSE HCPL-3700 RL IB2
1
VIN
48 VDC V
SPARK
GAP D2
2N3904
6 2N6548
PRIVATE IB1
BALANCED METALLIC 4
SUPPLY LINE
SPARK RX/2 3 5 D1, D2 = 1N5658A
GAP

FLOAT SWITCH AND WATER PUMP ARE REMOTELY LOCATED WITH RESPECT TO EACH OTHER.

Figure 15. Application of the HCPL-3700 to Private Metallic Telephone Circuits for Remote Control.
12
RX/2
1 8
Mechanical and Safety Considerations
Mechanical Mounting Considerations
2 7
V CP HCPL-3700 The HCPL-3700 optocoupler is a standard 8 pin dual-
3 6 in-line plastic package designed to interface AC or DC
RX/2 power systems to logic systems. This optocoupler can be
4 5
mounted directly onto a printed circuit board by wave
soldering.
Figure 16. RX CP Transient Filter for the HCPL-3700. Electrical Safety Considerations
Special considerations must be given for printed circuit
A transient RX Cp filter can be formed with Cp chosen by
board lead spacing for different safety agency require-
the designer to provide a sufficiently low break point for
ments. Various standards exist with safety agencies (U.L.,
the low pass filter to reduce high frequency transients.
V.D.E., I.E.C., etc.) and should be checked prior to PC
However, the break point must not be so low as to at-
board lay-out. The HCPL-3700 optocoupler component
tenuate the signal frequency. Consider the previous AC
is recognized under the Component Program of Under-
applica-tion where no filtering was used. In that applica-
writers Laboratories, Inc. in file number E55361. This file
tion, RX = 37.4 k, and if the bandwidth of the transient
qualifies the component for specific electrical tests to
filter needs to be 600 Hz, then Cp is:
220V AC operation.
1 The spacing required for the PC board leads depends
CP = (39)
2/fRX upon the potential difference that would be observed
on the board. Some standards that could pertain to
Cp = 0.0071F (use 0.0068 F capacitor @ 50V DC) equipment which would use the HCPL-3700 are UL1244,
Electrical and Electronic Measuring and Testing Equip-
Should additional protection be needed, a very effec- ment, ULl092, Process Control Equipment, and IEC348,
tive external transient suppression technique is to use Electronic Measuring Apparatus. Spacing for the worst
a commercial transient suppressor, such as a Transzorb, case in an uncontrolled environment with a 2000 volt-
or metal oxide varistor, MOV, at the input to the resis- amperes maximum supplying source rating must be
tor network prior to the optocoupler. The Transzorb will 3.2mm (0.125 inches) for 51 250 volts RMS potential
provide extremely fast transient response, clamp the difference over a surface (creepage distance), and 3 mm
input voltage to a definite level, and absorb the tran- (0.118 inches) through air (bare wire). These separations
sient energy. Selection of a Transzorb is made by ensur- are between any uninsulated live part and uninsulated
ing that the reverse stand off voltage is greater than the live part of opposite polarity, or uninsulated ground part
continuous peak operating voltage level. Transzorbs can other than the enclosure or an exposed metal part.
be stacked in series or parallel for higher peak power rat-
ings. Depending upon the designers potential transient An uncontrolled environment is an environment which
problems, a solution may warrent the expense of a com- has contaminants, chemical vapors, particulates, or any
mercial suppresion device. substances which would cause corrosion, decrease re-
sistance between PC board traces, or, in general, be an
Thermal Considerations unhealthy environment for human beings.
Thermal considerations which should be observed with For 0 50 volts RMS, the spacing is 1.6mm (0.063 inches)
the HCPL-3700 are few. The plastic 8 pin DIP package is through air or over surfaces.
designed to be operated over a temperature range of
-25C to 85C. The absolute maximum ratings are estab-
lished for a 70C ambient temperature requiring slight
derating to 85C. In general, if operation of the HCPL-
3700 is at ambient temperature of 70C or less, no heat
sinking is required. However, for operation between 70C
and 85C ambient temperature, the maximum ratings
should be derated per the data sheet specifications.

13
Electrical Connectors
The HCPL-3700 provides the needed isolation between
a power signal environment and a control logic system.
However, there exists a physical requirement to actually
interconnect these two environments. This interconnec-
tion can be accomplished with barrier strips, edge card
connectors, and PCB socket connectors which provide
the electrical cable/field wire connection to the I/0 logic
system. These connectors provide for easy removal of
the PC board for repair or substitution of boards in the
I/0 housing and are needed to satisfy the safety agency
(U.L., V.D.E., I.E.C.) requirements for spacing and insula-
tion. Connectors are readily available from many com-
mercial manufacturers, such as Connection Inc., Bu-
chanan, etc. The connector style is dependent upon the
application for which the PC board is used. If possible, it
is wise to choose a style which does not mount to the
PC board. This would enable the PC card to be removed
without having to disconnect field wires. The use of con-
nectors which are called gas tight connectors provide
for good electrical and mechanical reliability by reduc-
ing corrosion effects over time.

14
Appendix 1. List of Parameters

V = Externally Applied Voltage VOH = Output High Voltage of Device


V+ = External Upper Threshold Voltage Level IOH = Output High Leakage Current of Device
V = External Lower Threshold Voltage Level IOL = Output Low Sinking Current of Device
VIHC1 = Device* Input Voltage Clamp Level; IIH = Input High Current of
Low Voltage DC Case Driven Gate
VIHC2 = Low Voltage AC Case IIL = Input Low current of
Driven Gate
VIHC3 = High Voltage DC Case
VCC = Positive Supply Voltage
IIN = Device Input Current
RIN = Input Resistance of HCPL-3700
VIN = Device Input Voltage
V T+ = Schmitt Trigger Upper Threshold Voltage of
V TH+ = Device Upper Voltage Threshold Level
TTL Gate (7414)
V TH = Device Lower Voltage Threshold Level
RL = Output Pullup Resistance
ITH+ = Device Upper Input Current Threshold Level
CL = Output Filter Capacitance
ITH = Device Lower Input Current Threshold Level
C = Input Filter Capacitor
RX = External Series Resistor for Selection of
TH+ = Upper Threshold Level TH
External Threshold Level
= Lower Threshold Level
Rp = External Parallel Resistor for Simulta neous
Selection/Accuracy Improvement of Exter- PRX = Power Dissipation in Rx PIN
nal Threshold Voltage Levels
= Power Dissipation in HCPL-3700 Input IC
I+ = Total Input Current at Upper Threshold Level
PA = Input Signal Port to P.I.A.
to External Resistor Network (RX, RP) and
Device t+ = Turn-On Time
Ip+ = Current in Rp at Upper Threshold Levels t = Turn-Off Time
Vpeak = Peak Externally Applied Voltage T = Period of Waveform
VO = Output Voltage of Device CP = Similar to Rp
VOL = Output Low Voltage of Device *Device = HCPL-3700

For product information and a complete list of distributors, please go to our web site: www.avagotech.com

Avago, Avago Technologies, and the A logo are trademarks of Avago Technologies in the United States and other countries.
Data subject to change. Copyright 2007-2012 Avago Technologies. All rights reserved. Obsoletes 5953-0406E
AV02-3699EN - July 5, 2012

Potrebbero piacerti anche