5.7.3 Temperature Sensor

AVR and PIC32CM MCUs provide an integrated temperature sensor for on-chip temperature monitoring, typically accessible via the ADC. Calibration data is stored in nonvolatile memory to improve measurement accuracy and enable software compensation for precise readings. These sensors are used for thermal management, diagnostics and temperature compensation in embedded systems. Table 5-29 shows a comparison of features between AVR and PIC32CM.

Table 5-29. AVR® and PIC32CM Temp Sensor Features
Feature/AspectAVR® Temperature SensorPIC32CM Temperature Sensor
IntegrationIntegrated into ADC

Varies per device family:

Integrated into ADC

Stand-alone Temperature Sensor (TSENS) peripheral

Sensor AccessADC input channel

ADC input channel

Dedicated TSENS peripheral

Calibration Data LocationSignature/User RowNVM
Typical Accuracy

±5°C (uncalibrated)

Improved with calibration

ADC: ±2°C to ±5°C (uncalibrated)

Improved with calibration

TSENS: ±1°C to ±2°C (with calibration)

Temperature Range-40°C to +125°C (typical)-40°C to +125°C (typical)
Software CompensationRequired for high accuracy

ADC: Required for high accuracy

TSENS: Minimal