---
title: Linear voltage regulators
heading: A reference, an error amplifier and a pass transistor
eyebrow: C6 · Lesson 45 · Linear voltage regulators
xp: 40
---

::: hook
The Zener-and-follower supply of C5 holds its output to within a few percent, but its output drifts with load and temperature, and ripple leaks through. Wrap the pass transistor in a feedback loop instead: compare a fraction of the output with a precise reference, and let an error amplifier drive the pass transistor to keep them equal. Every three-terminal regulator chip, from the 7805 to the low-dropout regulators in a phone, is this circuit. Its accuracy comes from the reference, and its stiffness from the loop gain.
:::

::: play
- A series regulator: a 1.25 V reference, an op amp comparing it with a quarter of the output, and an NPN pass transistor driving a 10 Ω load from 12 V.
- The output sits at 5.00 V. Lower $R_L$ to draw more current: it barely moves, because the loop divides the pass transistor's output resistance by its loop gain.
- Change the input between 7 V and 15 V: the output stays at 5 V. All the excess drops across the pass transistor, and becomes heat.
:::
:::

```sim circuit
VIN vin 0 12                        @ -3,-2 down 6
U1 ref fb g                         @ 0,0
VREF ref 0 1.25                     @ -1,1 down 3
Q1 vin g out npn BF=100 IS=1e-13    @ 3,0
R1 out fb 30k                       @ 5,1 down 2
R2 fb 0 10k                         @ 5,3 down 2
RL out 0 10                         @ 7,1 down 4
slider: RL 5..1k log
slider: VIN.amp 7..15
scope: v(out)
time: 0..1m s
meter: v(out), i(RL), v(vin)
```

::: predict
## A regulator holds 5 V from a 12 V input while supplying 0.5 A. What is its efficiency?

- [ ] About 90%
- [ ] About 70%
- [x] About 42%
- [ ] About 10%

::: reveal
About 42%: $5/12$. A linear regulator passes the load current straight through, so it draws the same current from the input as it delivers, and its efficiency is the voltage ratio. Here 3.5 W heats the pass transistor to deliver 2.5 W. That's why low-dropout regulators run from inputs just above their output, and switching regulators take over when the gap is large.
:::
:::

::: nameit
## The series regulator

The op amp drives the pass transistor until the divided output equals the reference:

$$V_\text{out} = V_\text{ref}\left(1 + \frac{R_1}{R_2}\right)$$

It's a non-inverting amplifier of the reference, with the pass transistor as a current booster inside the loop. With β = $R_2/(R_1 + R_2)$ and op-amp gain A:

- **Load regulation:** the pass follower's own output resistance (about $1/g_m$) is divided by $1 + A\beta$: milliohms.
- **Line regulation and ripple rejection:** input changes reach the output only through the pass transistor's output resistance and the op amp's supply sensitivity, again divided by the loop gain.
- **Accuracy:** set by the reference (a bandgap, about 1.2 V, stable to tens of ppm/°C) and the resistor ratio.

## Dropout

The regulator works only while the pass transistor has room. An NPN follower needs its base above its emitter, and the op amp driving it needs headroom too, so the input must exceed the output by about 2 V. A **low-dropout (LDO)** regulator uses a PNP or PMOS pass device as a common-emitter or common-source switch from the input, which can pull the output to within $I_LR_{on}$ of the input: a tenth of a volt or two.

## Power and protection

Input and load current are equal, so

$$\eta = \frac{V_\text{out}}{V_\text{in}} \qquad P_\text{pass} = (V_\text{in} - V_\text{out})I_L$$

**Current limiting:** a small sense resistor $R_{sc}$ in series with the output, with a transistor across it that steals the pass transistor's base drive when $I_LR_{sc}$ reaches about 0.65 V: $I_\text{lim} \approx 0.65/R_{sc}$. **Stability:** the pass device and the output capacitor add poles to the loop; LDOs in particular need the output capacitor the datasheet specifies.
:::

::: example
## Design the regulator in the sim for 5 V from a 1.25 V reference, and estimate its output resistance if the follower has about 1 Ω and the op amp a gain of 10⁴.

::: solution
1. **Divider.** $1 + R_1/R_2 = 4$, so $R_1$ = 30 kΩ with $R_2$ = 10 kΩ.
2. **Loop gain.** β = 0.25, and
   $$1 + A\beta \approx 2500$$
3. **Output resistance.**
   $$\begin{aligned} R_\text{out} &\approx \frac{1\ \Omega}{2500} \\ &= 0.4\ \text{m}\Omega \end{aligned}$$
   so a 0.5 A step moves the output 0.2 mV.
4. **In practice.** The wiring's resistance after the feedback point dominates.

**Answer:** $R_1$ = 30 kΩ and $R_2$ = 10 kΩ, with an output resistance of about 0.4 mΩ.
:::
:::

::: example
## An LDO with a 0.2 Ω PMOS pass device supplies 1 A at 3.3 V from a lithium cell. What is its dropout, and its efficiency at 3.6 V in?

::: solution
1. **Dropout.**
   $$1\ \text{A} \times 0.2\ \Omega = 0.2\ \text{V}$$
   so it regulates down to a 3.5 V input.
2. **Efficiency at 3.6 V.**
   $$\begin{aligned} \eta &= \frac{3.3}{3.6} \\ &= 92\% \end{aligned}$$
3. **Compare an NPN regulator.** One with 2 V of dropout couldn't run from this cell at all.

**Answer:** the dropout is 0.2 V, and the efficiency at 3.6 V in is 92%.
:::
:::

::: example
## An adjustable three-terminal regulator holds 1.25 V between its output and adjust pins, and 50 µA flows out of the adjust pin. With 240 Ω from output to adjust and 720 Ω from adjust to ground, what's the output?

::: solution
1. **Current in the 240 Ω.**
   $$\frac{1.25\ \text{V}}{240\ \Omega} = 5.21\ \text{mA}$$
   The 720 Ω carries that plus the adjust current.
2. **Output.**
   $$\begin{aligned} V_\text{out} &= 1.25\left(1 + \frac{720}{240}\right) \\ &\quad + 50\ \mu\text{A} \times 720\ \Omega \\ &= 5.000 + 0.036 \\ &= 5.036\ \text{V} \end{aligned}$$
3. **The adjust current's share.** It adds 0.7%. Keeping the divider's current at several milliamps makes the adjust pin's 50 µA, and its variation between parts, a small correction.

**Answer:** the output is 5.036 V.
:::
:::

::: check
given: Vref = 1.2 | 1.25 | 2.5; R1 = 10 | 33 | 100
answer: Vref*(1 + R1/10)
unit: V
tolerance: 0.5%

## A regulator has a {Vref} V reference, $R_1$ = {R1} kΩ from the output to the feedback node and $R_2$ = 10 kΩ to ground. What does it put out?

::: right
Right. $V_\text{ref}(1 + R_1/R_2)$ = {answer}.
:::

::: misses
- [Vref*R1/10] It's a non-inverting amplifier: $1 + R_1/R_2$.
- [any] Not yet. The feedback node is held at $V_\text{ref}$.
:::
:::

::: check
given: Vout = 3.3 | 5 | 12; Vref = 1.2 | 1.25; R2 = 10 | 47
answer: R2*(Vout/Vref - 1)
unit: kΩ
tolerance: 0.5%

## A {Vout} V regulator uses a {Vref} V reference with $R_2$ = {R2} kΩ. What $R_1$?

::: right
Right. $R_2(V_\text{out}/V_\text{ref} - 1)$ = {answer}.
:::

::: misses
- [R2*Vout/Vref] Subtract one: $V_\text{out}/V_\text{ref} = 1 + R_1/R_2$.
- [any] Not yet. Solve $V_\text{out} = V_\text{ref}(1 + R_1/R_2)$.
:::
:::

::: check
given: Vin = 6 | 12 | 24; Vout = 3.3 | 5; IL = 0.1 | 1
answer: (Vin - Vout)*IL
unit: W
tolerance: 0.5%

## A linear regulator makes {Vout} V at {IL} A from {Vin} V. What does its pass transistor dissipate?

::: right
Right. $(V_\text{in} - V_\text{out})I_L$ = {answer}.
:::

::: misses
- [Vout*IL] That's the power delivered; the pass device drops the difference.
- [any] Not yet. Its voltage times the load current.
:::
:::

::: check
given: Vin = 4 | 5 | 12; Vout = 1.8 | 3.3
answer: Vout/Vin*100
unit: %
tolerance: 0.5%

## What is the efficiency of a linear regulator making {Vout} V from {Vin} V?

::: right
Right. $V_\text{out}/V_\text{in}$ = {answer}.
:::

::: misses
- [any] Not yet. Input and output currents are equal.
:::
:::

::: check
given: Ro = 0.5 | 5; A = 1e3 | 1e5; Vout = 3.3 | 12
answer: Ro/(1 + A*1.25/Vout)*1000
unit: mΩ
tolerance: 0.5%

## A regulator's pass follower has {Ro} Ω of open-loop output resistance and its error amplifier a gain of {A}. For a {Vout} V output from a 1.25 V reference, what is its closed-loop output resistance?

::: right
Right. $\frac{R_o}{1 + A\beta}$ with $\beta = V_\text{ref}/V_\text{out}$: {answer}.
:::

::: misses
- [Ro/(1 + A)*1000] The divider feeds back only $V_\text{ref}/V_\text{out}$ of the output.
- [any] Not yet. Divide by $1 + A\beta$.
:::
:::

::: check
given: Ron = 0.05 | 0.5; IL = 0.2 | 2
answer: Ron*IL
unit: V
tolerance: 0.5%

## What is the dropout of an LDO whose pass device has {Ron} Ω on-resistance at {IL} A?

::: right
Right. $I_LR_{on}$ = {answer}.
:::

::: misses
- [any] Not yet. The pass device fully on drops $I_LR_{on}$.
:::
:::

::: check
given: Ilim = 0.1 | 0.5 | 3
answer: 0.65/Ilim
unit: Ω
tolerance: 0.5%

## What sense resistor sets a regulator's current limit at {Ilim} A (limit transistor turning on at 0.65 V)?

::: right
Right. $0.65/I_\text{lim}$ = {answer}.
:::

::: misses
- [any] Not yet. The limit transistor needs 0.65 V across $R_{sc}$.
:::
:::

::: check
kind: parts
given: R1 = 120 | 240; R2 = 360 | 720 | 1500; Ia = 50 | 100

## An adjustable regulator holds 1.25 V between output and adjust, with {R1} Ω from output to adjust, {R2} Ω from adjust to ground, and {Ia} µA from the adjust pin.

::: part
answer: 1.25*(1 + R2/R1) + Ia*1e-6*R2
unit: V
tolerance: 0.2%

### What's its output?

::: misses
- [1.25*(1 + R2/R1)] Include the adjust current through the lower resistor.
- [any] $1.25\left(1 + \frac{R_2}{R_1}\right) + I_\text{adj}R_2$.
:::
:::

::: part
answer: Ia*1e-6*R2/(1.25*(1 + R2/R1) + Ia*1e-6*R2)*100
unit: %
tolerance: 1%

### What share of the output does the adjust current make?

::: misses
- [any] $\frac{I_\text{adj}R_2}{V_\text{out}}$.
:::
:::
:::

::: check
kind: derivation
vars: v = 0.5..5, a = 1000..1000000, c = 1000..1000000, A = 100..1000000, R = 0.01..100

## An op-amp regulator has a reference v, a divider of a over c, an op amp with gain A, and a pass device with output resistance R.

::: step
answer: v*(1 + a/c)

### What's the output?
:::

::: step
answer: c/(a + c)

### What's the feedback fraction β?
:::

::: step
answer: R/(1 + A*c/(a + c))

### What's the closed-loop output resistance?
:::

::: right
Right. The loop divides the pass device's resistance by $1 + A\beta$.
:::
:::

::: explain
## Why is a feedback regulator's output so much stiffer than a Zener-and-follower supply's?

::: model
In the Zener-and-follower supply, the output is simply the Zener's voltage less a base-emitter drop, so anything that changes the Zener's current or the transistor's $V_{BE}$, such as load current or temperature, moves the output directly. A feedback regulator measures the output itself, compares it with a stable reference, and drives the pass transistor to correct any difference. Any disturbance at the output is reduced by the loop gain, thousands of times, so the output follows the reference and the resistor ratio rather than the pass transistor's characteristics.
:::
:::

::: practice

::: check
given: Vref = 1.2 | 2.5; k = 2 | 4
answer: Vref*k
unit: V
tolerance: 0.5%

## A regulator's divider feeds back 1/{k} of its output to a {Vref} V reference. What does it output?

::: misses
- [any] $V_\text{ref}/\beta$.
:::
:::

::: check
given: Vout = 3.3 | 5; drop = 0.2 | 2
answer: Vout + drop
unit: V
tolerance: 0.5%

## What is the lowest input a {Vout} V regulator with {drop} V of dropout accepts?

::: misses
- [any] Output plus dropout.
:::
:::

::: check
given: P = 1 | 5; th = 5 | 50; TA = 25 | 50
answer: TA + P*th
unit: °C
tolerance: 0.5%

## A regulator dissipating {P} W has {th} °C/W to the air at {TA} °C. How hot is its junction?

::: misses
- [any] $T_A + P\theta$.
:::
:::
:::
