# 轉態模式升壓功率因數校正控制器（定導通時間） (`tmPfcController`)

> 讓升壓 PFC 工作在轉態模式：每個市電週期內導通時間固定，汲極顯示電感電流歸零時才開始下一個週期，使市電電流跟隨市電電壓。

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

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

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

## 何時使用

數百瓦以內的升壓 PFC 使用 UCC28056 類控制器，並想要不需輔助繞組的谷底導通、市電前饋與突發模式時使用。circuit.applicationCircuit 的 tmPfc 拓樸會建出規格書的 165 W、390 V 前級穩壓器。較大功率、連續導通的設計請用 CCM 升壓功率因數校正控制器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `VOSNS` | 電氣 | 輸出電壓感測，穩定在 2.5 V |
| `ZCD` | 電氣 | DRV 為低時讀汲極分壓，為高時讀感測電阻 |
| `VCC` | 電氣 | 電源，高於 UVLO 臨界才會動作 |
| `GND` | 電氣 | 接地參考，接在感測電阻的下端 |
| `DRV` | 電氣 | 升壓開關的閘極驅動 |
| `COMP` | 電氣 | 誤差放大器輸出，也是功率需求 |

## 常用參數

- `vOsReg`: Error amplifier reference (預設值: 2.5)
- `gM`: Error amplifier transconductance for small errors (預設值: 0.00005)
- `vCoMax`: COMP voltage of full power demand (VCOMax of equation 8) (預設值: 5)
- `tZcdDrv`: Delay from the zero-current detection to DRV high (預設值: 0.00000017)
- `vOcp1`: First-level over-current threshold on ZCD while DRV is high (預設值: 0.5)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `vccStart` | V | 10.65 | 1 – 34 V | VCC UVLO turn-on threshold | Section 7.5 VCCStart typ 10.65 V (max 11 V), p.7 |
| `vccStop` | V | 8.85 | 500m – 34 V | VCC UVLO turn-off threshold | Section 7.5 VCCStop typ 8.85 V, p.7 |
| `vOsReg` | V | 2.5 | 500m – 5 V | Error amplifier reference | Section 7.5 VOSReg typ 2.5 V, p.7 |
| `gM` | S | 0.00005 | 100n – 10m S | Error amplifier transconductance for small errors | Section 7.5 gM typ 50 µS, p.7 |
| `gMNL` | S | 0.0003 | 100n – 100m S | Error amplifier transconductance beyond dSuThs (incremental) | Section 7.5 gMNL typ 300 µS, p.8 |
| `dSuThs` | V | 0.067 | 1m – 1 V | Error beyond which the large-error gain applies | Section 7.5 DSuThs typ 67 mV, p.8 |
| `iCoMax` | A | 0.00012 | 100n – 10m A | COMP maximum source and sink current | Section 7.5 ICOMin typ -120 µA, ICOMax typ 120 µA, p.8 |
| `vCoClmp` | V | 5.6 | 1 – 10 V | COMP internal high clamp | Section 7.5 VCOClmp typ 5.6 V, p.8 |
| `rCoDisch` | Ω | 5000 | 1 – 1meg Ω | COMP discharge resistance in the stop state | Section 7.5 RCODisch typ 5 kΩ, p.8 |
| `vCoMax` | V | 5 | 500m – 10 V | COMP voltage of full power demand (VCOMax of equation 8) | Section 9.2.2.5.2 equations 98 and 99: 0.0202 = VCOMax·2 % / 4.95 V gives VCOMax = 5.0 V |
| `vBstFall` | V | 0.5 | 0 – 5 V | COMP threshold below which switching halts (burst off) | Section 5 Device Comparison Table VBSTFall 0.5 V (UCC28056, UCC28056C), p.4 |
| `vBstRise` | V | 0.625 | 0 – 5 V | COMP threshold above which switching resumes (burst on) | Section 5 Device Comparison Table VBSTRise 0.625 V (UCC28056, UCC28056C), p.4 |
| `vOvp1Rise` | V | 2.75 | 500m – 6 V | VOSNS over-voltage threshold, rising (switching halts) | Section 5 VOSOvp1Rise typ 2.75 V (UCC28056, B, C), p.4 |
| `vOvp1Fall` | V | 2.675 | 500m – 6 V | VOSNS over-voltage threshold, falling (switching resumes) | Section 5 VOSOvp1Fall typ 2.675 V (UCC28056, B, C), p.4 |
| `vZcBo` | V | 0.3 | 0 – 5 V | Brown-in threshold on the peak of VInSynth | Section 7.5 VZCBoRise typ 0.3 V, p.9 |
| `vOcp1` | V | 0.5 | 10m – 5 V | First-level over-current threshold on ZCD while DRV is high | Section 7.5 VZCOcp1 typ 500 mV, p.9 |
| `tOcp1Blk` | s | 0.00000045 | 0 – 10u s | Over-current blanking from the DRV rising edge | Section 7.5 TOcp1Blk 450 ns, p.9 |
| `tDchVinMin` | s | 0.000000358 | 0 – 10u s | ZCD comparator blanking from the DRV falling edge | Section 7.5 TDCHVinMin typ 358 ns, p.9 |
| `tDchMax0` | s | 0.00025 | 1u – 10m s | Longest off-time without a zero-current detection | Section 7.5 TDCHMax0 250 µs, p.9 |
| `tZcdDrv` | s | 0.00000017 | 0 – 10u s | Delay from the zero-current detection to DRV high | Section 7.5 TZCDR0 typ 170 ns (RDG0, max 235 ns), p.9 |
| `tauSynth` | s | 0.0001 | 100n – 10m s | Averaging time constant of VInSynth | assumption: the data sheet says only that the drain waveform is filtered to its switching-cycle average (section 8.3.2.1); 100 µs is many switching periods and a few degrees of a 100 Hz half-cycle |
| `tPeakHold` | s | 1 | 1m – 100 s | Decay time constant of the line peak detector | assumption: in place of the 12.3 ms THLinMax window (section 7.5, p.8), a peak detector that decays slowly enough not to cross the feed-forward hysteresis within a line cycle |
| `vDrHigh` | V | 13.7 | 1 – 20 V | DRV high-level limit | Section 7.5 VDRHigh typ 13.7 V at VCC = 25 V, p.7 |
| `vDrDrop` | V | 1.05 | 0 – 5 V | DRV high level below VCC when not limited | Section 7.5 VDRHighMin 8 V at VCC = VCCStop + 200 mV (9.05 V), p.7 |
| `rDrH` | Ω | 9.7 | 100m – 10k Ω | DRV pull-up resistance | Section 7.5 RDRH typ 9.7 Ω, p.7 |
| `rDrL` | Ω | 4.6 | 100m – 10k Ω | DRV pull-down resistance | Section 7.5 RDRL typ 4.6 Ω, p.7 |
| `rOff` | Ω | 100000000 | 1k – 1t Ω | Off-state resistance of the internal switches | assumption: large against the COMP network |

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

## 模型

導通時間為 TONMAX0 * GFF * V(COMP) / vCoMax，上限為所選級別的 TONMAX。DRV 為低時，ZCD 的汲極部分以 tauSynth 平均成 VInSynth；經過 tDchVinMin 後，汲極低於 VInSynth 即為零電流偵測，下一次導通在 tZcdDrv 之後開始（若一直沒有偵測，則在 tDchMax0 之後）。VInSynth 的峰值經七個帶遲滯的比較器選出 GFF0 到 GFF7，峰值超過 vZcBo 後才開始切換。誤差放大器送出 gM * (vOsReg - V(VOSNS))，誤差超過 dSuThs 後斜率改為 gMNL，並限制在 iCoMax；COMP 箝位在 0 V 與 vCoClmp 之間，低於 UVLO 時經 rCoDisch 放電。COMP 低於 vBstFall 或 VOSNS 高於 vOvp1Rise 時停止切換；tOcp1Blk 之後 ZCD 高於 vOcp1 會結束該次導通。

## 常見錯誤

- 電感電流歸零時，汲極會與 ZCD 分壓電容以數 MHz 振盪；偵測需要數十奈秒的步長。應用電路使用 25 ns。
- 未模擬輕載的 DCM 操作：模型在突發臨界以上都維持轉態模式，所以輕載時切換頻率會上升，而實際元件會下降。

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

## 規格書與來源

ZCD 分壓、VOSNS 分壓、COMP 補償網路、感測電阻與 DRV 對地電阻是你自己的零件。vccStart、vccStop、vOsReg、gM、gMNL、dSuThs、iCoMax、vCoClmp、rCoDisch、vZcBo、vOcp1、tOcp1Blk、tDchVinMin、tDchMax0、tZcdDrv 與 DRV 準位取自電氣特性，突發與 OVP1 臨界取自元件比較表，vCoMax 取自迴路設計範例（式 98 與式 99）。tauSynth 與 tPeakHold 是假設值。

## 範例

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

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