# N 通道 MOSFET（Level 1） (`nmos`)

> 電流隨閘極電壓變化的 N 通道 MOSFET。

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

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

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

## 何時使用

用於閘極電壓有意義的場合，例如線性穩壓器、放大器與 SPICE 網表。由邏輯訊號驅動的轉換器橋臂用 MOSFET 開關較快也較簡單。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `d` | 電氣 | 汲極；電流由 d 流向 s |
| `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 |

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

**適用於:** 線性穩壓器 · 放大級 · 匯入的 SPICE 網表

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

## 公式

| 公式 | 方程式 | 出處 |
|---|---|---|
| 轉導參數 | β = kp·W/L | Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), ch. 5 (MOSFET current-voltage characteristics) |
| 飽和區汲極電流 | Id = ½·β·(Vgs − vto)²·(1 + λ·Vds) | Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), ch. 5 (saturation region and channel-length modulation) |
| 小 Vds 時的導通電阻 | rDS = 1/(β·(Vgs − 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`
- `vgs`: 閘源極電壓 = 5 V
- `vds`: 汲源極電壓 = 10 V

輸出:

- `beta`: 轉導參數 = `kp*w/l` A/V²
- `idsat`: 飽和區汲極電流 = `0.5*beta*(vgs - vto)^2*(1 + lambda*vds)` A
- `rds`: 小 Vds 時的導通電阻 = `1/(beta*(vgs - vto))` Ω

## 模型邏輯

- 在 level 1，beta = kp·w/l、vov = vgs - vto；低於臨界電壓時沒有電流。
- 三極區（vds 小於 vov）id = beta·(vov·vds - vds²/2)·(1 + lambda·vds)，飽和區 id = beta/2·vov²·(1 + lambda·vds)；vds 為負時汲極與源極對調。
- 求解器在工作點把定律線性化，並在每個時間步內反覆計算，直到工作點不再移動。
- level 1 沒有體二極體與電容；level 3 與 vdmos 加入短通道效應、體二極體與電容。

## 模型

Shichman-Hodges Level 1 模型，beta = kp * w / l，vov = vgs - vto。低於臨界電壓時沒有電流。三極區（vds < vov）id = beta * (vov * vds - vds^2 / 2) * (1 + lambda * vds)；飽和區 id = beta / 2 * vov^2 * (1 + lambda * vds)。vds 為負時汲極與源極對調角色。求解器在工作點線性化此定律，並在每一步內反覆計算，直到工作點不再移動。不模擬基體效應、電容與體二極體。由規格書擬合 beta 時，在飽和區取一點，beta = 2 * ID / (VGS - VTO)^2，lambda 取輸出曲線的斜率除以其電流。

## 常見錯誤

- 預設的 kp 加上 w 等於 l，是 SPICE 的小訊號預設值。功率 MOSFET 需要大得多的 kp、w、l 組合，否則幾乎不導通。
- 閘極沒有其他連接時浮接於 0 V，元件保持截止。這裡沒有體二極體，電路需要時請自行從 s 到 d 加一個二極體。

## 規格書與來源

vto 取規格書的閘極臨界電壓。kp、w 與 l 由轉移曲線在飽和區的一點擬合，lambda 取輸出曲線的斜率。

## 範例

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

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