I'm afraid we do not have available further code than what's on the datasheet. However, note that if you want the temperature translated into Kelvin you may just need to add 273.15 to the sensor readout. For the example of datasheet it will suffice with wrtiting:

if ((0x2000 & ADC_Temp_Code) == 0x2000) //Check sign bit for negative value.

{

TempVal = (ADC_Temp_Code_dec - 16384)/32 + 273.15; //Conversion formula if negative temperature.

}

else

{

TempVal = (ADC_Temp_Code_dec/32) + 273.15; //Conversion formula if positive temperature.

Hi,

I'm afraid we do not have available further code than what's on the datasheet. However, note that if you want the temperature translated into Kelvin you may just need to add 273.15 to the sensor readout. For the example of datasheet it will suffice with wrtiting:

if ((0x2000 & ADC_Temp_Code) == 0x2000) //Check sign bit for negative value.

{

TempVal = (ADC_Temp_Code_dec - 16384)/32 + 273.15; //Conversion formula if negative temperature.

}

else

{

TempVal = (ADC_Temp_Code_dec/32) + 273.15; //Conversion formula if positive temperature.

}

Would that make sense?

Regards,

Lluis.