---
title: Bandgap references
heading: Adding a falling voltage to a rising one to get a steady 1.25 V
eyebrow: C6 · Lesson 44 · Bandgap references
xp: 40
---

::: hook
Every regulator, converter and precision sensor needs a voltage that doesn't move with temperature or supply. A Zener drifts and needs several volts. A forward junction's voltage falls about 2 mV per kelvin, and the difference between two junctions at different current densities rises in proportion to absolute temperature. Add the right multiple of the rising one to the falling one and the drifts cancel. The voltage that results is close to silicon's band gap, about 1.2 V, which gives the circuit its name.

::: play
- The falling line is a junction's $V_{BE}$; the rising one is K times the difference between two junctions whose current densities differ by n; the third is their sum.
- Adjust K until the sum is flat. Where does it land?
- Change n: a larger ratio makes a larger rising voltage per unit of K, so less gain is needed, but the flat sum lands at the same voltage.
:::
:::

```sim plot
view: graph
x: T = 230..400 K
y: v = 0..1.6 V
slider: K = 0..20 step 0.05 = 11.15
slider: n = 2..32 step 1 = 8
plot: 0.65 - 0.002*(T - 300) | label: VBE | samples: 100
plot: K*8.617e-5*T*ln(n) | color: ch2 | label: K times the PTAT difference | samples: 100
plot: 0.65 - 0.002*(T - 300) + K*8.617e-5*T*ln(n) | color: ch3 | label: their sum | samples: 100
readout: sum at 300 K, V = 0.65 + K*8.617e-5*300*ln(n) | digits: 4
readout: slope, mV/K = (-0.002 + K*8.617e-5*ln(n))*1000 | digits: 3
```

::: predict
## Two matched transistors run at current densities in the ratio 8 at 300 K. What's the difference between their $V_{BE}$'s, and how does it change with temperature?

- [x] 53.8 mV, rising 0.179 mV per kelvin
- [ ] 53.8 mV, falling 2 mV per kelvin
- [ ] 0.65 V, falling 2 mV per kelvin
- [ ] 8 mV, constant

::: reveal
$\Delta V_{BE} = V_T\ln8$ = 25.85 mV × 2.079 = 53.8 mV. $V_T = \frac{kT}{q}$ is proportional to absolute temperature and $I_S$ cancels, so the difference rises at $\frac kq\ln8$ = 0.179 mV/K. It's small, so a bandgap multiplies it by about 11 to cancel $V_{BE}$'s −2 mV/K.
:::
:::

::: nameit
## Two opposite drifts

- **CTAT** (complementary to absolute temperature): a junction's $V_{BE}$ at a fixed current, about 0.65 V at 300 K, falling about 2 mV/K.
- **PTAT** (proportional to absolute temperature): the difference between two junctions with current densities in the ratio n,

$$\Delta V_{BE} = \frac{kT}{q}\ln n,$$

rising at $\frac kq\ln n$, 0.179 mV/K for n = 8.

## The bandgap voltage

$$V_\text{REF} = V_{BE} + K\frac{kT}{q}\ln n,$$

with K chosen so the slopes cancel: $K\frac kq\ln n = 2$ mV/K. The result is about 1.2 to 1.25 V, close to silicon's band gap extrapolated to absolute zero, because that's where a junction's voltage would head if extended down linearly. Circuits (the Brokaw and Widlar cells) set the ratio n with transistor areas or currents, and K with a resistor ratio, which is why bandgaps can be made accurate: ratios match far better than absolute values.

## In practice

- **Curvature:** $V_{BE}$ isn't exactly linear in T, so a first-order bandgap bows by a few millivolts over the industrial range. Curvature correction trims it further.
- **Trimming:** the absolute value of $V_{BE}$ varies between parts, so precision references are trimmed at one temperature, which also fixes the slope.
- **Start-up:** most bandgap cells have a second stable state with zero current and need a start-up circuit.
- **Scaling:** an op amp with gain $1 + \frac{R_1}{R_2}$ turns 1.25 V into any higher reference.
:::

::: example
## A bandgap uses n = 8 and a junction with $V_{BE}$ = 0.65 V at 300 K, falling 2.0 mV/K. What K cancels the drift, and what reference voltage results?

::: solution
1. **PTAT slope.** Per unit K,
   $$\frac kq\ln8 = 0.179\ \text{mV/K}$$
2. **K that cancels the drift.**
   $$\begin{aligned} K &= \frac{2.0}{0.179} \\ &= 11.2 \end{aligned}$$
3. **PTAT voltage at 300 K.**
   $$\begin{aligned} V_\text{PTAT} &= K \times 25.85\ \text{mV} \times \ln8 \\ &= 0.600\ \text{V} \end{aligned}$$
4. **Reference.**
   $$\begin{aligned} V_\text{REF} &= 0.650 + 0.600 \\ &= 1.250\ \text{V} \end{aligned}$$
5. **With n = 24.** The slope would be 0.274 mV/K and K = 7.3, but the reference would still come out at 1.25 V: the cancellation sets the voltage, whatever the ratio.

**Answer:** K = 11.2, and the reference is 1.250 V.
:::
:::

::: example
## If K comes out 1% high, how much does the reference drift over 100 K, and what's that in ppm/K?

::: solution
1. **Uncancelled drift.** A 1% error in K leaves 1% of the 2 mV/K uncancelled: 0.02 mV/K, or 2 mV over 100 K.
2. **In ppm/K.**
   $$\frac{0.02\ \text{mV/K}}{1.25\ \text{V}} = 16\ \text{ppm/K}$$
3. **Better matching.** Resistor ratios matched to 0.1% make it 1.6 ppm/K, which is why the best references come down to matching and trimming.

**Answer:** the reference drifts 2 mV over 100 K, 16 ppm/K.
:::
:::

::: example
## A 5 V reference is made by amplifying a 1.25 V bandgap with a non-inverting op amp. What resistor ratio, and does the op amp's offset matter?

::: solution
1. **Resistor ratio.**
   $$\begin{aligned} 1 + \frac{R_1}{R_2} &= \frac{5}{1.25} \\ &= 4 \end{aligned}$$
   so $R_1 = 3R_2$.
2. **The op amp's offset.** It's amplified by the same gain of 4: a 1 mV offset adds 4 mV, 0.08%, and its drift adds to the reference's.
3. **In practice.** Precision references either use a low-offset amplifier or build the gain into the bandgap cell itself.

**Answer:** $R_1 = 3R_2$, and the offset matters: it's multiplied by 4 along with the reference.
:::
:::

::: check
given: n = 4 | 8 | 24 | 100; T = 250 | 300 | 350
answer: 8.617e-5*T*ln(n)*1000
unit: mV
tolerance: 0.5%

## Two matched junctions run at current densities in the ratio {n} at {T} K. What's the difference between their $V_{BE}$'s?

::: right
Right. $\frac{kT}{q}\ln n$ = {answer}, independent of $I_S$.
:::

::: misses
- [8.617e-5*T*log(n)*1000] Use the natural logarithm.
- [any] $\Delta V_{BE} = \frac{kT}{q}\ln n$.
:::
:::

::: check
kind: parts
given: n = 4 | 8 | 16; s = 1.8 | 2 | 2.2; v = 0.6 | 0.65 | 0.7

## A bandgap uses ratio {n}, and its junction has $V_{BE}$ = {v} V at 300 K, falling {s} mV/K.

::: part
answer: s/1000/(8.617e-5*ln(n))
tolerance: 0.5%

### What K cancels the drift?

::: misses
- [s/1000/(8.617e-5*n)] The PTAT slope is $\frac kq\ln n$.
- [any] $K = \frac{|dV_{BE}/dT|}{(k/q)\ln n}$.
:::
:::

::: part
answer: v + s/1000*300
unit: V
tolerance: 0.5%

### What reference voltage results?

::: misses
- [v] Add the PTAT voltage, $K\frac{kT}{q}\ln n$.
- [any] $V_{BE} + K\frac{kT}{q}\ln n$, which equals $V_{BE} + |dV_{BE}/dT| \times T$.
:::
:::
:::

::: check
kind: parts
given: e = 0.1 | 0.5 | 2; V = 1.2 | 1.25; R = 50 | 100

## A bandgap's K is {e}% off its ideal value, which cancels 2 mV/K. Its output is {V} V.

::: part
answer: e/100*2*R
unit: mV
tolerance: 0.5%

### How far does it drift over {R} K?

::: misses
- [any] $\frac{e}{100} \times 2\text{ mV/K} \times \Delta T$.
:::
:::

::: part
answer: e/100*2e-3/V*1e6
unit: ppm/K
tolerance: 0.5%

### What's that in ppm/K?

::: misses
- [any] The residual slope over the output voltage.
:::
:::
:::

::: check
kind: parts
given: Vr = 1.2 | 1.25 | 2.5; Vo = 3.3 | 5 | 10; os = 0.1 | 1

## A {Vr} V reference is amplified to {Vo} V by a non-inverting op amp with {os} mV of offset.

::: part
answer: Vo/Vr - 1
tolerance: 0.5%

### What's $R_1/R_2$?

::: misses
- [Vo/Vr] The gain is $1 + R_1/R_2$.
- [any] $\frac{R_1}{R_2} = \frac{V_o}{V_r} - 1$.
:::
:::

::: part
answer: os*Vo/Vr
unit: mV
tolerance: 0.5%

### What error does the offset add at the output?

::: misses
- [os] The offset is amplified by the same gain.
- [any] $V_{OS} \times \frac{V_o}{V_r}$.
:::
:::
:::

::: check
kind: choice

## Why can a bandgap reference be made accurate even though absolute transistor and resistor values vary widely?

- [ ] Because silicon's band gap is a constant
- [x] Because the PTAT voltage depends on a ratio of current densities and the gain on a ratio of resistors, and ratios match well
- [ ] Because the op amp corrects all errors
- [ ] Because it runs at a fixed temperature

::: right
Right. Ratios of matched devices on one chip are precise even when absolute values are not; one trim fixes the rest.
:::

::: misses
- [1] The band gap sets roughly where the voltage lands, but the cancellation relies on matched ratios.
- [3] An op amp adds its own offset; it doesn't remove device errors.
- [4] Bandgaps cancel drift precisely so they don't need a fixed temperature.
:::
:::

::: check
kind: derivation
vars: v = 0.5..0.8, s = 0.001..0.003, n = 2..100, T = 200..400

## A junction has $V_{BE}$ = v at T, falling s volts per kelvin; a pair with density ratio n makes the PTAT term.

::: step
answer: 8.617e-5*ln(n)

### What's the PTAT slope per unit K?
:::

::: step
answer: s/(8.617e-5*ln(n))

### What K cancels the drift?
:::

::: step
answer: v + s*T

### What's the reference voltage?
:::

::: right
Right. The reference is $V_{BE}$ extrapolated linearly to absolute zero, whatever n is.
:::
:::

::: explain
## Why does a bandgap reference's output land near 1.2 V regardless of the current-density ratio it uses?

::: model
A junction's voltage falls nearly linearly as temperature rises, and if you extend that straight line down to absolute zero it reaches about silicon's band gap voltage, roughly 1.2 volts. The bandgap circuit adds a voltage proportional to absolute temperature, scaled so its rise exactly cancels the junction's fall. A voltage proportional to temperature is zero at absolute zero and grows linearly, so adding it with the right slope turns the sloped line into a horizontal one at the height where the junction's line meets absolute zero. The ratio and the gain only change how that cancelling slope is made, not where the flat line lands.
:::
:::

::: practice

::: check
given: n = 2 | 16; T = 273 | 373
answer: 8.617e-5*T*ln(n)*1000
unit: mV
tolerance: 0.5%

## Ratio {n}, {T} K. $\Delta V_{BE}$?

::: misses
- [any] $\frac{kT}{q}\ln n$.
:::
:::

::: check
given: n = 6 | 50; s = 1.9 | 2.1
answer: s/1000/(8.617e-5*ln(n))
tolerance: 0.5%

## Ratio {n}, $V_{BE}$ falling {s} mV/K. K?

::: misses
- [any] $\frac{s}{(k/q)\ln n}$.
:::
:::
:::
