Another aspect of the analog peripherals that has changed is the temperature sensor. Each sensor has its own characteristics and response to temperature. In order to determine the temperature value the sensor is characterized over the full operating temperature range. This in turn generates a transfer function that the firmware can use to determine the temperature based on the voltage measurement. Each temperature sensor has its own transfer function and thus, porting from the flash based device to the OTP device requires the firmware to implement the algorithm that represents the new transfer function. In addition, the new temperature sensor has a single point calibration value stored in the memory. This calibration point is for 0ºC and uses VDD as the reference voltage. The example firmware shown provides an illustration of the high level steps required to monitor the temperature using this new offset value.

