---
title: Bandgap voltage references
heading: Adding a falling VBE to a rising PTAT voltage, and what's left over
eyebrow: S2 · Lesson 9 · Bandgap voltage references
xp: 50
---

::: hook
Nearly every chip with an ADC, a regulator or a sensor contains a bandgap reference: a circuit that produces about 1.2 V that hardly changes with temperature, supply or process. Its trick is to add two voltages whose temperature dependences cancel. A base-emitter voltage falls about 2 mV per kelvin; a $\Delta V_{BE}$ from two transistors at different current densities rises in proportion to absolute temperature. Scale the second until its slope cancels the first's and the sum lands, remarkably, near silicon's band gap extrapolated to absolute zero. The cancellation is exact only at one temperature, and the leftover bow is what separates a 20 ppm/K reference from a 2 ppm/K one.
:::

::: play
- Three voltages against temperature: a base-emitter voltage (falling, slightly curved), a PTAT voltage $G\frac{kT}{q}$ (rising), and their sum, the reference.
- Adjust the PTAT gain G until the sum is flat at room temperature. The readout gives the gain that does it exactly; the sum then sits near 1.2 to 1.3 V.
- The residual bow comes from the curvature of $V_{BE}$, set by η, the exponent in the temperature dependence of the saturation current and mobility.
:::
:::

```sim plot
view: graph
x: T = 200..450 K
y: V = 0..1.4 V
slider: G = 15..35 step 0.1 = 24.5
slider: V0 = 0.55..0.75 = 0.65 V
slider: eta = 2..4 = 3
plot: 1.205 - (1.205 - V0)*T/300 - eta*8.617e-5*T*ln(T/300) | samples: 300 | label: VBE
plot: G*8.617e-5*T | samples: 300 | color: ch2 | label: PTAT term G·kT/q
plot: 1.205 - (1.205 - V0)*T/300 - eta*8.617e-5*T*ln(T/300) + G*8.617e-5*T | samples: 300 | color: ch3 | label: reference
readout: gain that zeroes the slope at 300 K = (1.205 - V0)/(300*8.617e-5) + eta
readout: reference at 300 K = V0 + G*8.617e-5*300 V
readout: change from 233 K to 398 K, mV = ((1.205 - (1.205 - V0)*398/300 - eta*8.617e-5*398*ln(398/300) + G*8.617e-5*398) - (1.205 - (1.205 - V0)*233/300 - eta*8.617e-5*233*ln(233/300) + G*8.617e-5*233))*1000
```

::: predict
## A bandgap reference is tuned to have zero temperature coefficient at 300 K. What happens to its output at much higher and lower temperatures?

- [ ] It stays exactly constant
- [x] It falls on both sides: a gentle downward bow
- [ ] It rises on both sides
- [ ] It drifts linearly

::: reveal
It bows downward on both sides. The PTAT term is exactly linear in T, but $V_{BE}$ has a small curvature, the $-(\eta - \alpha)\frac{kT}{q}\ln\frac{T}{T_0}$ term, which is concave. Cancelling the slopes at $T_0$ leaves that curvature, so the output peaks at $T_0$ and drops a few millivolts by −40 °C and 125 °C. Curvature-correction circuits add a term that cancels the $T\ln T$ shape, reaching 1 to 5 ppm/K.
:::
:::

::: nameit
## The base-emitter voltage

With a collector current proportional to $T^\alpha$ (α = 0 for a constant current, 1 for a PTAT one),

$$V_{BE}(T) = V_{G0} - (V_{G0} - V_{BE0})\frac{T}{T_0} - (\eta - \alpha)\frac{kT}{q}\ln\frac{T}{T_0}$$

where $V_{G0}$ ≈ 1.205 V is silicon's gap extrapolated linearly to 0 K, $V_{BE0}$ the value at $T_0$, and η ≈ 3 to 4 comes from the temperature dependence of $I_S$. Near room temperature $dV_{BE}/dT$ ≈ −2 mV/K.

## The PTAT voltage

Two transistors at a current-density ratio N give $\Delta V_{BE} = \frac{kT}{q}\ln N$, exactly proportional to T. A resistor ratio scales it by K.

## The reference

$$V_\text{ref} = V_{BE} + K\frac{kT}{q}\ln N$$

The slope vanishes at $T_0$ when

$$K\ln N = \frac{V_{G0} - V_{BE0}}{kT_0/q} + (\eta - \alpha)$$

and then $V_\text{ref}(T_0) = V_{G0} + (\eta - \alpha)\frac{kT_0}{q}$: the band gap plus a few thermal voltages, about 1.2 to 1.3 V. That's the origin of the name.

## Real bandgaps

- **Brokaw and Widlar cells** in bipolar processes; in CMOS, parasitic substrate PNPs with an op amp forcing equal currents.
- **Op-amp offset** is multiplied by the PTAT gain, about $1 + K$: 1 mV of offset with K = 12 is 13 mV of reference error. Large N, chopping and trimming fight it.
- **Sub-1 V references** sum currents instead of voltages (a PTAT current plus a $V_{BE}/R$ current into a resistor), giving any fraction of 1.2 V.
- **Residual curvature** of a first-order bandgap is a few millivolts over −40 to 125 °C, about 15 to 20 ppm/K.
:::

::: example
## Design a first-order bandgap with $V_{BE0}$ = 0.65 V at 300 K, η − α = 3, and an 8:1 area ratio. What resistor gain K does it need, what's its output, and how much does it bow over −40 to 125 °C?

::: solution
1. **Gain needed.**
   $$\begin{aligned} K\ln 8 &= \frac{1.205 - 0.65}{0.02585} + 3 \\ &= 24.47 \end{aligned}$$
2. **Resistor gain.**
   $$\begin{aligned} K &= \frac{24.47}{2.079} \\ &= 11.8 \end{aligned}$$
3. **Output.**
   $$\begin{aligned} V_\text{ref} &= 0.65 + 24.47 \times 0.02585 \\ &= 1.283\ \text{V} \end{aligned}$$
4. **Bow over temperature.** Evaluating the full expression gives 1.2826 V at 300 K, 1.2805 V at 233 K and 1.2788 V at 398 K, a 3.7 mV spread.
5. **Average coefficient.** Over the 165 K span that's
   $$\frac{\Delta V_\text{ref}}{V_\text{ref} \times 165\ \text{K}} = 18\ \text{ppm/K}$$

**Answer:** K = 11.8 and an output of 1.283 V, which bows by 3.7 mV over the range, 18 ppm/K on average.
:::
:::

::: example
## The bandgap's op amp has 1 mV of input offset, which appears across the $\Delta V_{BE}$ resistor and is amplified like the PTAT voltage. How big is the output error, and what does it do to the temperature coefficient?

::: solution
1. **Output error.** The offset adds to $\Delta V_{BE}$ and is amplified by about K + 1 = 12.8:
   $$1\ \text{mV} \times 12.8 \approx 13\ \text{mV}$$
   a 1% error.
2. **Effect on drift.** The offset doesn't scale with T as $\Delta V_{BE}$ does, so the slope cancellation is spoiled and the reference drifts.
3. **The fix.** Production bandgaps trim at test or chop the op amp to remove its offset.

**Answer:** the output is off by about 13 mV (1%), and the spoiled slope cancellation makes the reference drift.
:::
:::

::: example
## A first-order bandgap at 1.2 V curves by 2 mV over −40 to 125 °C. What box-method temperature coefficient is that?

::: solution
1. **Box method.**
   $$\begin{aligned} \text{TC} &= \frac{2\ \text{mV}}{1.2\ \text{V} \times 165\ \text{K}} \\ &= 10\ \text{ppm/°C} \end{aligned}$$
2. **Doing better.** Curvature correction, cancelling the $T\ln T$ term in $V_{BE}$, brings good references to 1 to 3 ppm/°C.

**Answer:** 10 ppm/°C.
:::
:::

::: check
given: V = 0.6 | 0.65 | 0.7; e = 2.5 | 3.5
answer: (1.205 - V)/(300*8.617e-5) + e
tolerance: 1%

## A bandgap's $V_{BE}$ is {V} V at 300 K, with η − α = {e}. What PTAT gain $K\ln N$ zeroes the slope at 300 K?

::: right
Right. $\frac{V_{G0} - V_{BE0}}{kT_0/q} + (\eta - \alpha)$ = {answer}.
:::

::: misses
- [(1.205 - V)/(300*8.617e-5)] Add η − α for the curvature term's slope.
- [any] Not yet. Set $dV_\text{ref}/dT = 0$ at $T_0$.
:::
:::

::: check
given: e = 2.5 | 3 | 3.5; T = 300 | 330
answer: 1.205 + e*8.617e-5*T
unit: V
tolerance: 0.1%

## A bandgap is tuned flat at {T} K, with η − α = {e}. What's its output voltage?

::: right
Right. $V_{G0} + (\eta - \alpha)\frac{kT_0}{q}$ = {answer} V.
:::

::: misses
- [1.205] Add $(\eta - \alpha)kT_0/q$.
- [any] Not yet. Substitute the zero-slope condition back.
:::
:::

::: check
given: N = 8 | 24 | 48; K = 5 | 10
answer: K*0.02585*ln(N)*1000
unit: mV
tolerance: 1%

## A bandgap's PTAT branch uses an {N}:1 ratio and a resistor gain of {K}. What PTAT voltage does it add at 300 K?

::: right
Right. $K\frac{kT}{q}\ln N$ = {answer} mV.
:::

::: misses
- [K*0.02585*log(N)*1000] Use the natural log.
- [any] Not yet. $\Delta V_{BE} = V_T\ln N$, times K.
:::
:::

::: check
given: G = 20 | 25; N = 8 | 24
answer: G/ln(N)
tolerance: 1%

## A bandgap needs a PTAT gain $K\ln N$ = {G}. With N = {N}, what resistor ratio K does it need?

::: right
Right. $K = G/\ln N$ = {answer}.
:::

::: misses
- [G/log(N)] Use the natural log.
- [any] Not yet. Divide by ln N.
:::
:::

::: check
given: o = 0.5 | 1 | 3; K = 8 | 12
answer: o*(K + 1)
unit: mV
tolerance: 1%

## A bandgap with PTAT resistor gain K = {K} has an op amp with {o} mV of offset. Roughly how large is the output error?

::: right
Right. About $(K + 1)V_{os}$ = {answer} mV.
:::

::: misses
- [o] The offset is amplified with the PTAT voltage.
- [any] Not yet. The offset adds to $\Delta V_{BE}$.
:::
:::

::: check
given: e = 2.5 | 3.5; T = 233 | 398
answer: e*8.617e-5*(T*ln(T/300) - (T - 300))*1000
unit: mV
tolerance: 1%

## A first-order bandgap is flat at 300 K with η − α = {e}. How far below its peak is it at {T} K?

::: right
Right. The leftover curvature is $(\eta - \alpha)\frac{k}{q}\left[T\ln\frac{T}{T_0} - (T - T_0)\right]$ = {answer} mV.
:::

::: misses
- [any] Not yet. Only the $T\ln T$ term survives the slope cancellation.
:::
:::

::: check
given: d = 2 | 5; V = 1.2 | 1.25; R = 100 | 165
answer: d/1000/(V*R)*1e6
unit: ppm/K
tolerance: 1%

## A reference of {V} V varies by {d} mV over a {R} K range. What's its box-method temperature coefficient?

::: right
Right. $\frac{\Delta V}{V\Delta T}$ = {answer} ppm/K.
:::

::: misses
- [any] Not yet. Spread over nominal value over the temperature span.
:::
:::

::: check
kind: parts
given: V = 1.2 | 1.25; d = 1 | 2 | 5; a = 125 | 165

## A bandgap reference at {V} V varies by {d} mV over {a} K.

::: part
answer: d/1000/(V*a)*1e6
unit: ppm/°C
tolerance: 0.5%

### What box-method coefficient is that?

::: misses
- [any] ΔV ÷ (V × ΔT).
:::
:::

::: part
answer: V*a*10e-6*1000
unit: mV
tolerance: 0.5%

### What total variation would 10 ppm/°C allow?

::: misses
- [any] V × ΔT × 10 ppm.
:::
:::
:::

::: check
kind: derivation
vars: V = 0.55..0.75, T = 250..400, n = 2..24, s = 0.0015..0.0025

## A $V_{BE}$ of V at temperature T falls s volts per kelvin; ΔV_BE comes from an n:1 area ratio.

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

### How fast does $\Delta V_{BE}$ rise per kelvin?
:::

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

### By what gain K must $\Delta V_{BE}$ be scaled so its rise cancels $V_{BE}$'s fall?
:::

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

### What output does that give?
:::

::: right
Right. The output lands near the extrapolated bandgap, about 1.2 V for silicon, whatever ratio and gain combination is used.
:::
:::

::: explain
## Why does a bandgap reference's output come out close to silicon's band gap voltage?

::: model
A base-emitter voltage falls with temperature because the saturation current rises steeply with temperature, as $e^{-E_g/kT}$; extrapolated back to absolute zero, $V_{BE}$ heads toward the band gap voltage. Its slope near room temperature is the distance from the gap down to $V_{BE}$, divided by the temperature. To cancel that slope, the PTAT voltage added must rise at exactly the same rate, and a voltage proportional to T with that slope is precisely the gap minus $V_{BE}$ at that temperature. Adding them gives the gap voltage back, plus a small correction from the curvature terms. The output is set by a material constant, which is why it's so reproducible.
:::
:::

::: practice

::: check
given: V = 0.62 | 0.68; e = 3 | 4
answer: (1.205 - V)/(300*8.617e-5) + e
tolerance: 1%

## Zero-TC PTAT gain: $V_{BE0}$ = {V} V, η − α = {e}?

::: misses
- [any] $(V_{G0} - V_{BE0})/V_T + (\eta - \alpha)$.
:::
:::

::: check
given: N = 4 | 16; K = 6 | 14
answer: K*0.02585*ln(N)*1000
unit: mV
tolerance: 1%

## PTAT voltage: N = {N}, K = {K}, 300 K?

::: misses
- [any] $KV_T\ln N$.
:::
:::

::: check
given: o = 0.3 | 2; K = 9 | 15
answer: o*(K + 1)
unit: mV
tolerance: 1%

## Output error from {o} mV offset, K = {K}?

::: misses
- [any] $(K + 1)V_{os}$.
:::
:::
:::
