Analog IC · Lesson 8

Bandgap reference

Add CTAT and PTAT voltages until V_REF goes flat over temperature.

📘 Chapter introduction(click to show)

In this chapter you will learn to

  • ✓Explain why V_BE falls and ΔV_BE rises with temperature.
  • ✓Choose the gain K = R₂/R₁ that cancels the temperature drift.
  • ✓Explain why the result is close to 1.2 V, and what limits its accuracy.

1. Why this circuit matters

An ADC measures a voltage by comparing it with a reference. If the reference drifts with temperature, every measurement drifts with it. A bandgap reference produces about 1.2 V that stays almost constant from −40 °C to 125 °C. It is inside nearly every mixed-signal chip, from microcontrollers to battery chargers.

💡 Think of it like this

Picture two people on moving walkways going in opposite directions. As the temperature rises, one is carried down (V_BE) and the other is carried up (ΔV_BE). Tie them together with a rope of the right strength (K) and the pair stands still.

2. Definition

A bandgap reference adds a voltage that falls with temperature (a BJT's V_BE) to a scaled voltage that rises with temperature (the V_BE difference of two BJTs at different current densities). The sum sits close to the silicon bandgap voltage and has a near-zero temperature coefficient.

3. Meet the components

Q1 (1×), diode-connected BJT

Provides V_BE, which falls about 2 mV per °C. This is the CTAT voltage.

Q2 (N× area)

Same current spread over N times the area, so its V_BE is lower. The difference ΔV_BE is PTAT.

R₁

Carries ΔV_BE and so turns it into a PTAT current I = V_T·ln(N)/R₁.

R₂

Turns that PTAT current back into a voltage K·ΔV_BE. The ratio K = R₂/R₁ sets the amount.

Matched current sources

Force equal currents in both branches. On a chip: a PMOS current mirror controlled by an op-amp loop.

4. How it works, step by step

  1. 1

    A falling voltage. A forward-biased BJT's V_BE is about 0.65 V at room temperature and falls about 2 mV per °C.

  2. 2

    A rising voltage. Run the same current through Q1 (1×) and Q2 (N×). Q2 has a lower current density, so its V_BE is lower by ΔV_BE = V_T·ln(N).

  3. 3

    Why ΔV_BE rises. V_T = kT/q is proportional to absolute temperature, so ΔV_BE rises with temperature too. It is small, about 0.18 mV per °C for N = 8, so it must be amplified.

  4. 4

    Amplify it with a resistor ratio. A feedback loop puts ΔV_BE across R₁, making a PTAT current. Through R₂ that current becomes K·ΔV_BE, with K = R₂/R₁.

  5. 5

    Add and cancel. V_REF = V_BE + K·ΔV_BE. Choose K so the falling and rising slopes cancel. The result lands near 1.2 V, the bandgap of silicon, which gives the circuit its name.

🔑 The one thing to remember

One voltage falls with temperature, another rises; add them in the right proportion and the sum stands still.

Design

Optimal K for N = 8: 11.82

Key formulas

  • V_BE: about 0.65 V, falling ≈ −2 mV/°C

    CTAT

  • ΔV_BE = V_T·ln(N), V_T = kT/q

    PTAT, rises with temperature

  • V_REF = V_BE + K·V_T·ln(N)

  • K·(k/q)·ln(N) = |dV_BE/dT|

    Condition for zero slope

  • TC = (V_max − V_min) / (V_mean·ΔT)

    Box-method temperature coefficient, ppm/°C

Core of the bandgap

VDDIIequal currents(PMOS mirror)V_BE1CBEQ11×R₁ΔV_BECBEQ28×A loop (op-amp) forces V_BE1 = V(top of R₁), so I·R₁ = V_BE1 − V_BE2 = V_T·ln NV_REF = V_BE + K·ΔV_BE, with K = R₂/R₁ set by an output resistor R₂

Each branch carries the same current I (→ direction). Diode-connected BJTs: base tied to collector.

Result at 27 °C

V_REF0.6500 V
Temperature coefficient3436.2 ppm/°C
V_T = kT/q25.86 mV
ΔV_BE53.78 mV
dV_BE/dT-2.108 mV/°C
d(K·ΔV_BE)/dT+0.000 mV/°C
Net slope at 27 °C-2.108 mV/°C
Spread −40…125 °C349.41 mV

CTAT + PTAT = flat

0501000.000.501.001.50V_BE (CTAT)K·ΔV_BE (PTAT)V_REFTemperature (°C)Voltage (V)

V_REF zoomed (deviation from mean)

050100-100.000.00100.00Temperature (°C)ΔV_REF (mV)

When tuned, the residual is a gentle bow: the curvature of V_BE, which first-order compensation cannot remove.

Things to try

  • Start at K = 0: V_REF is just V_BE, drifting by over 300 mV across the range.
  • Increase K slowly and watch the green line flatten, then tilt the other way.
  • Press Auto-tune and check that V_REF lands near 1.2–1.3 V regardless of N.
  • Change N: a larger N gives a bigger ΔV_BE, so the optimal K is smaller.
  • Look at the zoomed plot: the remaining error is a few mV of curvature.