# P 通道 MOSFET（Level 1） (`pmos`)

> 電壓與電流全部反向的 N 通道 MOSFET。

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

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

**分類:** 開關元件 · **種類:** `{"kind":"pmos"}`

## 何時使用

用於高側開關、電流鏡，以及與 N 通道 MOSFET 搭配的互補級。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `d` | 電氣 | 汲極；導通時電流由 s 流向 d |
| `g` | 電氣 | 閘極；不取電流 |
| `s` | 電氣 | 源極；參考點，通常接電源 |

## 常用參數

- `vto`: Gate voltage where it starts to conduct (預設值: -1)
- `kp`: How strongly the gate controls current (預設值: 20u)
- `w`: Width of the channel (預設值: 100u)
- `l`: Length of the channel (預設值: 100u)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
| `vto` | V | -1 |  | Gate voltage where it starts to conduct |
| `kp` | A/V² | 20u |  | How strongly the gate controls current |
| `w` | m | 100u |  | Width of the channel |
| `l` | m | 100u |  | Length of the channel |
| `lambda` | 1/V | 0 |  | How much current grows with drain voltage |
| `level` | — | 1 |  | MOSFET model; `1` is the level-1 square law (vto, kp, w, l, lambda), `2` the SPICE level-2 Grove–Frohman model, `3` the SPICE level-3 short-channel model, `vdmos` the VDMOS power MOSFET of vendor SPICE models, with its capacitances and body diode |
| `theta` | 1/V | 0 |  | How much the gate voltage lowers the mobility; VDMOS level and level 3 |
| `mtriode` | — | 1 |  | Conductance multiplier in the triode region; VDMOS level only |
| `ksubthres` | V | 0.1 |  | Slope of the subthreshold current below vto; 0 for none; VDMOS level only |
| `rd` | Ω | 0 |  | Resistance in series with the drain; VDMOS level and levels 2 and 3 |
| `rs` | Ω | 0 |  | Resistance in series with the source; VDMOS level and levels 2 and 3 |
| `rg` | Ω | 0 |  | Resistance in series with the gate; VDMOS level only |
| `rds` | Ω | 選填（預設關閉） |  | Drain-source shunt resistance; VDMOS level only |
| `cgs` | F | 0 |  | Gate-source capacitance, constant; VDMOS level only |
| `cgdmax` | F | 0 |  | Largest gate-drain capacitance; with the gate above the drain; VDMOS level only |
| `cgdmin` | F | 0 |  | Smallest gate-drain capacitance; with the drain far above the gate; VDMOS level only |
| `a` | 1/V | 1 |  | Slope of the gate-drain capacitance; how fast it falls from cgdmax to cgdmin with the drain-gate voltage; VDMOS level only |
| `is` | A | 10f |  | Saturation current of the body diode; VDMOS level and levels 2 and 3 |
| `n` | — | 1 |  | Ideality factor of the body diode; VDMOS level only |
| `rb` | Ω | 0 |  | Resistance in series with the body diode; VDMOS level only |
| `cjo` | F | 0 |  | Body diode junction capacitance at zero volts; the drain-source capacitance; VDMOS level and levels 2 and 3 |
| `vj` | V | 0.8 |  | Body diode junction potential; at level 2 also the bound on the shortest channel; VDMOS level and levels 2 and 3 |
| `m` | — | 0.5 |  | Body diode grading coefficient; how the junction capacitance falls with the reverse voltage; VDMOS level and levels 2 and 3 |
| `fc` | — | 0.5 |  | Forward-bias coefficient of the junction capacitance; above fc·vj it continues as a straight line; VDMOS level and levels 2 and 3 |
| `tt` | s | 0 |  | Body diode transit time; the stored charge is tt times the diode current; VDMOS level only |
| `bv` | V | 選填（預設關閉） |  | Drain-source breakdown voltage of the body diode; past it the reverse current grows exponentially, clamping the drain in avalanche; VDMOS level only |
| `ibv` | A | 100p |  | Body diode current at the breakdown voltage bv; VDMOS level only |
| `nbv` | — | 1 |  | Emission coefficient of the body diode breakdown; the current grows e-fold every nbv·k·T/q past bv; VDMOS level only |
| `tnom` | °C | 27 |  | Temperature the model's values belong to; the VDMOS level and levels 2 and 3 are evaluated there |
| `uo` | m²/V·s | 0.06 |  | Surface mobility; gives kp with tox when kp is unset; levels 2 and 3 |
| `tox` | m | 選填（預設關閉） |  | Gate oxide thickness; with it the Meyer gate capacitances are modelled; levels 2 and 3 |
| `nsub` | 1/m³ | 0 |  | Substrate doping; sets the depletion width of the short-channel and channel-length effects; levels 2 and 3 |
| `gamma` | √V | 選填（預設關閉） |  | Body-effect coefficient; from nsub and tox when unset; levels 2 and 3 |
| `phi` | V | 選填（預設關閉） |  | Surface potential; from nsub when unset, else 0.6 V; levels 2 and 3 |
| `eta` | — | 0 |  | Drain-induced threshold lowering; level 3 only |
| `vmax` | m/s | 0 |  | Saturation velocity of the carriers; 0 for none; levels 2 and 3 |
| `kappa` | — | 0.2 |  | Saturation field factor of the channel-length modulation; level 3 only |
| `xj` | m | 0 |  | Metallurgical junction depth, for the short-channel threshold; levels 2 and 3 |
| `ld` | m | 0 |  | Lateral diffusion; the channel is l − 2·ld long; levels 2 and 3 |
| `wd` | m | 0 |  | Width narrowing; the channel is w − 2·wd wide; level 3 only |
| `delta` | — | 0 |  | Width effect on the threshold; levels 2 and 3 |
| `nfs` | 1/m² | 0 |  | Fast surface state density; 0 for no subthreshold current; levels 2 and 3 |
| `cgso` | F/m | 0 |  | Gate-source overlap capacitance per metre of width; levels 2 and 3 |
| `cgdo` | F/m | 0 |  | Gate-drain overlap capacitance per metre of width; levels 2 and 3 |
| `cgbo` | F/m | 0 |  | Gate-body overlap capacitance per metre of length; levels 2 and 3 |
| `ucrit` | V/m | 1e6 |  | Critical field of the mobility degradation; level 2 only |
| `uexp` | — | 0 |  | Exponent of the mobility degradation; 0 for none; level 2 only |
| `neff` | — | 1 |  | Channel charge coefficient of the velocity-saturated channel-length modulation; level 2 only |

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

**適用於:** 高側開關 · 電流鏡 · 與 N 通道 MOSFET 搭配的互補級

**不適用於:** 低側級 → [`nmos`](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/switches/nmos/) · 由邏輯訊號驅動的轉換器橋臂 → [`mosfet`](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/switches/mosfet/)

## 公式

| 公式 | 方程式 | 出處 |
|---|---|---|
| 轉導參數 | β = kp·W/L | Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), ch. 5 (the p-channel MOSFET) |
| 飽和區汲極電流 | Id = ½·β·(Vsg − abs(vto))²·(1 + λ·Vsd) | Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), ch. 5 (the p-channel MOSFET) |
| 小 Vsd 時的導通電阻 | rDS = 1/(β·(Vsg − abs(vto))) | Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), ch. 5 (the MOSFET as a voltage-controlled resistance) |

## 快速驗算

輸入:

- `kp`: 製程轉導參數 = 20u A/V², `kp`
- `w`: 通道寬度 = 100u m, `w`
- `l`: 通道長度 = 10u m, `l`
- `vto`: 臨界電壓（負值） = -1 V, `vto`
- `lambda`: 通道長度調變 = 20m 1/V, `lambda`
- `vsg`: 源閘極電壓 = 5 V
- `vsd`: 源汲極電壓 = 10 V

輸出:

- `beta`: 轉導參數 = `kp*w/l` A/V²
- `idsat`: 飽和區電流（s 到 d） = `0.5*beta*(vsg - abs(vto))^2*(1 + lambda*vsd)` A
- `rds`: 小 Vsd 時的導通電阻 = `1/(beta*(vsg - abs(vto)))` Ω

## 模型邏輯

- 它是 N 通道元件的 level 1 定律，但 vgs、vds 與電流取負號；beta = kp·w/l。
- vgs 低於 vto 時通道導通，增強型元件的 vto 為負值；正的 vto 在 vgs = 0 時就會導通。
- 求解器在工作點把定律線性化，並在每個時間步內反覆計算，直到工作點不再移動。
- i(name) 是由 d 到 s 的電流，導通時為負值；level 1 沒有體二極體與電容。

## 模型

與 N 通道相同的 Level 1 定律，但 vgs、vds 與電流取負號。vgs 低於負值的 vto 時通道導通，beta = kp * w / l。i(name) 是由 d 到 s 的電流，因此導通時為負值。

## 常見錯誤

- P 通道增強型元件的 vto 為負值，與 SPICE 相同。正的 vto 會變成空乏型元件，在 vgs = 0 時就會導通。
- 這裡沒有體二極體，所以汲極被電感拉到高於源極的高側開關，需要另外加二極體。

## 規格書與來源

vto 取規格書的閘極臨界電壓，保留正負號。kp、w 與 l 由轉移曲線在飽和區的一點擬合，以絕對值計算。

## 範例

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

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