18.8
Temperature Measurement
7647H–AVR–03/12
The temperature measurement is based on an on-chip temperature sensor that is coupled to a
single ended ADC input. MUX[4..0] bits in ADMUX register enables the temperature sensor. The
internal 2.56V voltage reference must also be selected for the ADC voltage reference source in
the temperature sensor measurement. When the temperature sensor is enabled, the ADC con-
verter can be used in single conversion mode to measure the voltage over the temperature
sensor.
As shown
Figure
18-14, the temperature sensor is followed by a driver. This driver is enabled
when ADMUX value selects the temperature sensor as ADC input
Selection" on page 246.
two successive conversions are required. The correct temperature measurement will be the sec-
ond one.
One can also reduce this timing to one conversion by setting the ADMUX during the previous
conversion. Indeed the ADMUX can be programmed to select the temperature sensor just after
the beginning of the previous conversion start event and then the driver will be enabled 2 µS
before sampling and hold phase of temperature sensor measurement. See "Changing Channel
or Reference Selection" on page 235.
Figure 18-14. Temperature Sensor Block Diagram
Temperature
Sensor
The measured voltage has a linear relationship to the temperature as described in
page
243. The voltage sensitivity is approximately 2.5 mV/
ture measurement is +/- 10°C after bandgap calibration.
Table 18-3.
Temperature vs. Sensor Output Voltage (Typical Case)
Temperature / °C
Voltage / mV
The values described in
variation the temperature sensor output voltage varies from one chip to another. To be capable
of achieving more accurate results, the temperature measurement can be calibrated in the appli-
cation software.
Atmel ATmega16/32/64/M1/C1
The propagation delay of this driver is approximatively 2µS. Therefore
G=1
Enable when
ADMUX = Temp. Sensor input
-40°C
600 mV
Table 18-3 on page 243
See "ADC Input Channel
ADC
Input
Multiplexer
to sampling
and hold
ADMUX
C and the accuracy of the tempera-
°
+25°C
762 mv
are typical values. However, due to the process
Table 18-3 on
+125°C
1012 mV
243
Need help?
Do you have a question about the ATmega32M1 and is the answer not in the manual?
Questions and answers