The adc_temp_sensor example demonstrates how to use the temperature sensor feature inside the microcontroller.
This example can be used on any SAM3/4 boards.
Temperature sensor output range is from 0 to 3300 mv, hence ADVREF must be set to 3300 mv in order to provide reliable temperature information. Please refer to the board schematics for ADVREF jumper configuration.
The adc_temp_sensor is aimed to demonstrate the temperature sensor feature inside the device. To use this feature, the temperature sensor should be turned on by setting TSON bit in ADC_ACR. The channel 15 is connected to the sensor by default. With PDC support, the Interrupt Handler of ADC is designed to handle RXBUFF interrupt.
The temperature sensor provides an output voltage (VT) that is proportional to absolute temperature (PTAT). The relationship between measured voltage and actual temperature could be found in Electrical Characteristics part of the datasheet.