# 閉迴路霍爾電流轉換器 (`closedLoopHall`)

> 補償式霍爾電流轉換器，二次側電流等於一次側電流除以匝數比，可量測直流。

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

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

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

## 何時使用

用來以隔離方式量測數十安培的直流與交流電流，例如換流器相電流或直流鏈，經由量測電阻讀取。小型、電壓輸出的開迴路元件請改用霍爾電流感測器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `IPP` | 電氣 | 一次側導體輸入，讀值為正 |
| `IPN` | 電氣 | 一次側導體輸出 |
| `M` | 電氣 | 二次側電流輸出，流入量測電阻 |
| `GND` | 電氣 | 電源的 0 V，二次側電流的回路 |

## 常用參數

- `ratio`: Secondary turns per primary turn: the output current is the primary current over this (預設值: 1000)
- `bw`: Bandwidth at -1 dB (a single pole whose -3 dB corner is about twice this) (預設值: 200000)
- `io`: Offset current at zero primary current (the data sheet gives +/-0.2 mA max) (預設值: 0)
- `isMax`: Largest secondary current: the measuring range over ratio (預設值: 0.07)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `ratio` | — | 1000 | 1 – 100k | Secondary turns per primary turn: the output current is the primary current over this | Turns ratio 1 : 1000, p.1 |
| `bw` | Hz | 200000 | 1k – 100meg Hz | Bandwidth at -1 dB (a single pole whose -3 dB corner is about twice this) | Frequency bandwidth DC to 200 kHz at -1 dB, p.1 |
| `io` | A | 0 | -10m – 10m A | Offset current at zero primary current (the data sheet gives +/-0.2 mA max) | Electrical offset current IOE +/-0.2 mA max at 25 °C, p.1 (set to 0 here) |
| `isMax` | A | 0.07 | 100u – 10 A | Largest secondary current: the measuring range over ratio | Primary measuring range +/-70 A, p.1 |

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

## 模型

與一次側串聯的電流量測元件（無電阻）讀取電流，除以 ratio 再加上偏移電流 io。接著經過 -3 dB 轉折為 bw / 0.509 的一階低通，使響應在 bw 時下降 1 dB。結果限制在正負 isMax，驅動一個電流源從 M 流出，所以在接到 GND 的量測電阻 rM 上 V(M) = rM * (io + i / ratio)。電源、電源電壓對 rM 的裕度與電源電流都沒有建模。

## 常見錯誤

- M 必須接一個到 GND 的量測電阻。開路時電流源無處可流，電路無法求解。
- 真實元件只有在電源能推動 rM 時才保持線性：正負 15 V、50 A 時為 50 到 160 Ohm。這裡任何 rM 都會被推動，請自行把它保持在此範圍內。

Problems 規則: `step.too_large`, `param.out_of_range`

## 規格書與來源

ratio 取每一次側匝的二次側匝數（1 : 1000 填 1000），bw 取 -1 dB 的頻寬，io 取電氣偏移電流（規格書只給最大值，所以 0 為標稱），isMax 取量測範圍除以 ratio。預設值是 LEM LA 55-P，規格書 N° 97.13.25.000.0 第 19 版。以 ic.fromSpec 搭配 closedLoopHall 模板傳入。

## 範例

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

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