# 同步升壓控制器（峰值電流模式） (`syncBoostController`)

> 依輸出電壓與電感電流控制同步升壓轉換器的上下兩個開關，並具軟啟動、限流與打嗝保護。

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

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

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

## 何時使用

升壓轉換器使用 LM5122 類的峰值電流模式控制器，並想以自己的功率級與補償觀察斜率補償、軟啟動、逐週期限流與 RES 打嗝計時時使用。要研究自訂的控制律時，改用 PI 控制器與 PWM 產生器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `VIN` | 電氣 | 輸入電壓感測，供斜率補償使用 |
| `UVLO` | 電氣 | 輸入欠壓鎖定，由 VIN 拉分壓接到這裡 |
| `SS` | 電氣 | 軟啟動，接到 GND 的電容決定斜坡時間 |
| `FB` | 電氣 | 回授輸入，輸出分壓接在這裡 |
| `COMP` | 電氣 | 誤差放大器輸出，補償網路接到 FB |
| `SLOPE` | 電氣 | 斜率補償，RSLOPE 接到 GND |
| `RES` | 電氣 | 打嗝計時，電容 CRES 接到 GND |
| `CSP` | 電氣 | 電流感測，分流電阻的輸入側 |
| `CSN` | 電氣 | 電流感測，分流電阻的電感側 |
| `BST` | 電氣 | 上臂驅動電源，自舉電容接到 SW |
| `HO` | 電氣 | 上臂同步整流開關的閘極驅動 |
| `SW` | 電氣 | 切換節點，上臂驅動的回路 |
| `LO` | 電氣 | 下臂主開關的閘極驅動 |
| `VCC` | 電氣 | 閘極驅動電源 |
| `GND` | 電氣 | 所有腳位的接地參考 |

## 常用參數

- `rt`: Oscillator resistor RT; fsw = 9e9 / rt (預設值: 20000)
- `vRef`: Feedback reference voltage (預設值: 1.2)
- `acs`: Current-sense amplifier gain (預設值: 10)
- `vCsLim`: Cycle-by-cycle current limit threshold (CSP - CSN) (預設值: 0.075)
- `kSlope`: Slope constant: the ramp reaches kSlope / (fsw · RSLOPE) · D' in a period (預設值: 6000000000)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `rt` | Ω | 20000 | 5k – 500k Ω | Oscillator resistor RT; fsw = 9e9 / rt | Section 7.3.3 equation 4 RT = 9e9 / fSW, p.17; Section 6.5 fSW typ 450 kHz at RT = 20 kOhm, p.8 |
| `vRef` | V | 1.2 | 100m – 5 V | Feedback reference voltage | Section 6.5 VREF typ 1.2 V (1.188 to 1.212 V), p.8 |
| `a0` | V/V | 10000 | 10 – 1g V/V | Error amplifier DC gain (80 dB) | Section 6.5 AOL typ 80 dB, p.8 |
| `gbw` | Hz | 3000000 | 10k – 1g Hz | Error amplifier gain-bandwidth product | Section 6.5 fBW typ 3 MHz, p.8 |
| `vCompLo` | V | 0.25 | 0 – 5 V | Lowest COMP voltage | Derived from a limit: Section 6.5 COMP VOL max 0.25 V (no typical), p.8 |
| `vCompHi` | V | 3.4 | 1 – 10 V | Highest COMP voltage | Derived from a limit: Section 6.5 COMP VOH min 3.4 V sourcing 2 mA at VCC 12 V (no typical), p.8 |
| `vCompDrop` | V | 1.1 | 0 – 3 V | COMP to PWM comparator voltage drop | Section 6.5 COMP to PWM voltage drop typ 1.1 V, p.8 (Section 7.3.6 p.19 says 1.2 V in the text) |
| `acs` | V/V | 10 | 1 – 100 V/V | Current-sense amplifier gain | Section 6.5 CS amplifier gain typ 10 V/V, p.9 |
| `vCsLim` | V | 0.075 | 1m – 1 V | Cycle-by-cycle current limit threshold (CSP - CSN) | Section 6.5 VCS-TH1 typ 75 mV, p.9; Section 7.3.10 equation 13 IPEAK(CL) = 75 mV / RS, p.21 |
| `vSlope` | V | 1.2 | 100m – 5 V | SLOPE pin voltage | Section 6.5 SLOPE pin voltage typ 1.2 V, p.8 |
| `kSlope` | V·Ω/s | 6000000000 | 1meg – 1t V·Ω/s | Slope constant: the ramp reaches kSlope / (fsw · RSLOPE) · D' in a period | Section 7.3.4 equation 5 VSLOPE = 6e9 / (fSW · RSLOPE) · D', D' = VIN / VOUT, p.17 |
| `tOffMin` | s | 0.00000033 | 0 – 10u s | Forced LO off-time at the end of every period | Section 6.5 forced LO off-time typ 330 ns (VCC 5.5 V; 560 ns at 4.5 V), p.8 |
| `tOnMin` | s | 0.00000015 | 0 – 10u s | Minimum LO on-time (the current comparators are blanked for it) | Section 6.5 minimum LO on-time typ 150 ns (RSLOPE 20 kOhm; 300 ns at 200 kOhm), p.8 |
| `iSs` | A | 0.00001 | 100n – 1m A | Soft-start charging current | Section 6.5 ISS typ 10 uA, p.8 |
| `rSsDis` | Ω | 13 | 100m – 10k Ω | Soft-start discharge resistance | Section 6.5 SS discharge switch typ 13 Ohm, p.8 |
| `vUvlo` | V | 1.2 | 100m – 10 V | UVLO threshold above which switching is enabled | Section 6.5 UVLO threshold typ 1.2 V (rising), p.7 |
| `iUvloHys` | A | 0.00001 | 0 – 1m A | Hysteresis current out of UVLO while enabled | Section 6.5 UVLO hysteresis current typ 10 uA, p.7 |
| `vccOn` | V | 4 | 1 – 20 V | VCC undervoltage threshold, rising | Section 6.5 VCC UV threshold typ 4.0 V (rising), p.7 |
| `vccHys` | V | 0.385 | 0 – 5 V | VCC undervoltage hysteresis | Section 6.5 VCC UV hysteresis typ 0.385 V, p.7 |
| `iResLim` | A | 0.00003 | 100n – 1m A | Current into RES for the rest of a current-limited period | Section 6.5 RES source current typ 30 uA, p.9; Section 7.4.3, p.24 |
| `iResSink` | A | 0.000005 | 0 – 1m A | Current out of RES in a period without current limit | Section 6.5 RES sink current typ 5 uA, p.9; Section 7.4.3, p.24 |
| `vResTrip` | V | 1.2 | 100m – 10 V | RES voltage that starts a hiccup | Section 6.5 hiccup enable threshold typ 1.2 V, p.9 |
| `vResLo` | V | 2.15 | 100m – 10 V | Lower RES threshold of the hiccup off-time | Section 6.5 RES lower threshold typ 2.15 V, p.9; Section 7.4.3, p.24 |
| `vResHi` | V | 4.2 | 200m – 20 V | Upper RES threshold of the hiccup off-time | Section 6.5 RES upper threshold typ 4.2 V, p.9; Section 7.4.3, p.24 |
| `iResUp` | A | 0.00001 | 100n – 1m A | RES charging current in the hiccup off-time | Section 6.5 RES charge current typ 10 uA (hiccup off-time), p.9 |
| `iResDown` | A | 0.000005 | 100n – 1m A | RES discharging current in the hiccup off-time | Section 6.5 RES discharge current typ 5 uA (hiccup off-time), p.9 |
| `nResCycles` | — | 8 | 1 – 1k | RES ramps between vResLo and vResHi in a hiccup off-time | Section 7.4.3: RES ramps between 2.15 V and 4.2 V eight times, then SS is released, p.24 |
| `rResDis` | Ω | 40 | 100m – 10k Ω | RES discharge resistance at the end of a hiccup | Section 6.5 RES discharge switch typ 40 Ohm, p.9 |
| `tDead` | s | 0.00000008 | 0 – 1u s | Dead time between one gate turning off and the other turning on | Section 6.5 tDLH and tDHL typ 80 ns, p.10 (adaptive on the part, a fixed delay here) |
| `rHoUp` | Ω | 1.5 | 100m – 1k Ω | HO pull-up resistance (to BST) | Derived: Section 6.5 HO high-state voltage drop typ 0.15 V at -100 mA, p.9 |
| `rHoDown` | Ω | 1 | 100m – 1k Ω | HO pull-down resistance (to SW) | Derived: Section 6.5 HO low-state voltage drop typ 0.1 V at 100 mA, p.9 |
| `rLoUp` | Ω | 1.5 | 100m – 1k Ω | LO pull-up resistance (to VCC) | Derived: Section 6.5 LO high-state voltage drop typ 0.15 V at -100 mA, p.10 |
| `rLoDown` | Ω | 1 | 100m – 1k Ω | LO pull-down resistance (to GND) | Derived: Section 6.5 LO low-state voltage drop typ 0.1 V at 100 mA, p.10 |
| `rOff` | Ω | 1000000 | 1k – 1t Ω | Off-state resistance of the gate driver switches (the SS and RES switches use 10 GOhm) | assumption: the solver's default switch off resistance |

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

## 模型

振盪器頻率為 fsw = 9e9 / rt。LO 在每個時脈導通，並在週期結束前強制關斷 tOffMin。遮蔽時間 tOnMin 之後，若 acs 乘以 V(CSP) - V(CSN) 再加上斜率斜坡超過 COMP - vCompDrop，或 V(CSP) - V(CSN) 超過 vCsLim，LO 就關斷。SLOPE 腳保持在 vSlope，SLOPE 到 GND 的電阻決定斜坡：每秒上升 kSlope / RSLOPE 乘以 D' = VIN / VOUT，VOUT 在強制關斷時間內從 SW 讀取。誤差放大器是單極點（a0、gbw），輸入為 vRef 與 V(SS) 中較低者減去 FB，輸出限制在 vCompLo 到 vCompHi。UVLO 高於 vUvlo 且 VCC 高於 vccOn 時，iSs 對 SS 充電，並有 iUvloHys 從 UVLO 流出；否則 SS 經 rSsDis 放電。被限流結束的週期中 iResLim 流入 RES，其他週期則有 iResSink 流出。RES 到達 vResTrip 時兩個閘極都關閉、SS 放電，RES 以 iResUp 上升到 vResHi、再以 iResDown 下降到 vResLo，重複 nResCycles 次，接著經 rResDis 放電並重新軟啟動。HO 與 LO 互補，各自在另一個關斷後經過 tDead 才導通。

## 常見錯誤

- SLOPE 沒接電阻就沒有斜率補償，工作比超過 50 % 時電流迴路會出現長短脈波交替。RSLOPE 要讓斜坡至少是感測到的電感下降斜率 acs * RS * (VOUT - VIN) / L 的一半。
- 軟啟動期間限流同樣有效：對輸出電容充電需要多 COUT * VOUT / tSs 的輸出電流，換算到輸入要再乘以 VOUT / VIN。只依滿載設定的限流值會讓轉換器在啟動時就進入打嗝。
- 打嗝關閉時間約為 CRES * (3 V / 10 uA + 8 * 2.05 V / 5 uA + 7 * 2.05 V / 10 uA)，1 nF 就約 5 ms。模擬時間較短時請用較小的 CRES。
- VCC 與 BST 必須由外部供電，因為內部穩壓器與電荷泵都沒有建模。升壓轉換器無法限制輸出短路：電流會經同步整流開關的本體二極體流過，所以限流與打嗝只對轉換器仍在升壓的過載有效。

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

## 規格書與來源

rt 是你自己的計時電阻，RSLOPE 與 CRES 是你接在 SLOPE 與 RES 腳的零件。vRef、a0、gbw、vCompDrop、acs、vCsLim、vSlope、tOffMin、tOnMin、iSs、rSsDis、vUvlo、iUvloHys、vccOn、vccHys、RES 的電流與臨界、rResDis 與 tDead 取自電氣特性，kSlope 取自斜率補償公式，nResCycles 取自打嗝保護的說明。四個驅動電阻是驅動壓降除以其測試電流。vCompLo 與 vCompHi 是規格上下限，因為規格書沒有給 COMP 的典型準位。

## 範例

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

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