# 含分壓器的隔離式電壓感測器 (`isolatedVoltageSensor`)

> 電阻分壓器接到高阻抗隔離式放大器，把高電壓轉成低電壓讀值。

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

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

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

## 何時使用

用來以隔離方式讀取直流鏈或線電壓並送給控制器。一般量測請改用電壓表。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `HVP` | 電氣 | 高壓輸入，分壓器頂端 |
| `HVN` | 電氣 | 高壓參考，分壓器底端 |
| `OUTP` | 電氣 | 正輸出，讀值為 OUTP 減 OUTN |
| `OUTN` | 電氣 | 負輸出，位於 GND2 之上 |
| `GND2` | 電氣 | 輸出側的接地參考 |

## 常用參數

- `rTop`: Divider resistor from HVP to the amplifier input (your choice) (預設值: 2000000)
- `rBottom`: Divider resistor across the amplifier input, to HVN (your choice) (預設值: 10000)
- `gain`: Nominal gain (預設值: 1)
- `bw`: Output bandwidth: the single pole of the response (預設值: 220000)
- `clip`: Clipping differential output: limited to plus and minus this (預設值: 2.49)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `rTop` | Ω | 2000000 | 1k – 10g Ω | Divider resistor from HVP to the amplifier input (your choice) | assumption: with rBottom, 400 V gives 1.99 V, inside the 2 V full scale of section 7.3, p.6 |
| `rBottom` | Ω | 10000 | 1 – 1g Ω | Divider resistor across the amplifier input, to HVN (your choice) | assumption |
| `gain` | V/V | 1 | 100m – 100 V/V | Nominal gain | Section 7.9 nominal gain 1 V/V, p.10 |
| `gainErr` | — | 0 | -100m – 100m | Gain error as a fraction (typically 0.4 %; 0 = nominal) | Section 7.9 EG typ 0.4 %, p.10 (set to 0 here) |
| `bw` | Hz | 220000 | 1k – 100meg Hz | Output bandwidth: the single pole of the response | Section 7.9 BW typ 220 kHz, p.10 |
| `vos` | V | 0.0004 | -10m – 10m V | Input offset voltage (the data sheet gives it as +/-) | Section 7.9 VOS typ +/-0.4 mV, p.10 |
| `clip` | V | 2.49 | 100m – 5 V | Clipping differential output: limited to plus and minus this | Section 7.9 VCLIPout typ 2.49 V, p.10 (the negative limit is an assumption) |
| `vcm` | V | 1.44 | 0 – 5 V | Common-mode output voltage (the output pins sit this far above GND2) | Section 7.9 VCMout typ 1.44 V, p.10 |
| `rIn` | Ω | 1000000000 | 1k – 1t Ω | Input resistance of the amplifier, across rBottom | Section 7.9 RIN typ 1 GOhm, p.10 |
| `noise` | V | 0 | 0 – 1 V | RMS output noise; 0 = a noiseless amplifier | Section 7.9 output noise typ 220 uV rms (100 kHz), p.10 (set to simulate) |
| `seed` | — | 1 | 0 – 9007t | Whole-number seed of the noise | model parameter |
| `tDelay` | s | 0.000001599 | 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 7.10 IN to OUTx signal delay (50 % - 50 %, AMC1311) typ 2.1 us (max 3.1 us), p.12, less the pole's own 50 % time ln 2 / (2 pi 220 kHz) = 0.501 us (derived) |

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

## 模型

rTop 從 HVP 接到放大器輸入，rBottom 從輸入接到 HVN，輸入電阻 rIn 跨在 rBottom 上，所以分壓器會從被量測的節點取電流。跨在 rBottom 上的電壓量測元件讀取輸入。差動輸出 V(OUTP) - V(OUTN) 依序為 gain * (1 + gainErr) * (v + vos)、延遲 tDelay、頻寬 bw 的一階低通、有效值為 noise 伏特的固定種子高斯雜訊，最後限制在正負 clip。V(OUTN) 位於 GND2 之上 vcm。隔離屏障與失效安全輸出都沒有建模。

## 常見錯誤

- 放大器的線性輸入只有 -0.1 到 2 V。請選擇 rTop 與 rBottom，使最高電壓在 rBottom 上約為 2 V；預設值在 400 V 時為 1.99 V。
- 請讀 OUTP 減 OUTN，不要對地讀取：兩支接腳都在 1.44 V 附近。

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

## 規格書與來源

gain 取標稱增益（1 V/V），bw 取輸出頻寬，vos 取典型輸入偏移，gainErr 取增益誤差的比例值。clip 取截波的差動輸出，vcm 取共模輸出，rIn 取輸入電阻，noise 取輸出雜訊。tDelay 是第 7.10 節 2.1 us 的訊號延遲減去極點本身的 0.501 us。rTop 與 rBottom 是你的分壓器。預設值是 TI AMC1311，SBAS786C。以 ic.fromSpec 搭配 isolatedVoltageSensor 模板傳入，或放置 AMC3330 預設（SBASA34B：增益 2、±1 V 輸入、375 kHz、1.6 us），其分壓器是論文設計 1001 V 的匯流排分壓器。

## 範例

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

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