Optocoupler

Model optocoupler as LED, current sensor, and controlled current source

Library

Semiconductor Devices

Description

This block represents an optocoupler using a model that consists of the following components:

The output-side current flows from the collector junction to the emitter junction. It has a value of CTR*Id, where CTR is the Current transfer ratio parameter value and Id is the diode current.

Use the Optocoupler block to interface two electrical circuits without making a direct electrical connection. A common reason for doing this is that the two circuits work at very different voltage levels.

If the output circuit is a phototransistor, typical values for the Current transfer ratio parameter are 0.1 to 0.5. If the output stage consists of a Darlington pair, the parameter value can be much higher than this. The Current transfer ratio value also varies with the light-emitting diode current, but this effect is not modeled by the Photodiode block.

Some manufacturers provide a maximum data rate for optocouplers. In practice, the maximum data rate depends on the following factors:

The Optocoupler block only lets you define the capacitance on the light-emitting diode. You can use the Junction capacitance parameter to add your own capacitance across the collector and emitter connections.

Basic Assumptions and Limitations

The Optocoupler block has the following limitations:

Dialog Box and Parameters

Main Tab

Current transfer ratio

The output current flowing from the transistor collector to emitter junctions is equal to the product of the current transfer ratio and the current flowing the light-emitting diode. The default value is 0.2.

Diode parameterization

Select one of the following methods for model parameterization:

Currents [I1 I2]

A vector of the current values at the two points on the diode I-V curve that the block uses to calculate IS and N. This parameter is only visible when you select Use I-V curve data points for the Diode parameterization parameter. The default value is [ 0.001 0.015 ] A.

Voltages [V1 V2]

A vector of the voltage values at the two points on the diode I-V curve that the block uses to calculate IS and N. This parameter is only visible when you select Use I-V curve data points for the Diode parameterization parameter. The default value is [ 0.9 1.05 ] V.

Saturation current IS

The magnitude of the current that the ideal diode equation approaches asymptotically for very large reverse bias levels. This parameter is only visible when you select Use parameters IS and N for the Diode parameterization parameter. The default value is 1e-10 A.

Measurement temperature

The temperature at which IS or the I-V curve was measured. The default value is 25 °C.

Emission coefficient N

The diode emission coefficient or ideality factor. This parameter is only visible when you select Use parameters IS and N for the Diode parameterization parameter. The default value is 2.

Ohmic Resistance Tab

Ohmic resistance RS

The series diode connection resistance. The default value is 0.1 Ω.

Junction Capacitance Tab

Junction capacitance

Select one of the following options for modeling the diode junction capacitance:

Zero-bias junction capacitance CJ0

The value of the capacitance placed in parallel with the exponential diode term. This parameter is only visible when you select Fixed or zero junction capacitance or Use parameters CJ0, VJ, M & FC for the Junction capacitance parameter. The default value is 5 pF.

Junction potential VJ

The junction potential. This parameter is only visible when you select Use parameters CJ0, VJ, M & FC for the Junction capacitance parameter. The default value is 1 V.

Grading coefficient M

The coefficient that quantifies the grading of the junction. This parameter is only visible when you select Use parameters CJ0, VJ, M & FC for the Junction capacitance parameter. The default value is 0.5.

Reverse bias voltages [VR1 VR2 VR3]

A vector of the reverse bias voltage values at the three points on the diode C-V curve that the block uses to calculate CJ0, VJ, and M. This parameter is only visible when you select Use C-V curve data points for the Junction capacitance parameter. The default value is [ 0.1 10 100 ] V.

Corresponding capacitances [C1 C2 C3]

A vector of the capacitance values at the three points on the diode C-V curve that the block uses to calculate CJ0, VJ, and M. This parameter is only visible when you select Use C-V curve data points for the Junction capacitance parameter. The default value is [ 3.5 1 0.4 ] pF.

Capacitance coefficient FC

Fitting coefficient that quantifies the decrease of the depletion capacitance with applied voltage. This parameter is only visible when you select Use C-V curve data points or Use parameters CJ0, VJ, M & FC for the Junction capacitance parameter. The default value is 0.5.

Ports

The block has the following ports:

+

Electrical conserving port associated with the diode positive terminal.

-

Electrical conserving port associated with the diode negative terminal.

C

Electrical conserving port associated with the transistor collector terminal.

E

Electrical conserving port associated with the transistor emitter terminal.

References

[1] G. Massobrio and P. Antognetti. Semiconductor Device Modeling with SPICE. 2nd Edition, McGraw-Hill, 1993.

[2] H. Ahmed and P.J. Spreadbury. Analogue and digital electronics for engineers. 2nd Edition, Cambridge University Press, 1984.

See Also

Diode, NPN Bipolar Transistor, Simscape™ Controlled Current Source

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS