# 含分流電阻的隔離式放大器（±50 mV） (`isolatedAmplifierAmc1302`)

> 低損耗分流電阻加隔離式放大器，輸入 ±50 mV，增益 41。

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

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

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

## 何時使用

用於以小阻值、低損耗的分流電阻量測大電流，例如換流器的橋臂電流。需要 ±250 mV 輸入時改用含分流電阻的隔離式放大器。

## 接腳

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

## 常用參數

- `rSense`: The shunt resistor between IPP and IPN (your choice, not part of the IC) (預設值: 0.0015)
- `gain`: Nominal gain (預設值: 41)
- `bw`: Output bandwidth: the single pole of the response (預設值: 280000)
- `vFsr`: Linear full-scale input: up to plus or minus this the gain is linear (預設值: 0.05)
- `clip`: Clipping differential output voltage: the output is limited to plus and minus this (預設值: 2.49)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `rSense` | Ω | 0.0015 | 1u – 10 Ω | The shunt resistor between IPP and IPN (your choice, not part of the IC) | assumption: the 1.5 mOhm leg shunt of the thesis 12 kW design, 50 mV at 33.3 A |
| `gain` | V/V | 41 | 1 – 100 V/V | Nominal gain | Section 6.9 nominal gain, p.8 |
| `gainErr` | — | 0 | -100m – 100m | Gain error as a fraction (typically +/-0.04 %; 0 = nominal) | Section 6.9 EG typ +/-0.04 %, max +/-0.2 %, p.8 (set to 0 here) |
| `bw` | Hz | 280000 | 1k – 100meg Hz | Output bandwidth: the single pole of the response | Section 6.9 BW typ (220 kHz min), p.8 |
| `vos` | V | 0.0000025 | -1m – 1m V | Input offset voltage (the datasheet gives it as +/-) | Section 6.9 VOS typ +/-2.5 uV, max +/-50 uV, p.8 |
| `vFsr` | V | 0.05 | 1m – 1 V | Linear full-scale input: up to plus or minus this the gain is linear | Section 6.3 VFSR +/-50 mV, p.7 |
| `vClipIn` | V | 0.064 | 1m – 1 V | Input at which the output reaches clip; between vFsr and this the gain falls | Section 6.3 VClipping +/-64 mV, p.7; the straight line from vFsr to it is an assumption (section 7.3.3, p.19) |
| `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.8 |
| `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.8 |
| `rIn` | Ω | 4900 | 1k – 1g Ω | Differential input resistance, across the shunt | Section 6.9 RIND typ, p.8 |
| `noise` | V | 0 | 0 – 1 V | RMS output noise; 0 = a noiseless amplifier | Section 6.9 output noise typ 260 uV rms with a 100 kHz brickwall filter, p.8 (set to simulate) |
| `seed` | — | 1 | 0 – 9007t | Whole-number seed of the noise | model parameter |
| `tDelay` | s | 0.000001206 | 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 %) typ 1.6 us (max 2.1 us), p.9, less the pole's own 50 % time ln 2 / (2 pi 280 kHz) = 0.394 us (derived) |
| `vIowm` | V | 2121 | 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 2121 VDC (1500 VRMS at AC sine; VIORM 2121 VPK), p.6 |

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

## 模型

一次側路徑是分流電阻 rSense 串聯一個電流量測元件，輸入電阻 rIn 跨在其兩端。量測元件輸出 gain * (1 + gainErr) * (rSense * i + vos)，經過頻寬 bw 的一階低通並加上固定種子雜訊，在輸入達到 vClipIn 處限幅。輸入在 vFsr 以內時輸出就是這個值。從 vFsr 到 vClipIn，輸出以較小的斜率上升，在 vClipIn 時到達 clip，超過後維持在 clip。V(OUTN) 位於 GND2 之上 vcm。vFsr 到 vClipIn 之間的直線是假設，因為規格書沒有給這一段的曲線。讀值在低通之前延遲 tDelay。隔離屏障與失效安全輸出都沒有建模。

## 常見錯誤

- 線性輸入只有正負 50 mV。使用預設的 1.5 mOhm 分流電阻時，33.3 A 得到滿刻度輸出 2.05 V。超過後讀值偏低，超過約 42.7 A（64 mV）就固定在 2.49 V。
- 請讀 OUTP 與 OUTN 的差值，不要對地讀取。兩支接腳都在 1.44 V 附近。
- 元件的訊號延遲典型值 1.6 us（最大 2.1 us）：在 bw 極點之前加上 tDelay（1.206 us）即得到這個 50 % 延遲。請在控制器中把 ADC 取樣延後同樣的時間；要研究最慢的元件，把 tDelay 設為 1.706 us。
- noise 預設為 0。設定 260u 即可看到規格書的雜訊，換 seed 就得到另一組雜訊。

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

## 規格書與來源

預設值是 TI AMC1302，規格書 SBAS812D（2021 年 6 月修訂）。vFsr 與 vClipIn 取第 6.3 節的線性滿刻度輸入與截波輸入。gain、gainErr、bw、vos、clip、vcm、rIn 與 noise 取第 6.9 節的典型值。tDelay 是第 6.10 節 1.6 us 的訊號延遲減去極點本身的 0.394 us。rSense 是你的設計值；預設的 1.5 mOhm 是取自論文 12 kW 設計的假設。以 ic.fromSpec 搭配 isolatedAmplifierAmc1302 模板傳入，並把腳位改成規格書的名稱。

## 範例

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

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