# Adjustable Shunt Regulator (`shuntRegulator`)

> Sinks current at its cathode to hold REF at its reference voltage.

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

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

**Group:** ICs · **Kind:** `{"definition":"shuntRegulator","kind":"subsystem"}`

## When to use it

Use it as the error amplifier on the secondary of an isolated supply, driving an optocoupler, or as a precise shunt reference with two resistors. Use Voltage Reference when the load needs a sourcing output.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `K` | electrical | Cathode, sinks the regulating current |
| `A` | electrical | Anode, the reference for REF and K |
| `REF` | electrical | Reference input, compared with vref |

## Common parameters

- `vref`: Reference voltage: REF above the anode where the device regulates (Default: 2.495)
- `gm`: Low-frequency transconductance: cathode current per volt of REF error (Default: 2.57)
- `fPole`: Pole of the transconductance (Default: 6500)
- `iMin`: Cathode current with REF exactly at vref (the internal bias) (Default: 0.0004)

## Parameters

| Key | Unit | Default | Typical range | Description | Datasheet source |
|---|---|---|---|---|---|
| `vref` | V | 2.495 | 500m – 40 V | Reference voltage: REF above the anode where the device regulates | Section 6.5 Vref typ (TL431C), p.6 |
| `iRef` | A | 0.000002 | 0 – 1m A | Current flowing into REF | Section 6.5 Iref typ (R1 = 10 kΩ), p.6 |
| `gm` | A/V | 2.57 | 1m – 1k A/V | Low-frequency transconductance: cathode current per volt of REF error | Figure 6-10: 55.5 dB at 1 kHz into the 232 Ω load of Figure 6-11 (10^(55.5/20) / 232 Ω), p.16 |
| `fPole` | Hz | 6500 | 1 – 100meg Hz | Pole of the transconductance | Figure 6-10: 3 dB below the low-frequency gain near 6.5 kHz, read off the plot, p.16 |
| `iMin` | A | 0.0004 | 0 – 100m A | Cathode current with REF exactly at vref (the internal bias) | Section 6.5 Imin typ, p.6 |
| `ikMax` | A | 0.1 | 1m – 1 A | Most cathode current | Section 6.4 IKA max (recommended), p.5 |
| `vKaMin` | V | 2 | 0 – 10 V | Lowest cathode voltage (above the anode) while sinking | assumption: no saturation voltage is given; Section 6.4 recommends VKA >= Vref, p.5 |

_Parameter descriptions are in English in both languages._

## Model

The error V(REF) - V(A) - vref passes one pole at fPole and becomes a sink current gm times that error, plus iMin at the reference point. The current stays between 0 and ikMax without wind-up, and the cathode stops sinking at vKaMin above the anode. A constant iRef flows into REF. Everything is solved with the circuit, so a cathode tied to REF or a type II network needs no small step. The second pole near 1 MHz, the instability with capacitive loads, and the loss of regulation below Imin are not modelled.

## Common mistakes

- Keep at least 1 mA in the cathode. The real part stops regulating below Imin, but the model keeps regulating, so add a bias resistor across the optocoupler LED.
- The cathode cannot go below about 2 V while sinking. With an optocoupler LED and a series resistor on a low output voltage, check that the cathode stays above that.
- The REF current flows through the upper divider resistor and raises the output by iRef times that resistor, which is 20 mV for 10 kOhm.

Problems rules: `pin.unconnected`, `param.out_of_range`

## Datasheet and sources

vref, iRef and iMin are the typical values of the electrical characteristics. ikMax is the largest recommended cathode current. gm and fPole come from the small-signal voltage amplification plot: gm is the low-frequency gain divided by the load resistor of its test circuit, and fPole is where the gain is 3 dB lower. vKaMin is an assumption. Pass them to ic.fromSpec with the shuntRegulator template.

## Example

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

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