User Manual
253
ATmega48A/PA/88A/PA/168A/PA/328/P [DATASHEET]
8271E–AVR–07/2012
temperature measurement can be calibrated in the application software. The software calibration requires that a
calibration value is measured and stored in a register or EEPROM for each chip, as a part of the production test.
The software calibration can be done utilizing the formula:
T = { [(ADCH << 8) | ADCL] - T
OS
} / k
where ADCn are the ADC data registers, k is a fixed coefficient and T
OS
is the temperature sensor offset value
determined and stored into EEPROM as a part of the production test.