Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

Optocoupler (optocoupler)

Passes a current across an isolation barrier through an LED and a phototransistor.

optocoupler

Component reference · 繁體中文

Group: ICs · Kind: {"definition":"optocoupler","kind":"subsystem"}

When to use it

Use it to carry the feedback of an isolated supply from the secondary to the primary, with the real current transfer ratio, its drift and its pole. Use Digital Isolator for fast logic signals.

Pins

Pin Domain Meaning
AN electrical LED anode
CAT electrical LED cathode
C electrical Collector, sinks the transferred current
E electrical Emitter, isolated from the LED side

Common parameters

  • ctrScale: Multiplies the whole CTR curve: another CTR bin, or the lower CTR after ageing (Default: 1)
  • tAmb: Ambient temperature for the CTR (Default: 25)
  • fc: Pole of the current transfer (Default: 110000)
  • vf: LED forward drop of the straight-line fit (Default: 1)

Parameters

Key Unit Default Typical range Description Datasheet source
vf V 1 100m – 5 V LED forward drop of the straight-line fit Fig. 7 fit through 1.005 V at 1 mA and 1.088 V at 10 mA, p.6
rLed Ω 9 0 – 1k Ω LED series resistance of the straight-line fit Fig. 7 fit through 1.005 V at 1 mA and 1.088 V at 10 mA, p.6
ctrScale — 1 10m – 20 Multiplies the whole CTR curve: another CTR bin, or the lower CTR after ageing Fig. 13 is one typical unit; the CTR table allows 50 % to 600 % at 5 mA, p.3
tAmb °C 25 -25 – 75 °C Ambient temperature for the CTR Fig. 8 relative CTR vs ambient temperature, IF = 5 mA, p.6
ctr0m2 — 0.146 0 – 20 CTR at an LED current of 0.2 mA, 25 °C (0: not given, the curve starts at the next point) Fig. 13 at 0.2 mA, p.7
ctr0m5 — 0.28 0 – 20 CTR at 0.5 mA, 25 °C (0: not given) Fig. 13 at 0.5 mA, p.7
ctr1m — 0.46 0 – 20 CTR at 1 mA, 25 °C (0: not given) Fig. 13 at 1 mA, p.7
ctr2m — 0.71 0 – 20 CTR at 2 mA, 25 °C (0: not given) Fig. 13 at 2 mA, p.7
ctr5m — 0.98 0 – 20 CTR at 5 mA, 25 °C (0: not given) Fig. 13 at 5 mA, p.7
ctr10m — 0.85 0 – 20 CTR at 10 mA, 25 °C (0: not given) Fig. 13 at 10 mA, p.7
ctr20m — 0.59 0 – 20 CTR at 20 mA, 25 °C (0: not given) Fig. 13 at 20 mA, p.7
ctr50m — 0.32 0 – 20 CTR at 50 mA, 25 °C (0: not given) Fig. 13 at 50 mA, p.7
ctr100m — 0.19 0 – 20 CTR at 100 mA, 25 °C (0: not given, the collector current holds the last given point) Fig. 13 at 100 mA, p.7
kTm25 — 1.13 50m – 5 CTR at −25 °C relative to 25 °C Fig. 8 at −25 °C, IF = 5 mA, p.6
kT0 — 1.105 50m – 5 CTR at 0 °C relative to 25 °C Fig. 8 at 0 °C, IF = 5 mA, p.6
kT50 — 0.887 50m – 5 CTR at 50 °C relative to 25 °C Fig. 8 at 50 °C, IF = 5 mA, p.6
kT75 — 0.761 50m – 5 CTR at 75 °C relative to 25 °C Fig. 8 at 75 °C, IF = 5 mA, p.6
fc Hz 110000 1 – 1g Hz Pole of the current transfer Coupler table fc typ, VCE = 5 V, IF = 10 mA, RL = 100 Ω, p.3
vceSat V 0.3 0 – 5 V Collector-emitter voltage where the transistor saturates Coupler table VCEsat max, IF = 10 mA, IC = 1 mA, p.3
cmti V/s 0 0 – 10t V/s Common-mode transient immunity: the barrier slope the output withstands (0: not set, no check) not set: the TCET1100's common-mode transient immunity is not in Voltecx yet; enter your part's rating
tGlitch s 0.00000002 1p – 1m s Width of the spurious output pulse while the barrier slope is above cmti assumption (typical, user must set): data sheets give CMTI as a pass/fail limit, not the glitch it causes

Parameter descriptions are in English in both languages.

Model

The LED is a diode with a drop vf and a resistance rLed. The collector current is the current transfer ratio curve at the LED current, times ctrScale and a factor for the ambient temperature tAmb. It follows that target through one pole at fc and flows from C to E, and the transistor saturates at vceSat. When cmti is set, a slope of E against CAT above it turns the transistor on for tGlitch and Problems reports CMTI exceeded. The fall of the pole with a larger pull-up, the ageing of the ratio, the junction capacitance and the dark current are not modelled.

Common mistakes

  • The transfer ratio spreads widely between parts and falls with age and heat. Check the loop with ctrScale at about half and at twice the default, and with a high tAmb.
  • The data sheet gives the pole with a 100 Ohm load. A pull-up of several kOhm makes the real pole much lower, so enter fc measured with your pull-up, or set the pole with a capacitor across the pull-up.
  • The collector current reaches the circuit one or two steps late. Keep the step below about a tenth of the response time, which is about 0.15 us at 110 kHz.

Problems rules: step.too_large, param.out_of_range

Datasheet and sources

vf and rLed are a straight-line fit through two points of the forward-current curve. ctr0m2 to ctr100m are the CTR curve read at 0.2 to 100 mA (0 where the figure stops), and kTm25 to kT75 the relative ratio against temperature. ctrScale moves the curve to your bin, and tAmb reads the temperature factor. fc is the cut-off frequency of the coupler table, and vceSat is the saturation voltage. Pass them to ic.fromSpec with the optocoupler template; crates/engine-core/ics/presets holds them for PC817, LTV-817 and SFH617A.

Example

Open the example with the command file.openExample and the name demo:optocoupler.


Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.