Projects

A fast voltage and temperature sensor, from scratch to silicon

One reference and one ADC that digitise both chip temperature and supply voltage at a high update rate, with the trim moved into the current domain.

Circuit diagram. Left, the PTAT core: two PNPs QP1 and QP2 of unequal emitter area, a resistor R1 in QP2's emitter path, a matched PMOS mirror MP1 and MP2, and an op-amp that holds the two mirror nodes equal, so I_PTAT equals delta V_BE over R1. Centre, highlighted: MP3, a bank of four parallel PMOS branches, each with its own switch set by the trim code stored in OTP, sourcing k times I_PTAT through resistor R2 into a diode-connected PNP QP3; V_REF is taken above R2 and the CTAT V_BE at QP3's emitter, so V_REF equals V_BE plus k times I_PTAT times R2. Callout: trim in the current domain, switch branches, not ohms. Right, an ADC with V_REF as its reference and, through switch S1, V_BE as its input, or through a filter and switches S2 to S4 the supply voltage or an external reference used for calibration; its output is mu equals V_in over V_REF. A digital block with sequencer and data formatter computes T equals A times (1 minus mu) minus B, runs calibration step 1 (trim code to OTP) and step 2 (slope A at one temperature), sends the trim code back to the bank, and outputs temperature and supply voltage.
Circuit diagram, after US 2023/0140251 A1.

A modern SoC needs frequent temperature and supply-voltage readings, for thermal management and for correcting drift in other blocks while the chip runs. I wanted one reference and one ADC to deliver both.

The difficulty is speed. Sampling a bandgap quickly means charging the sampling capacitors quickly, which needs large branch currents and therefore very small resistors. Trimming such a bandgap to about a degree then calls for resistor steps of a few ohms, which are hard to make accurately.

So the trim moved into the current domain. A PTAT generator (two unequally sized PNPs, a resistor, a matched PMOS mirror and an op-amp) feeds an adjustable current source: parallel PMOS branches that can be switched in or out. That current flows through a resistor on top of a diode-connected PNP, so VREF is VBE (CTAT) plus a scaled PTAT drop. Trimming means switching mirror branches, not shaving ohms off a resistor.

One ADC uses VREF as its reference and digitises either VBE, for temperature, or a supply or external voltage brought in through a filter and switches. With μ = VBE/VREF, the temperature is T = A·(1 − μ) − B. Calibration takes two steps: trim the reference against a known external voltage and store the code in OTP, then set the slope constant A at one known temperature. The same calibrated path then measures the supply voltage. A small digital block runs the conversions and the calibration.

I designed the sensor from scratch and took it to silicon. US 2023/0140251 A1, sole inventor, is pending; the Chinese counterpart CN116067516B is granted.

Published sources