# 光纖發射器 (`fiberTx`)

> 把邏輯訊號轉成送進光纖的光，並保留延遲與發射功率。

![fiberTx](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/img/fiberTx.svg)

[元件參考](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/) · [English](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/ic/fiberTx/)

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

## 何時使用

與光纖接收器一起使用，把閘極訊號或變流器控制以完全沒有電氣路徑的方式傳過屏障，就像中壓變流器與模組化多階變流器那樣。同一塊電路板上改用數位隔離器或高速邏輯輸出光耦合器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `IN` | 電氣 | 邏輯輸入，以 GND 為參考 |
| `VCC` | 電氣 | 發射器電源 |
| `GND` | 電氣 | 發射器接地 |
| `OPT` | 訊號 | 光輸出，以訊號表示發射功率（瓦） |

## 常用參數

- `tTx`: Delay from IN to the light changing (both edges) (預設值: 0.000000015)
- `pTx`: Optical power launched into the fiber while on (預設值: -8)
- `maxRate`: Highest data rate of the transmitter (used to choose a link; not enforced) (預設值: 10000000)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `vInH` | V | 2 | 100m – 30 V | Input high threshold | typical, user must set |
| `vInL` | V | 0.8 | 50m – 30 V | Input low threshold | typical, user must set |
| `tTx` | s | 0.000000015 | 0 – 1m s | Delay from IN to the light changing (both edges) | typical, user must set |
| `pTx` | dBm | -8 | -60 – 20 dBm | Optical power launched into the fiber while on | typical, user must set |
| `vccMin` | V | 4.5 | 500m – 30 V | Lowest supply: below it the light stays off | typical, user must set |
| `maxRate` | Bd | 10000000 | 1 – 10g Bd | Highest data rate of the transmitter (used to choose a link; not enforced) | typical, user must set |

_參數說明在兩種語言中都是英文。_

## 模型

IN 經過史密特觸發（vInH、vInL），VCC 低於 vccMin 時保持關閉。上升與下降沿都延遲 tTx 後光才變化，OPT 輸出發射功率 pTx（dBm，換算成瓦）或 0。預設值是 650 nm 塑膠光纖等級的典型值，不是某個零件的數值。

## 常見錯誤

- 預設值是典型值，使用者必須自行設定。請從發射器的規格書填入發射功率、延遲與資料速率。
- OPT 只能接到光纖接收器的 OPT 腳：那條網路就是光纖。fiber.linkBudget 與 Problems 清單會檢查到達的功率。

Problems 規則: `step.too_large`, `ground.missing`

## 規格書與來源

pTx 取在你的驅動電流下耦合進光纖的光功率（dBm，安全的預算取最小值）。tTx 取發射器的傳遞延遲，vInH 與 vInL 取輸入臨界值，vccMin 取最低電源，maxRate 取資料速率。以 ic.fromSpec 搭配 fiberTx 模板傳入。

## 範例

以指令 `file.openExample` 開啟範例，名稱為 `demo:fiberTx`.

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