光耦合器 (optocoupler)
透過 LED 與光電晶體,把電流傳過隔離屏障。
分類: 積體電路 · 種類: {"definition":"optocoupler","kind":"subsystem"}
何時使用
用來把隔離電源的回授從二次側傳到一次側,並保留真實的電流傳輸比、它的漂移與極點。快速邏輯訊號改用數位隔離器。
接腳
| 接腳 | 訊號域 | 意義 |
|---|---|---|
AN |
電氣 | LED 陽極 |
CAT |
電氣 | LED 陰極 |
C |
電氣 | 集極,吸入傳過來的電流 |
E |
電氣 | 射極,與 LED 側隔離 |
常用參數
ctrScale: Multiplies the whole CTR curve: another CTR bin, or the lower CTR after ageing (預設值: 1)tAmb: Ambient temperature for the CTR (預設值: 25)fc: Pole of the current transfer (預設值: 110000)vf: LED forward drop of the straight-line fit (預設值: 1)
參數
| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
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 |
參數說明在兩種語言中都是英文。
模型
LED 是壓降 vf、電阻 rLed 的二極體。集極電流等於 LED 電流在電流傳輸比曲線上的值,乘以 ctrScale 與環境溫度 tAmb 的係數。集極電流經過 fc 的單極點跟隨這個目標,從 C 流到 E,電晶體在 vceSat 飽和。設定 cmti 後,E 對 CAT 的斜率超過它時,電晶體會導通 tGlitch,Problems 會回報超過 CMTI。上拉電阻變大時極點下降、傳輸比老化、接面電容與暗電流都沒有建模。
常見錯誤
- 電流傳輸比在零件之間差異很大,也會隨老化與溫度下降。請用 ctrScale 約為預設值一半與兩倍,以及較高的 tAmb 檢查迴路。
- 規格書的極點是在 100 Ohm 負載下量得。數 kOhm 的上拉電阻會讓實際極點低很多,所以請填入以你的上拉電阻量得的 fc,或在上拉電阻上加電容來決定極點。
- 集極電流會晚一到兩個步長才進入電路。步長請小於響應時間的十分之一左右,110 kHz 時約為 0.15 us。
Problems 規則: step.too_large, param.out_of_range
規格書與來源
vf 與 rLed 取順向電流曲線上兩點的直線擬合。ctr0m2 到 ctr100m 是在 0.2 到 100 mA 讀出的電流傳輸比曲線(圖表沒畫到的點填 0),kTm25 到 kT75 是相對傳輸比對溫度的值。ctrScale 把曲線移到你的分級,tAmb 用來讀取溫度係數。fc 取耦合器表中的截止頻率,vceSat 取飽和電壓。以 ic.fromSpec 搭配 optocoupler 模板傳入;crates/engine-core/ics/presets 有 PC817、LTV-817 與 SFH617A 的數值。
範例
以指令 file.openExample 開啟範例,名稱為 demo:optocoupler.
由 cargo xtask reference 依使用說明文字與參數規格產生,請勿手動編輯。