Voltecx 目前為測試版。macOS 版先推出,Windows 與 Linux 安裝包仍在測試中。測試版。macOS 版先推出,Windows 與 Linux 版仍在測試。⁠最新消息
文件

高速邏輯輸出光耦合器 (highSpeedOpto)

透過 LED 與邏輯輸出級,把快速邏輯訊號傳過隔離屏障。

highSpeedOpto

元件參考 · English

分類: 積體電路 · 種類: {"definition":"highSpeedOpto","kind":"subsystem"}

何時使用

用來傳送數十 MBd 以內的 PWM、故障或通訊訊號,並保留真實的臨界電流、兩個邊緣的延遲與 CMTI。類比回授電流改用光耦合器,最快的訊號改用數位隔離器。

接腳

接腳 訊號域 意義
AN 電氣 LED 陽極
CAT 電氣 LED 陰極,輸入側的參考點
VCC 電氣 輸出側電源
OUT 電氣 邏輯輸出,開集極或圖騰柱
GND 電氣 輸出側接地,與 LED 隔離

常用參數

  • iFth: Input threshold current: above it the LED is lit and the output switches (預設值: 0.005)
  • tPhl: Propagation delay to the output going low (預設值: 0.000000035)
  • tPlh: Propagation delay to the output going high (|tPlh − tPhl| is the pulse-width distortion) (預設值: 0.00000004)
  • totemPole: 1: totem-pole output; 0: open collector (add a pull-up) (預設值: 0)
  • cmti: Common-mode transient immunity: the barrier slope the output withstands (0: not set, no check) (預設值: 10000000000)

參數

鍵 單位 預設值 典型範圍 說明 規格書來源
vf V 1.3 100m – 5 V LED forward drop of the straight-line fit typical, user must set
rLed Ω 10 0 – 1k Ω LED series resistance of the straight-line fit typical, user must set
iFth A 0.005 10u – 100m A Input threshold current: above it the LED is lit and the output switches typical, user must set
iFhys A 0.0005 0 – 50m A Hysteresis of the threshold: the LED counts as dark again below iFth − iFhys typical, user must set
tPhl s 0.000000035 0 – 1m s Propagation delay to the output going low typical, user must set
tPlh s 0.00000004 0 – 1m s Propagation delay to the output going high (|tPlh − tPhl| is the pulse-width distortion) typical, user must set
inverting — 1 0 – 1 1: the output is low while the LED is lit; 0: high while it is lit typical, user must set
totemPole — 0 0 – 1 1: totem-pole output; 0: open collector (add a pull-up) typical, user must set
rOnLo Ω 25 100m – 100k Ω Output resistance to GND when low typical, user must set
rOnHi Ω 50 100m – 100k Ω Output resistance to VCC when high (totem pole only) typical, user must set
cOut F 0.000000000015 0 – 10n F Output capacitance: with the pull-up it sets the rise and fall typical, user must set
vccMin V 4.5 500m – 40 V Lowest supply: below it the output stage is off typical, user must set
vccMax V 5.5 500m – 40 V Highest supply of the recommended range (checked against vccMin only) typical, user must set
maxRate Bd 10000000 1 – 10g Bd Highest data rate of the part (used to choose an isolator; not a limit of the model) typical, user must set
rOff Ω 100000000 1k – 1t Ω Off-state resistance of the output switches assumption: leakage is not modelled
cmti V/s 10000000000 0 – 10t V/s Common-mode transient immunity: the barrier slope the output withstands (0: not set, no check) typical, user must set
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 的二極體。電流高於臨界值 iFth(遲滯 iFhys)時 LED 點亮,輸出變低(inverting = 1)或變高(inverting = 0)。輸出下降沿延遲 tPhl,上升沿延遲 tPlh,兩者之差就是脈寬失真。VCC 高於 vccMin 時,輸出經 rOnLo 下拉,圖騰柱輸出還會經 rOnHi 上拉。輸出端的 cOut 與上拉電阻決定上升時間。GND 對 CAT 的斜率會被量測;超過 cmti 時輸出反相 tGlitch,Problems 會回報超過 CMTI。預設值是 10 MBd 等級的典型值,不是某個零件的數值。

常見錯誤

  • 預設值是典型值,使用者必須自行設定。請先從零件的規格書填入臨界電流、兩個延遲、輸出電容與 CMTI,再相信時序結果。
  • 開集極輸出自己沒有高準位。請從 OUT 加一個上拉電阻到 VCC,它與 cOut 一起決定上升時間。
  • 輸出會晚一個求解步長才到達開關。延遲為數十奈秒時,請用 1 ns 以下的步長。

Problems 規則: step.too_large, ground.missing

規格書與來源

iFth 取輸入臨界電流(IFT 或 IFLH,安全設計取最大值)。tPhl 與 tPlh 取你的 LED 電流與負載下的傳遞延遲,兩者之差是脈寬失真。rOnLo 取 VOL 除以測試電流。cOut 取輸出電容,vccMin 與 vccMax 取電源範圍,maxRate 取資料速率,cmti 取共模暫態抗擾度(最小值)。以 ic.fromSpec 搭配 highSpeedOpto 模板傳入。

範例

以指令 file.openExample 開啟範例,名稱為 demo:highSpeedOpto.


由 cargo xtask reference 依使用說明文字與參數規格產生,請勿手動編輯。