# 比流器 (`currentTransformer`)

> 一次側單匝穿過磁芯，二次側繞組接負擔電阻，輸出與交流電流成比例的電壓。

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

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

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

## 何時使用

用來以隔離、無損耗的方式量測轉換器的開關或變壓器電流，例如峰值電流模式控制。它無法通過直流，需要量測直流時改用閉迴路霍爾電流轉換器或霍爾電流感測器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `IPP` | 電氣 | 一次側輸入（同名端），讀值為正 |
| `IPN` | 電氣 | 一次側輸出 |
| `OUT` | 電氣 | 二次側同名端，跨在負擔電阻上 |
| `GND` | 電氣 | 二次側另一端，輸出的參考 |

## 常用參數

- `turns`: Secondary turns per primary turn (1 : turns) (預設值: 100)
- `ls`: Secondary inductance: the magnetising inductance seen from the secondary (預設值: 0.02)
- `vt`: Volt-time product of the secondary: the flux linkage where the core saturates (預設值: 0.000298)
- `rBurden`: Burden (terminating) resistor across OUT and GND (預設值: 2.9)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `turns` | — | 100 | 1 – 10k | Secondary turns per primary turn (1 : turns) | Turns (N) pri : sec 1 : 100, p.1 |
| `ls` | H | 0.02 | 1u – 10 H | Secondary inductance: the magnetising inductance seen from the secondary | Inductance min 20 mH (note 1: secondary, 15.75 kHz, 1 Vrms), p.1 |
| `rSec` | Ω | 1.4 | 0 – 1k Ω | Secondary winding resistance | DCR max sec 1.4 Ohm, p.1 |
| `rPri` | Ω | 0.001 | 0 – 1 Ω | Primary resistance | DCR max pri 0.001 Ohm, p.1 |
| `vt` | V·s | 0.000298 | 100n – 1 V·s | Volt-time product of the secondary: the flux linkage where the core saturates | Volt-time product 298 V-us (note 2: secondary), p.1 |
| `rBurden` | Ω | 2.9 | 1m – 100k Ω | Burden (terminating) resistor across OUT and GND | Terminating resistance RT 2.9 Ohm (note 3: 1 V at 35 A), p.1 |
| `lsatFrac` | — | 0.01 | 100u – 1 | Magnetising inductance once saturated, as a fraction of the unsaturated one | assumption: the data sheet gives no saturated inductance |

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

## 模型

一個匝數比 1 : turns 的變壓器，一次側電阻 rPri、二次側電阻 rSec。激磁電感是二次側電感 ls，折算到單匝一次側為 ls / turns²。二次側磁通鏈達到伏秒積 vt 時磁芯飽和，相當於一次側的激磁電流 turns * vt / ls，此後電感降為原值的 lsatFrac 倍。負擔電阻 rBurden 在元件內，跨在 OUT 與 GND 之間，所以輸出為 rBurden / turns 乘以一次側電流，再扣掉激磁電流的部分。低頻轉折頻率為 (rBurden + rSec) / (2 pi ls)。

## 常見錯誤

- 一次側電流的直流成分，或沒有重置的單極性脈波串，會使磁通累積到磁芯飽和，輸出隨之崩潰。請替磁芯加上重置電路（二極體加重置電阻），或讓電流保持交流。
- 負擔電阻越大，每安培的電壓越高，但二次側電壓也越高，所以磁芯會在較小的電流或較短的脈波就飽和。請確認單一脈波的二次側伏秒低於 vt。

Problems 規則: `param.out_of_range`

## 規格書與來源

turns 取匝數比（1 : 100 填 100），ls 取二次側電感（表中的最小值），rSec 與 rPri 取繞組直流電阻，vt 取伏秒積（298 V-us 填 298u），rBurden 取終端電阻。lsatFrac 不在規格書中。預設值是 Coilcraft CS4100V-01L，Document 132，2021/05/05 修訂版。以 ic.fromSpec 搭配 currentTransformer 模板傳入。

## 範例

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

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