# 同步降壓控制器（電壓模式） (`syncBuckController`)

> 依輸出電壓控制同步降壓轉換器的上下兩個開關，並具軟啟動與限流。

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

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

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

## 何時使用

降壓轉換器使用 LM5145 類的電壓模式控制器，並想以自己的功率級與第三型補償觀察軟啟動、PGOOD、谷值限流與打嗝保護時使用。要研究自訂的控制律時，改用 PI 控制器與 PWM 產生器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `VIN` | 電氣 | 輸入電壓感測，供前饋斜坡使用 |
| `EN` | 電氣 | 致能與輸入欠壓鎖定，由 VIN 拉分壓接到這裡 |
| `SS` | 電氣 | 軟啟動，接到 GND 的電容決定斜坡時間 |
| `FB` | 電氣 | 回授輸入，輸出分壓接在這裡 |
| `COMP` | 電氣 | 誤差放大器輸出，補償網路接到 FB |
| `PGOOD` | 電氣 | 電源良好輸出，開汲極，需要上拉電阻 |
| `ILIM` | 電氣 | 谷值限流，R_ILIM 接到 SW |
| `BST` | 電氣 | 上臂驅動電源，自舉電容接到 SW |
| `HO` | 電氣 | 上臂閘極驅動 |
| `SW` | 電氣 | 切換節點，上臂驅動的回路 |
| `LO` | 電氣 | 下臂閘極驅動 |
| `VCC` | 電氣 | 下臂驅動電源 |
| `GND` | 電氣 | 所有腳位的接地參考 |

## 常用參數

- `rt`: Oscillator resistor RT; fsw = 1 / (rt · 99.63 pF + 37 ns) (預設值: 25000)
- `vRef`: Feedback reference voltage (預設值: 0.8)
- `kff`: PWM feed-forward gain VIN / VRAMP (預設值: 15)
- `iSs`: Soft-start charging current (預設值: 0.00001)
- `iLim`: Current out of ILIM (RDS(on) sensing; 100 uA for a shunt) (預設值: 0.0002)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `rt` | Ω | 25000 | 5k – 250k Ω | Oscillator resistor RT; fsw = 1 / (rt · 99.63 pF + 37 ns) | Section 7.5 FSW1..FSW3 typ: RT = 100 kOhm 100 kHz, 25 kOhm 400 kHz, 12.5 kOhm 780 kHz, p.9; the equation is a fit to them |
| `vRef` | V | 0.8 | 100m – 5 V | Feedback reference voltage | Section 7.5 VREF typ 800 mV (792 to 808 mV), p.8 |
| `kff` | V/V | 15 | 1 – 100 V/V | PWM feed-forward gain VIN / VRAMP | Section 7.5 kFF typ 15 V/V (6 V to 75 V), p.9 |
| `vValley` | V | 0.3 | 0 – 2 V | Ramp valley voltage: COMP below it gives 0 % duty | Section 7.5 VRAMP(min) typ 300 mV (COMP at 0 % duty cycle), p.9 |
| `tOffMin` | s | 0.00000014 | 0 – 10u s | Minimum off-time of HO in every period | Section 7.5 tOFF(MIN) typ 140 ns (VBST - VSW = 7 V, HO 50 % to 50 %), p.9 |
| `a0` | V/V | 50119 | 10 – 1g V/V | Error amplifier DC gain (94 dB) | Section 7.5 AVOL typ 94 dB, p.8 |
| `gbw` | Hz | 6500000 | 10k – 1g Hz | Error amplifier gain-bandwidth product | Section 7.5 GBW typ 6.5 MHz, p.8 |
| `vCompLo` | V | 0 | 0 – 5 V | Lowest COMP voltage | assumption: Section 7.5 gives VCOMP-OL max 0.3 V sinking 1 mA and no typical, p.8; ground |
| `vCompHi` | V | 5 | 1 – 10 V | Highest COMP voltage (full duty needs vValley + VIN / kff below it) | Section 7.5 VCOMP-OH typ 5 V (VFB = 0 V, sourcing 1 mA), p.8 |
| `iSs` | A | 0.00001 | 100n – 1m A | Soft-start charging current | Section 7.5 ISS typ 10 uA (VSS/TRK = 0 V), p.8 |
| `rSsDis` | Ω | 11 | 100m – 10k Ω | Soft-start discharge resistance | Section 7.5 RSS typ 11 Ohm, p.8 |
| `vEn` | V | 1.2 | 100m – 10 V | EN threshold above which switching is enabled | Section 7.5 VEN typ 1.2 V (EN/UVLO rising), p.8 |
| `iEnHys` | A | 0.00001 | 0 – 1m A | Hysteresis current out of EN while enabled | Section 7.5 IEN-HYS typ 10 uA, p.8 |
| `iLim` | A | 0.0002 | 1u – 10m A | Current out of ILIM (RDS(on) sensing; 100 uA for a shunt) | Section 7.5 IRDSON typ 200 uA (180 to 220 uA at 25 C; IRS 100 uA in RSENSE mode), p.9 |
| `vIlimOff` | V | -0.002 | -100m – 100m V | ILIM comparator threshold | Section 7.5 VILIM-TH typ -2 mV (-8 to 3.5 mV), p.9 |
| `nHiccup` | — | 128 | 1 – 4.1k | Consecutive current-limited periods before a hiccup | Section 7.5 CHICC-DEL 128 cycles, p.9; Section 8.3.11: 128 continuous clock cycles, p.25 |
| `nHiccupReset` | — | 4 | 1 – 4.1k | Clean periods in a row that restart the hiccup count | assumption: Section 8.3.11 counts 128 continuous clock cycles of overcurrent, p.25, but in a hard short the model skips only every other period, so up to 3 unskipped periods between skips still count as one overcurrent run (the LM5143 data sheet rule) |
| `nHiccupOff` | — | 8192 | 1 – 1meg | Periods without switching in a hiccup | Section 7.5 CHICCUP 8192 cycles, p.9 |
| `pgUvRise` | — | 0.94 | 500m – 1 | PGOOD lower threshold, FB rising, as a fraction of vRef | Section 7.5 PGLTH typ 92 % (FB falling) plus PGHYS_L 2 %, p.8 |
| `pgUvFall` | — | 0.92 | 500m – 1 | PGOOD lower threshold, FB falling | Section 7.5 PGLTH typ 92 % (90 to 94 %), p.8 |
| `pgOvRise` | — | 1.08 | 1 – 1.5 | PGOOD upper threshold, FB rising | Section 7.5 PGUTH typ 108 % (106 to 110 %), p.8 |
| `pgOvFall` | — | 1.05 | 1 – 1.5 | PGOOD upper threshold, FB falling | Section 7.5 PGUTH typ 108 % minus PGHYS_U 3 %, p.8 |
| `tPgFilter` | s | 0.000025 | 0 – 10m s | PGOOD rising and falling filter time | Section 7.5 TPG-RISE and TPG-FALL typ 25 us, p.8 |
| `rPgood` | Ω | 75 | 100m – 100k Ω | PGOOD pull-down resistance | Derived from a limit: Section 7.5 VPG-OL max 150 mV at 2 mA (no typical), p.8 |
| `tDead` | s | 0.000000014 | 0 – 1u s | Dead time between one gate turning off and the other turning on | Section 7.6 THO-DT and TLO-DT typ 14 ns, p.10 (adaptive on the part, a fixed delay here) |
| `rHoUp` | Ω | 1.5 | 100m – 1k Ω | HO pull-up resistance (to BST) | Section 7.5 RHO-UP typ 1.5 Ohm (VBST - VSW = 7 V, 100 mA), p.10 |
| `rHoDown` | Ω | 0.9 | 100m – 1k Ω | HO pull-down resistance (to SW) | Section 7.5 RHO-DOWN typ 0.9 Ohm (100 mA), p.10 |
| `rLoUp` | Ω | 1.5 | 100m – 1k Ω | LO pull-up resistance (to VCC) | Section 7.5 RLO-UP typ 1.5 Ohm (100 mA), p.10 |
| `rLoDown` | Ω | 0.9 | 100m – 1k Ω | LO pull-down resistance (to GND) | Section 7.5 RLO-DOWN typ 0.9 Ohm (100 mA), p.10 |
| `rOff` | Ω | 1000000 | 1k – 1t Ω | Off-state resistance of the internal switches | assumption: the solver's default switch off resistance |

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

## 模型

振盪器頻率為 fsw = 1 / (rt * 99.63 pF + 37 ns)，由規格書的頻率列擬合而得。每個週期的斜坡從 vValley 起，上升 V(VIN) / kff，因此不論輸入電壓多少，COMP 到切換節點的增益都是 kff。COMP 高於斜坡時 HO 導通，下一個時脈前至少關斷 tOffMin；LO 與 HO 互補，各自在另一個關斷後經過 tDead 才導通。誤差放大器是單極點（a0、gbw），輸入為 vRef 與 V(SS) 中較低者減去 FB，輸出限制在 vCompLo 到 vCompHi。EN 高於 vEn 時，iSs 對 SS 充電，並有 iEnHys 從 EN 流出；否則 SS 經 rSsDis 放電。iLim 從 ILIM 流出，若時脈到來時 LO 導通且 V(ILIM) 低於 vIlimOff，該週期的 HO 脈波就被略過。累計 nHiccup 個被略過的週期後（連續 nHiccupReset 個正常週期會重新計數），兩個閘極都關閉，SS 保持為零 nHiccupOff 個週期。FB 不在 pgUvRise 到 pgOvRise 乘以 vRef 的範圍內時 PGOOD 拉低，具遲滯與濾波時間 tPgFilter。

## 常見錯誤

- 頻率由 rt 決定，沒有另外的頻率參數。預設 25 kOhm 時約 396 kHz，步長請用週期的百分之幾以下（預設約 13 ns），否則誤差放大器與死區時間會差一步。
- ILIM 經 R_ILIM 讀取下臂 MOSFET 的導通電阻，所以 R_ILIM = 谷值限流乘以 RDS(on) 再除以 iLim。ILIM 懸空或接地會使限流失效，短路時電流就會失控。
- 打嗝關閉時間為 8192 個週期，預設頻率下約 21 ms。模擬時間較短時，把 nHiccupOff 調小才看得到重新啟動。
- VCC 與 BST 必須由外部供電，因為內部穩壓器與自舉二極體都沒有建模。少了它們，HO 與 LO 就沒有高準位。

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

## 規格書與來源

rt 是你自己的計時電阻。vRef、kff、vValley、tOffMin、a0、gbw、vCompHi、iSs、rSsDis、vEn、iEnHys、iLim、vIlimOff、nHiccup、nHiccupOff、PGOOD 的臨界與濾波時間，以及四個驅動電阻（RHO-UP、RHO-DOWN、RLO-UP、RLO-DOWN）取自電氣特性，tDead 取自切換特性。rPgood 是 PGOOD 低準位電壓的最大值除以其測試電流。nHiccupReset（4）與 vCompLo 是假設值：規格書以連續 128 個過電流週期計數，而模型在短路時只每隔一個週期跳過一次；COMP 低準位規格書只給最大值。

## 範例

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

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