Skip to main content

Microcontrollers

Section 7.4 The ATmega328P Internal Temperature Sensor

The ATmega328P contains an internal temperature sensor whose output is connected to one of the input channels on the ADC multiplexer selection register (ADMUX). When using this input channel, the internal 1.1 V reference voltage must also be selected in ADMUX.
When using the ADC in full-precision (10-bit) mode, the relationship between temperature (\(T\text{,}\) measured in °C) and the ADC value is given in (7.4.1).
\begin{equation} T = \frac{781 \times \textrm{ADC}}{1000} - 250\tag{7.4.1} \end{equation}