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.
| Feature/Aspect | AVR® Temperature Sensor | PIC32CM Temperature Sensor |
|---|---|---|
| Integration | Integrated into ADC |
Varies per device family: Integrated into ADC Stand-alone Temperature Sensor (TSENS) peripheral |
| Sensor Access | ADC input channel |
ADC input channel Dedicated TSENS peripheral |
| Calibration Data Location | Signature/User Row | NVM |
| 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 Compensation | Required for high accuracy |
ADC: Required for high accuracy TSENS: Minimal |
