# 含分流電阻的隔離式放大器 (`isolatedAmplifier`)

> 分流電阻加放大器，讀值會跨過隔離屏障。

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

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

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

## 何時使用

用於量測馬達相線等高壓節點的電流，並把讀值送給控制器。不需要隔離時改用含分流電阻的分流放大器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `IPP` | 電氣 | 一次側電流輸入，讀值為正 |
| `IPN` | 電氣 | 一次側電流輸出 |
| `OUTP` | 電氣 | 正輸出，讀值為 OUTP 減 OUTN |
| `OUTN` | 電氣 | 負輸出，位於 GND2 之上 |
| `GND2` | 電氣 | 輸出側的接地參考 |

## 常用參數

- `rSense`: The shunt resistor between IPP and IPN (your choice, not part of the IC) (預設值: 0.01)
- `gain`: Nominal gain (預設值: 8.2)
- `bw`: Output bandwidth: the single pole of the response (預設值: 210000)
- `clip`: Clipping differential output voltage: the output is limited to plus and minus this (預設值: 2.49)
- `noise`: RMS output noise; 0 = a noiseless amplifier (預設值: 0)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `rSense` | Ω | 0.01 | 1u – 10 Ω | The shunt resistor between IPP and IPN (your choice, not part of the IC) | assumption |
| `gain` | V/V | 8.2 | 1 – 100 V/V | Nominal gain | Section 6.9 nominal gain, p.9 |
| `gainErr` | — | 0 | -100m – 100m | Gain error as a fraction (typically +/-0.05 %; 0 = nominal) | Section 6.9 EG typ +/-0.05 %, p.9 (set to 0 here) |
| `bw` | Hz | 210000 | 1k – 100meg Hz | Output bandwidth: the single pole of the response | Section 6.9 BW typ, p.9 |
| `vos` | V | 0.00005 | -1m – 1m V | Input offset voltage (the datasheet gives it as +/-) | Section 6.9 VOS typ +/-0.05 mV, p.9 |
| `clip` | V | 2.49 | 100m – 5 V | Clipping differential output voltage: the output is limited to plus and minus this | Section 6.9 VCLIPout typ +/-2.49 V, p.9 |
| `vcm` | V | 1.44 | 0 – 5 V | Common-mode output voltage (the output pins sit this far above GND2) | Section 6.9 VCMout typ, p.9 |
| `rIn` | Ω | 22000 | 1k – 1g Ω | Differential input resistance, across the shunt | Section 6.9 RIND typ, p.9 |
| `tDelay` | s | 0.000001075 | 0 – 1m s | Signal delay ahead of the bandwidth pole: with the pole, a step reaches 50 % this plus ln 2 / (2 pi bw) late | Section 6.10 VINx to VOUTx signal delay (50 % - 50 %, unfiltered output) typ 1.6 us (max 2.6 us), p.10, less the pole's own 50 % time ln 2 / (2 pi 210 kHz) = 0.525 us (derived) |
| `noise` | V | 0 | 0 – 1 V | RMS output noise; 0 = a noiseless amplifier | Section 6.9 output noise typ 220 uV rms with a 100 kHz brickwall filter, p.9 (set to simulate) |
| `seed` | — | 1 | 0 – 9007t | Whole-number seed of the noise | model parameter |
| `vIowm` | V | 1500 | 0 – 100k V | Isolation working voltage (DC, peak): the largest voltage across the barrier the part is rated for (0: not set, no check) | Section 6.6 VIOWM at DC voltage 1500 VDC (1000 VRMS at AC sine; VIORM 1500 VPK), p.7 |

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

## 模型

一次側路徑是分流電阻 rSense 串聯一個電流量測元件，輸入電阻 rIn 跨在其兩端。差動輸出 V(OUTP) - V(OUTN) 依序為 gain * (1 + gainErr) * (rSense * i + vos)、頻寬 bw 的一階低通、有效值為 noise 伏特的固定種子高斯雜訊，最後限制在正負 clip。V(OUTN) 位於 GND2 之上 vcm。隔離屏障、共模暫態抗擾度與失效安全輸出都沒有建模。

## 常見錯誤

- 請讀 OUTP 與 OUTN 的差值，不要對地讀取。兩支接腳都在 1.44 V 附近，單端讀值會差這個準位。
- 輸出在正負 2.49 V 截波，相當於約 0.3 V 的輸入。輸入範圍只有正負 250 mV，請選擇 rSense 使峰值電流的壓降低於此值。
- 請把 GND2 接到控制器的接地，一次側電路也要有自己的接地。步長要小於響應時間的十分之一左右，210 kHz 時約為 0.8 us。
- noise 預設為 0。設定 220u 即可看到規格書的雜訊，換 seed 就得到另一組雜訊。

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

## 規格書與來源

gain 取標稱增益（8.2 V/V），bw 取輸出頻寬，vos 取典型輸入偏移。gainErr 取增益誤差的比例值。clip 取截波的差動輸出電壓，vcm 取共模輸出電壓，rIn 取差動輸入電阻，noise 取輸出雜訊。rSense 是你的設計值。以 ic.fromSpec 搭配 isolatedAmplifier 模板傳入，並把腳位改成規格書的名稱。

## 範例

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

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