the bandgap reference
The bandgap reference is the clever trick that lets a chip make a stable voltage that barely moves with temperature — the gold-standard yardstick inside almost every modern regulator, ADC, and microcontroller. The name comes from the silicon bandgap, a fixed property of the material. The genius is in cancelling temperature drift: it adds two voltages that drift in opposite directions so their sum stays flat, the way mixing hot and cold taps to exactly the right blend gives water that stays the same temperature even as both taps wander.
Here is the mechanism. A forward-biased transistor's base-emitter voltage falls with temperature (it has a negative temperature coefficient, about negative 2 mV/°C). Separately, the difference between two transistors run at different current densities produces a voltage that rises with temperature (positive coefficient). The circuit scales the rising part and adds it to the falling part so the two slopes cancel, summing to roughly 1.2 V — close to silicon's bandgap energy — with near-zero net drift. From that 1.2 V core, internal amplifiers scale up to common reference values like 2.5 V, 4.096 V, or 5 V.
Why it matters: bandgap references are tiny, cheap, run on a normal supply, and hold 5 to 50 ppm/°C, which is why they are baked into countless chips rather than built from discrete parts. The honest caveats: the cancellation is not perfect, so the drift curve is a gentle arc rather than a flat line, and bandgaps are noisier than the best specialist references (buried-Zener types win on the very lowest noise and drift). For most work, though, the bandgap is the quiet hero that makes accuracy affordable.
The 1.2 V bandgap built into a microcontroller lets it measure its own supply: by reading the known 1.2 V against the supply-referenced ADC, firmware can work out the actual rail voltage and warn of a dying battery — all from that one temperature-stable internal reference.
Two opposite temperature drifts cancel to a near-flat ~1.2 V.
Bandgaps trade ultimate precision for integration. Their drift is a curve, not a flat line, and their noise exceeds buried-Zener references; for the most demanding instruments a specialist reference still wins, but for almost everything the on-chip bandgap is plenty.