# 乘法器式升壓功率因數校正控制器（感測市電的平均電流模式） (`multiplierPfcController`)

> 以類比乘法器將感測到的市電波形（含 RMS 前饋）轉為電流命令，讓升壓 PFC 的輸入電流跟隨市電，同時穩定輸出電壓。

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

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

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

## 何時使用

升壓 PFC 使用 UC3854 類控制器，並想要經典的乘法器、VRMS 平方前饋，以及補償網路由自己畫出的兩個運算放大器時使用。circuit.applicationCircuit 的 multiplierPfc 拓樸會建出規格書的 250 W 前級穩壓器。不需感測市電的 PFC 請用 CCM 升壓功率因數校正控制器；要研究自訂控制律時，改用 PI 控制器與 PWM 產生器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `GND` | 電氣 | 所有腳位的接地參考 |
| `PKLMT` | 電氣 | 峰值限流，低於 0 V 時結束脈波 |
| `CAOUT` | 電氣 | 電流放大器輸出，補償網路接到 ISENSE |
| `ISENSE` | 電氣 | 電流放大器反相輸入 |
| `MULTOUT` | 電氣 | 乘法器輸出電流，也是電流放大器非反相輸入 |
| `IAC` | 電氣 | 市電波形電流，流入保持在 6 V 的腳位 |
| `VAOUT` | 電氣 | 電壓放大器輸出 |
| `VRMS` | 電氣 | 與市電 RMS 成正比的前饋電壓 |
| `VREF` | 電氣 | 7.5 V 參考電壓輸出 |
| `ENA` | 電氣 | 致能輸入 |
| `VSENSE` | 電氣 | 電壓放大器反相輸入，輸出分壓接在這裡 |
| `RSET` | 電氣 | 接地電阻，設定振盪器與乘法器上限 |
| `SS` | 電氣 | 軟啟動電容接到 GND |
| `CT` | 電氣 | 定時電容接到 GND |
| `VCC` | 電氣 | 電源，高於 UVLO 臨界才會動作 |
| `GTDRV` | 電氣 | 升壓開關的閘極驅動 |

## 常用參數

- `vRef`: Reference output voltage, and the voltage amplifier reference (預設值: 7.5)
- `kMult`: Multiplier gain constant k of IMO = k·IAC·(VAOUT − vaOffset)/VRMS² (預設值: 1)
- `gbwCa`: Current amplifier gain-bandwidth product (預設值: 800000)
- `vRamp`: CT ramp peak-to-valley amplitude (預設值: 5.4)
- `dMax`: Maximum duty cycle (the rest of the period discharges CT) (預設值: 0.95)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `vccOn` | V | 16 | 1 – 35 V | VCC UVLO turn-on threshold | Section 7.5 VCC turn-on threshold typ 16 V, p.6 |
| `vccOff` | V | 10 | 500m – 35 V | VCC UVLO turn-off threshold | Section 7.5 VCC turn-off threshold typ 10 V, p.6 |
| `vEnaRise` | V | 2.55 | 100m – 14 V | ENA rising threshold | Section 7.5 ENA threshold, rising typ 2.55 V, p.6 |
| `vEnaHyst` | V | 0.25 | 0 – 5 V | ENA threshold hysteresis | Section 7.5 ENA threshold hysteresis typ 0.25 V, p.6 |
| `vRef` | V | 7.5 | 1 – 10 V | Reference output voltage, and the voltage amplifier reference | Section 7.5 reference output voltage typ 7.5 V, p.7 |
| `rRef` | Ω | 0.5 | 0 – 100 Ω | Reference output resistance | Section 7.5 VREF load regulation typ 5 mV over 0 to -10 mA, p.7 |
| `iSs` | A | 0.000014 | 100n – 1m A | Soft-start charging current | Section 7.5 SS current typ -14 µA at VSS = 2.5 V, p.6 |
| `a0Va` | V/V | 100000 | 10 – 100meg V/V | Voltage amplifier open-loop gain | Section 7.5 voltage amplifier gain typ 100 dB, p.6 |
| `gbwVa` | Hz | 1000000 | 1k – 100meg Hz | Voltage amplifier unity-gain frequency | Figure 2: open-loop gain 80 dB at 100 Hz falling 20 dB/decade, 0 dB near 1 MHz (read off the plot), p.8 |
| `vaLo` | V | 0.5 | 0 – 5 V | Voltage amplifier lowest output | Section 7.5 voltage amplifier output swing min 0.5 V, p.6 |
| `vaHi` | V | 5.8 | 1 – 10 V | Voltage amplifier output limit | Section 7.5 voltage amplifier output swing 5.8 V, p.6; pin table: limited to about 5.8 V |
| `a0Ca` | V/V | 316228 | 10 – 100meg V/V | Current amplifier open-loop gain | Section 7.5 current amplifier gain typ 110 dB, p.6 |
| `gbwCa` | Hz | 800000 | 1k – 100meg Hz | Current amplifier gain-bandwidth product | Section 7.5 current amplifier gain-bandwidth product typ 800 kHz, p.7 |
| `caLo` | V | 0.5 | 0 – 5 V | Current amplifier lowest output | Section 7.5 current amplifier output swing min 0.5 V, p.7 |
| `caHi` | V | 16 | 1 – 35 V | Current amplifier highest output | Section 7.5 current amplifier output swing 16 V, p.7 |
| `rPullDown` | Ω | 8000 | 10 – 10meg Ω | Pull-down resistor of each amplifier output | Pin table, CAOUT and VAOUT: an NPN emitter-follower pull-up and an 8-kΩ resistor to ground, p.4 |
| `vIac` | V | 6 | 0 – 10 V | Voltage IAC is held at | Pin table, IAC: the nominal voltage on IAC is 6 V, p.4 |
| `kMult` | V | 1 | 10m – 100 V | Multiplier gain constant k of IMO = k·IAC·(VAOUT − vaOffset)/VRMS² | Section 7.5 multiplier gain constant typ -1 V and note (2), p.7 |
| `vaOffset` | V | 1 | 0 – 5 V | VAOUT below which the multiplier output is zero | Section 7.5 note (2): (VA Out − 1); pin table: VAOUT below 1 V inhibits the multiplier, p.4 |
| `kIacLimit` | — | 2 | 100m – 100 | Multiplier output limit, a multiple of IAC | Section 9.2.2.2: the multiplier output current never exceeds twice IAC, p.15 |
| `vRset` | V | 3.75 | 100m – 10 V | Multiplier limit IMO ≤ vRset/RSET; RSET is held at this voltage | Section 9.2.2.2 equation 4: IMULTMAX = -3.75 V/RSET, p.15 (the pin voltage itself is not given: holding it at 3.75 V makes its current that limit) |
| `kOsc` | — | 1.25 | 100m – 10 | Oscillator constant of f = kOsc/(RSET·CT) | Pin table, CT: equation 1, F = 1.25/(RSET·CT), p.4 |
| `vValley` | V | 1.1 | 0 – 5 V | CT ramp valley voltage | Section 7.5 CT ramp valley voltage typ 1.1 V, p.7 |
| `vRamp` | V | 5.4 | 500m – 10 V | CT ramp peak-to-valley amplitude | Section 7.5 CT ramp peak-to-valley amplitude typ 5.4 V, p.7 |
| `dMax` | — | 0.95 | 500m – 999m | Maximum duty cycle (the rest of the period discharges CT) | Section 7.5 gate driver maximum duty cycle typ 95 % at VCAOUT = 7 V, p.7 |
| `vPklmt` | V | 0 | -1 – 1 V | Peak current limit threshold on PKLMT | Pin table, PKLMT: the threshold is 0 V, p.4 |
| `vGateClamp` | V | 14.5 | 1 – 35 V | GTDRV high-level clamp | Section 7.5 maximum gate driver output voltage typ 14.5 V (0 mA, 18 V < VCC < 35 V), p.7 |
| `rGateHi` | Ω | 11 | 100m – 10k Ω | GTDRV pull-up resistance | Section 7.5 gate driver output voltage high typ 12.8 V at -200 mA, VCC = 15 V, p.7 (assumption: unloaded it would be at VCC) |
| `rGateLo` | Ω | 5 | 100m – 10k Ω | GTDRV pull-down resistance | Section 7.5 gate driver output voltage low typ 1 V at 200 mA, p.7 |

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

## 模型

乘法器由 MULTOUT 送出 IMO = kMult * IAC * (V(VAOUT) - vaOffset) / V(VRMS)^2，上限為 kIacLimit * IAC 與 vRset / RSET，VAOUT 低於 vaOffset 時為零；IAC 腳保持在 vIac，RSET 腳保持在 vRset。電壓放大器比較 SS 與 vRef 中較低者和 VSENSE，電流放大器比較 MULTOUT 和 ISENSE：各有增益 a0、一個極點、單位增益頻率 gbw，輸出限制在其擺幅之間，並經射極隨耦器與 rPullDown 接地，所以只能源出電流。CT 由 vValley 充電到 vValley + vRamp，並在週期最後的 1 - dMax 放電，頻率 f = kOsc / (RSET * CT)。每次放電結束時 GTDRV 導通，CT 超過 CAOUT 或 PKLMT 低於 vPklmt 時關閉。VCC UVLO 與 ENA 致能 VREF、振盪器與閘極並釋放 SS，SS 以 iSs 充電。兩個放大器與乘法器只讀節點電壓，求解器會把它們與電路一起求解。

## 常見錯誤

- 電流放大器的增益頻寬為 800 kHz，切換邊緣附近需要遠小於 1 微秒的步長；應用電路每個切換週期用 100 步。最大步長太粗時，市電電流會不正確。
- VRMS 需保持在 1.5 V 到 3.5 V 之間，乘法器公式才成立；低於此範圍時實際元件的輸出比公式小（1 V 時公式給 100 uA，實際約 80 uA）。請依市電範圍設計 VRMS 濾波器。
- 電壓迴路很慢（規格書電路的極點約 19 Hz），從空的輸出啟動需要許多個市電週期。請像 multiplierPfc 應用電路一樣，把輸出與 VAOUT 電容先充到工作點。

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

## 規格書與來源

RSET、CT、SS 電容、IAC 與 VRMS 電阻、兩個放大器的網路、輸出分壓與 PKLMT 分壓是你自己的零件。vccOn、vccOff、ENA 臨界與遲滯、vRef、iSs、兩個放大器的增益、gbwCa、輸出擺幅、kMult、vValley、vRamp、dMax 與閘極準位取自電氣特性。rPullDown、vIac 與 vPklmt 取自腳位說明，kOsc 取自式 1，vRset 取自式 4，kIacLimit 取自設計說明。gbwVa 讀自電壓放大器的增益圖，rGateHi 假設無載時的高準位等於 VCC。

## 範例

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

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