# 電壓參考 (`voltageReference`)

> 提供隨電源與負載變化很小的精準電壓。

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

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

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

## 何時使用

用作 ADC 或比較器的參考電壓，並保留壓差、電流限制與輸出阻抗。要用兩顆電阻設定準位時，改用可調式並聯穩壓器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `IN` | 電氣 | 輸入電源 |
| `OUT` | 電氣 | 參考輸出 |
| `GND` | 電氣 | 接地 |

## 常用參數

- `vOut`: Output voltage (預設值: 2.5)
- `psrr`: Supply rejection at low frequency (預設值: 80)
- `rHf`: Output resistance a load step sees before the loop responds (預設值: 40)
- `iLim`: Current limit (預設值: 0.045)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `vOut` | V | 2.5 | 500m – 40 V | Output voltage | Section 6.6 REF3025 VOUT typ, p.8 |
| `psrr` | dB | 80 | 0 – 160 dB | Supply rejection at low frequency | Figure 6-38 PSRR at 1 to 10 Hz, p.16 |
| `fZero` | Hz | 22 | 100m – 1g Hz | Frequency where the rejection starts to fall (20 dB per decade) | Figure 6-38: 47 dB at 1 kHz and 27 dB at 10 kHz, read off the plot, p.16 |
| `fPole` | Hz | 220000 | 100m – 1g Hz | Frequency where the rejection stops falling | Figure 6-38: the 20 dB per decade line reaches 0 dB here (4 dB at 100 kHz on the plot), p.16 |
| `vDo0` | V | 0.001 | 0 – 5 V | Dropout with no load | Section 6.6 VDO typ, p.9 |
| `rDo` | Ω | 10 | 100u – 1k Ω | Dropout resistance: dropout per ampere of output | assumption: no dropout-vs-load row; Figure 6-40 shows regulation at VIN = 3 V and 25 mA, so the dropout at 25 mA (here 0.25 V) is below 0.5 V, p.16 |
| `rLoad` | Ω | 0.0075 | 0 – 1k Ω | Load regulation as a resistance | Section 6.6 load regulation typ 3 ppm/mA of 2.5 V, p.9 |
| `rHf` | Ω | 40 | 100u – 1k Ω | Output resistance a load step sees before the loop responds | Figure 6-37 output impedance at 100 kHz, p.16 |
| `fLoop` | Hz | 100000 | 1 – 1g Hz | Bandwidth with which the loop corrects load and dropout changes | Figure 6-37: rHf / fLoop is the slope of the rising impedance (40 Ω at 100 kHz, still rising there), p.16 |
| `iLim` | A | 0.045 | 100u – 100 A | Current limit | Section 6.6 ISC typ, p.9 |
| `iq` | A | 0.000042 | 0 – 100m A | Quiescent current drawn from IN | Section 6.6 IQ typ, p.9 |
| `tOn` | s | 0.00012 | 1n – 1 s | Start-up time: the set point ramps to vOut over it | Section 6.6 turn-on settling time typ (to 0.1 %, CL = 1 uF), p.9 |

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

## 模型

輸出是 vOut 加上經電源抑制的輸入，抑制在低頻為 psrr，並有 fZero 的零點與 fPole 的極點。上電後在 tOn 內上升。直流時輸出隨電流下降 rLoad 乘以電流，在 fLoop 以上輸出電阻升到 rHf。壓差區時輸出等於輸入減 vDo0 再減 rDo 乘以電流。電流在 iLim 停止，輸出不能吸入電流，輸入吸取輸出電流加 iq。雜訊、漂移與熱遲滯都沒有建模。

## 常見錯誤

- 輸出阻抗隨頻率上升，預設在 100 kHz 時為 40 Ohm，所以快速的負載階躍會產生短暫的尖波。加上輸出電容時，模型會在 20 kHz 附近振鈴，而且比實際零件更慢穩定。
- 壓差隨負載增加的部分是假設值，因為規格書只給無負載時的壓差。滿載時請保留至少 0.5 V 的餘裕。

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

## 規格書與來源

vOut 取你選用的輸出電壓。psrr、fZero、fPole 取自電源抑制曲線。rHf 與 fLoop 取自輸出阻抗曲線最高頻率處的值與該頻率。rLoad 取負載調節率乘以 vOut，vDo0 取壓差，iLim 取短路電流，iq 取靜態電流，tOn 取啟動安定時間。以 ic.fromSpec 搭配 voltageReference 模板傳入。

## 範例

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

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