# CCM 升壓功率因數校正控制器（平均電流模式） (`ccmPfcController`)

> 不需感測市電電壓，就讓升壓 PFC 的輸入電流跟隨市電波形，同時穩定輸出電壓。

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

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

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

## 何時使用

通用輸入的升壓 PFC 使用 UCC28180 類控制器，並想以自己的功率級套用規格書的設計流程、M1 與 M2 迴路增益、軟啟動、EDR 與各項保護時使用。circuit.applicationCircuit 的 ccmPfc 拓樸會算出每個外部零件。要研究自訂的 PFC 控制律時，改用 PI 控制器與 PWM 產生器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `GND` | 電氣 | 所有腳位的接地參考 |
| `ICOMP` | 電氣 | 電流放大器輸出，電容 CICOMP 接到 GND |
| `ISENSE` | 電氣 | 電流感測，經 220 歐姆接到感測電阻的整流橋側 |
| `FREQ` | 電氣 | 頻率設定，電阻 RFREQ 接到 GND |
| `VCOMP` | 電氣 | 電壓放大器輸出，RC 補償網路接到 GND |
| `VSENSE` | 電氣 | 輸出電壓感測，PFC 輸出的分壓接在這裡 |
| `VCC` | 電氣 | 電源，高於 UVLO 臨界才會動作 |
| `GATE` | 電氣 | 升壓開關的閘極驅動 |

## 常用參數

- `vRef`: Voltage error amplifier reference (預設值: 5)
- `gmv`: Voltage error amplifier transconductance (預設值: 0.000056)
- `gmi`: Current amplifier transconductance (預設值: 0.00095)
- `vSoc`: Soft overcurrent threshold, magnitude of the negative ISENSE voltage (預設值: 0.285)
- `vPcl`: Peak current limit threshold, magnitude of the negative ISENSE voltage (預設值: 0.4)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `vFreq` | V | 1.5 | 500m – 5 V | Voltage FREQ is held at | Section 7.5 VFREQ typ 1.5 V, p.6 |
| `fTyp` | Hz | 65000 | 1k – 1meg Hz | fTYP of the frequency equation | Section 9.2.2.2 equation 12: fTYP = 65 kHz |
| `rTyp` | Ω | 32700 | 1k – 1meg Ω | RTYP of the frequency equation | Section 9.2.2.2 equation 12: RTYP = 32.7 kΩ |
| `rInt` | Ω | 1000000 | 10k – 100meg Ω | RINT of the frequency equation | Section 9.2.2.2 equation 12: RINT = 1 MΩ |
| `tOffMin` | s | 0.00000057 | 0 – 10u s | Minimum off-time of every period | Section 7.5 tOFF(min) typ 570 ns, p.6 |
| `kIsense` | V/V | 2.5 | 100m – 100 V/V | Gain from -V(ISENSE) to the internal current signal | Section 8.3.10: ISENSE is buffered by a fixed gain of -2.5 |
| `gmi` | S | 0.00095 | 1u – 1 S | Current amplifier transconductance | Section 7.5 gmi typ 0.95 mS, p.6 |
| `k1` | V/V | 7 | 100m – 100 V/V | Current loop constant K1 | Section 9.2.2.12 equation 79: K1 = 7 |
| `iCompMax` | A | 0.00005 | 100n – 10m A | Current amplifier output current limit | Section 7.5 current loop output linear range ±50 µA (characterized by design), p.6 |
| `vIcompFault` | V | 3 | 0 – 6 V | ICOMP voltage during OVP_H, OLP and ISOP | Section 7.5 ICOMP voltage during OLP typ 3 V, p.6; section 8.3.17 |
| `vRef` | V | 5 | 1 – 10 V | Voltage error amplifier reference | Section 7.5 VREF typ 5 V, p.6 |
| `gmv` | S | 0.000056 | 100n – 10m S | Voltage error amplifier transconductance | Section 7.5 gmv typ -56 µS (current out of VCOMP), p.6 |
| `iVcompMax` | A | 0.00004 | 100n – 10m A | Voltage error amplifier output current limit (soft-start source and normal sink) | Section 7.5 source current under soft start typ -40 µA and maximum sink current typ 40 µA, p.6 |
| `gmvEdr` | S | 0.00028 | 100n – 100m S | Transconductance under enhanced dynamic response | Section 7.5 gmv-EDR typ -280 µS, p.6 |
| `iEdrMax` | A | 0.000275 | 100n – 100m A | Voltage error amplifier output current limit under EDR | Section 7.5 maximum current under EDR operation typ -275 µA, p.6 |
| `kUvd` | — | 0.95 | 500m – 1 | UVD threshold, a fraction of vRef (EDR below it) | Section 7.5 VUVD typ 95 %VREF, p.6 |
| `kOvd` | — | 1.05 | 1 – 1.5 | OVD threshold, a fraction of vRef (EDR above it) | Section 7.5 VOVD typ 105 %VREF, p.6 |
| `kSsEnd` | — | 0.98 | 500m – 1 | End-of-soft-start threshold on VSENSE, a fraction of vRef | Section 7.5 VSENSE threshold, end-of-soft-start typ 98 %VREF, p.7 |
| `vPrecharge` | V | 1.5 | 0 – 5 V | VCOMP pre-charge voltage before the soft start | Section 7.5 VPRECHARGE typ 1.5 V, p.7 |
| `iPrecharge` | A | 0.001 | 1u – 100m A | VCOMP pre-charge current at VCOMP = 0 V | Section 7.5 IPRECHARGE typ -1 mA, p.7 |
| `kOlp` | — | 0.165 | 10m – 900m | OLP/standby threshold on VSENSE, a fraction of vRef | Section 7.5 VOLP typ 16.5 %VREF, p.6 |
| `vIsop` | V | 0.085 | 0 – 1 V | ISENSE open-pin threshold | Section 7.5 VISOP typ 0.085 V, p.6 |
| `iIsop` | A | 0.0000023 | 0 – 1m A | ISENSE open-pin pull-up current | Section 7.5 IISOP typ -2.3 µA, p.6 |
| `rVcompFault` | Ω | 80 | 1 – 1meg Ω | VCOMP pull-down in UVLO, OLP and ISOP | Section 7.5 VCOMP voltage during OLP typ 0.04 V at 0.5 mA, p.7 |
| `kOvpL` | — | 1.07 | 1 – 1.5 | OVP_L threshold on VSENSE, a fraction of vRef (VCOMP discharged through rVcompDis) | Section 7.5 VOVP_L typ 107 %VREF, p.6 |
| `kOvpH` | — | 1.09 | 1 – 1.5 | OVP_H threshold on VSENSE, a fraction of vRef (GATE off) | Section 7.5 VOVP_H typ 109 %VREF, p.6 |
| `kOvpHRst` | — | 1.02 | 900m – 1.5 | OVP_H reset threshold on VSENSE, a fraction of vRef | Section 7.5 VOVP_H(RST) typ 102 %VREF, p.6 |
| `rVcompDis` | Ω | 4000 | 1 – 1meg Ω | VCOMP discharge resistor of OVP_L and SOC | Sections 8.3.4 and 8.3.11: a 4-kΩ resistor connects VCOMP to ground |
| `vSoc` | V | 0.285 | 10m – 2 V | Soft overcurrent threshold, magnitude of the negative ISENSE voltage | Section 7.5 VSOC typ -0.285 V, p.6 |
| `vPcl` | V | 0.4 | 10m – 2 V | Peak current limit threshold, magnitude of the negative ISENSE voltage | Section 7.5 VPCL typ -0.4 V, p.6 |
| `vccOn` | V | 11.5 | 1 – 30 V | VCC UVLO turn-on threshold | Section 7.5 VCCON typ 11.5 V, p.6 |
| `vccOff` | V | 9.5 | 500m – 30 V | VCC UVLO turn-off threshold | Section 7.5 VCCOFF typ 9.5 V, p.6 |
| `vGateClamp` | V | 15.2 | 1 – 30 V | GATE high-level clamp | Section 7.5 GATE high voltage typ 15.2 V at VCC = 20 V, p.7 |
| `vGateDrop` | V | 1 | 0 – 5 V | GATE high level below VCC when not clamped | Section 7.5 GATE high voltage typ 11.2 V at VCC = 12.2 V, p.7 |
| `rGateHi` | Ω | 10.1 | 100m – 10k Ω | GATE pull-up resistance | assumption: the 15.2 V clamp over the 1.5 A peak sourcing current (section 7.5, p.7) |
| `rGateLo` | Ω | 2 | 100m – 10k Ω | GATE pull-down resistance | Section 7.5 GATE low voltage, sinking, typ 0.04 V at 20 mA, p.7 |
| `rOff` | Ω | 100000000 | 1k – 1t Ω | Off-state resistance of the internal switches | assumption: large against the VCOMP network |

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

## 模型

FREQ 腳保持在 vFreq，切換頻率隨其電流而定：fsw = fTyp * rTyp * (rInt + RFREQ) / (RFREQ * (rInt + rTyp))，其中 RFREQ = vFreq / I。內部電流訊號是 -kIsense 乘以 V(ISENSE)。ICOMP 由 gmi * (訊號 - M1 * V(ICOMP) / k1) 供電，限制在 iCompMax，M1 是 V(VCOMP) 的分段線性函數。每個週期開始時 GATE 為低；tOffMin 之後，以 M2 = fsw / 65 kHz * 0.1223 * (V(VCOMP) - 0.5)^2 V/us 上升的斜坡越過 V(ICOMP) 時 GATE 導通。VCOMP 由 gmv * (vRef - V(VSENSE)) 供電並限制在 iVcompMax；軟啟動結束後若 VSENSE 離開 vRef 的 95 到 105 %，改用 gmvEdr 並限制在 iEdrMax。VSENSE 第一次到達 kSsEnd * vRef 之前，預充電源把 VCOMP 拉到 vPrecharge。UVLO、OLP（VSENSE 低於 kOlp * vRef）與 ISOP 會停止 GATE，把 VCOMP 拉到 GND、ICOMP 拉到 vIcompFault。OVP_L 與軟過電流（ISENSE 低於 -vSoc）經 rVcompDis 對 VCOMP 放電。OVP_H 在 kOvpH * vRef 起關閉 GATE，直到低於 kOvpHRst * vRef。ISENSE 低於 -vPcl 時結束該週期。

## 常見錯誤

- 電壓迴路的交越頻率約 10 Hz，從空的輸出啟動需要數百毫秒的軟啟動。要只看幾個市電週期時，先把輸出電容與 VCOMP 電容充到工作點，就像 ccmPfc 應用電路的做法。
- 感測電阻放在回流路徑，ISENSE 讀到的是負電壓。若接在正端，ISENSE 會高於 0.085 V，開腳保護會讓轉換器停止。

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

## 規格書與來源

RFREQ、CICOMP、VCOMP 補償網路、VSENSE 分壓與感測電阻是你自己的零件。vFreq、tOffMin、gmi、iCompMax、vIcompFault、vRef、gmv、iVcompMax、gmvEdr、iEdrMax、UVD、OVD、OLP、OVP 與軟啟動結束的比例、vPrecharge、iPrecharge、vIsop、iIsop、vSoc、vPcl、vccOn、vccOff、GATE 準位與 rGateLo 取自電氣特性，rVcompFault 取自 OLP 期間 VCOMP 電壓與其測試電流。fTyp、rTyp、rInt 與 k1 取自設計流程（式 12 與式 79），kIsense 與 rVcompDis 取自功能說明。rGateHi 是假設值：箝位電壓除以峰值源出電流。

## 範例

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

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