# 固定導通時間調變器 (`cotModulator`)

> 每當回授低於參考電壓時，啟動一段固定或自適應的導通時間。

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

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

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

## 何時使用

用於漣波式（COT、D-CAP 類）控制器的架構階段，搭配真實的輸出電容觀察頻率、谷值調節的直流偏移與穩定所需的 ESR 條件。不需要固定導通時間的開關式控制改用遲滯調變器。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `FB` | 電氣 | 回授，含漣波的分壓輸出 |
| `REF` | 電氣 | 參考電壓 |
| `EN` | 訊號 | 致能訊號，高準位才切換 |
| `GATE` | 訊號 | 開關命令，0 或 1 |
| `GND` | 電氣 | FB、REF、VIN 與 VOUT 的參考點 |
| `VIN` | 電氣 | 輸入電壓，自適應導通時間時讀取 |
| `VOUT` | 電氣 | 輸出電壓，adaptive 為 1 時讀取 |

## 常用參數

- `tOn`: On-time of every pulse; in a buck fsw = Vout/(Vin·tOn) (預設值: 0.0000005)
- `tOffMin`: Minimum off-time between pulses (sets the highest duty, tOn/(tOn + tOffMin)) (預設值: 0.0000001)
- `adaptive`: On-time: 0 = tOn fixed, 1 = kOn·V(VOUT)/V(VIN) + tOnAdd, 2 = kOn/V(VIN) + tOnAdd (預設值: 0)
- `kOn`: Adaptive on-time constant: with adaptive = 1 in s (a buck switches at 1/kOn), with adaptive = 2 in V·s (a buck switches at Vout/kOn) (預設值: 0.000002)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 | 規格書來源 |
|---|---|---|---|---|---|
| `tOn` | s | 0.0000005 | 1n – 10m s | On-time of every pulse; in a buck fsw = Vout/(Vin·tOn) | typical, user must set |
| `tOffMin` | s | 0.0000001 | 1n – 10m s | Minimum off-time between pulses (sets the highest duty, tOn/(tOn + tOffMin)) | typical, user must set |
| `adaptive` | — | 0 | 0 – 2 | On-time: 0 = tOn fixed, 1 = kOn·V(VOUT)/V(VIN) + tOnAdd, 2 = kOn/V(VIN) + tOnAdd | typical, user must set |
| `kOn` | s | 0.000002 | 1n – 1 s | Adaptive on-time constant: with adaptive = 1 in s (a buck switches at 1/kOn), with adaptive = 2 in V·s (a buck switches at Vout/kOn) | typical, user must set |
| `tOnAdd` | s | 0 | 0 – 1m s | Time added to every adaptive on-time (make up for a driver's dead time or delay) | typical, user must set |
| `tOnMin` | s | 0.00000005 | 1n – 10m s | Shortest adaptive on-time (it holds at start-up, while V(VOUT) is near zero) | typical, user must set |

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

## 模型

當 V(FB) 低於 V(REF)、EN 為高、且距上一個脈波結束已過 tOffMin 時，啟動長度為 tOn 的脈波。回授的谷值被維持在參考電壓（Redl 與 Sun，IEEE TPEL 2009）。降壓轉換器由伏秒平衡得 fsw = Vout/(Vin·tOn)。回授取自輸出電容時，ESR·C > tOn/2 才穩定（Li 與 Lee，IEEE TCAS-I 2010）；陶瓷電容需要漣波注入。adaptive = 1 時每段導通時間為 kOn·V(VOUT)/V(VIN) + tOnAdd，於脈波開始時讀取且不短於 tOnMin；以 tOnAdd 補上驅動器的死區時間後，降壓轉換器在任何輸入下都以 1/kOn 切換。adaptive = 2 使用 kOn/V(VIN) + tOnAdd，得 fsw = Vout/kOn。

## 常見錯誤

- 預設值是典型值，使用者必須自行設定。依頻率設定 tOn = Vout/(Vin·fsw)，並注意驅動器的死區時間會縮短切換節點看到的導通時間。
- 使用低 ESR 的陶瓷電容時，回授漣波落後電感電流，脈波會擠在一起。請確認 ESR·C > tOn/2，或加上漣波注入網路：從切換節點接一個電阻、再接一個電容到輸出，跨在電感兩端，並經一個小電容耦合到 FB（應用電路 cotBuck 設 rippleInjection 為 1）。

Problems 規則: `step.too_large`, `ground.missing`

## 規格書與來源

這是架構方塊，數值來自你的設計。tOn 是導通時間，tOffMin 是最短關斷時間。之後模擬實際 COT 控制器時，請取其規格書中的導通時間公式（常見為 tOn = k·RON/VIN）與最短關斷時間。

## 範例

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

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