# Zener Diode (`zener`)

> A diode that holds its reverse voltage near the Zener voltage.

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

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/switches/zener/)

**Group:** Switches · **Kind:** `{"kind":"zener"}`

## When to use it

Use it for voltage references, gate clamps and small shunt regulators. For surge currents of amperes, use TVS Diode.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `a` | electrical | Anode; forward current flows from a to k |
| `k` | electrical | Cathode; it breaks down when k is vz above a |

## Common parameters

- `vz`: Zener voltage at the test current (Default: 24)
- `zz`: Dynamic resistance above the knee (Default: 25)
- `izm`: Largest regulator current; a peak above it raises a warning (Default: 38m)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `vz` | V | 24 |  | Zener voltage at the test current |
| `izt` | A | 10.5m |  | Test current of the Zener voltage |
| `vr` | V | 18.2 |  | Reverse voltage where the leakage is given |
| `ir` | A | 5u |  | Leakage current at that reverse voltage |
| `zz` | Ω | 25 |  | Dynamic resistance above the knee |
| `vf` | V | 1.2 |  | Forward voltage at the forward test current |
| `ifw` | A | 0.2 |  | Forward test current |
| `izm` | A | 38m |  | Largest regulator current; a peak above it raises a warning |

_Parameter descriptions are in English in both languages._

**Use for:** Voltage references · Gate clamps · Small shunt regulators

**Not for:** Surge currents of amperes → [`tvs`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/switches/tvs/) · Precision references → [`voltageReference`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/ic/voltageReference/)

## Formulas

| Formula | Equation | Source |
|---|---|---|
| Zener current through a series resistor | Iz = (Vin − vz + zz·izt)/(Rs + zz) | Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), §4.4 (Zener diode model and shunt regulator) |
| Zener voltage at that current | V = vz + zz·(Iz − izt) | Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), §4.4 (Zener diode model) |
| Zener dissipation | P = V·Iz | Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), §4.4 |

## Quick check

Inputs:

- `vin`: Supply voltage = 30 V
- `rs`: Series resistance = 470 Ω
- `vz`: Zener voltage at izt = 24 V, `vz`
- `zz`: Dynamic resistance = 25 Ω, `zz`
- `izt`: Test current = 10.5m A, `izt`

Outputs:

- `iz`: Zener current = `(vin - vz + zz*izt)/(rs + zz)` A
- `vout`: Zener voltage = `vz + zz*(iz - izt)` V
- `pz`: Dissipation = `vout*iz` W

## Model logic

- It is a continuous current law solved by Newton's method, with no on/off state and no step-boundary flips.
- In reverse a soft knee passes through ir at vr and izt at vz, then continues as a straight line of slope 1/zz.
- In forward the current follows a line from 0.7 V through vf at ifw, rounded over about 50 mV.
- A peak above izm raises a warning; the Zener voltage has no temperature coefficient and no junction capacitance.

## Model

In reverse, the current follows a soft knee: almost nothing below the knee, then a straight line of slope 1 / zz. The knee is fitted so that the diode carries ir at vr and izt at vz. In forward, the current follows a line from 0.7 V through vf at ifw. The diode is solved by Newton's method, so the knee is smooth and no state flips. A warning appears when the current peaks above izm. The Zener voltage does not change with temperature here.

## Common mistakes

- Without a series resistance, a Zener across a voltage source above vz carries a huge current. Add a resistor that sets the current.
- The cathode goes to the positive side. A Zener placed the wrong way conducts like an ordinary diode at about 0.7 V.

## Datasheet and sources

Take vz and izt from the Zener voltage column and its test current, vr and ir from the reverse leakage column, zz from ZZT, vf and ifw from the forward voltage row, and izm from the regulator current column. The defaults are the Vishay 1N4749A (24 V), document 85816, rev. 2.7.

## Example

Open the example with the command `file.openExample` and the name `demo:zener`.

---
Generated by `cargo xtask reference` from the usage texts and parameter specs. Do not edit by hand.
