I need to use ADT7301 with translated to Kelvin readout, can anyone have source code for this?. I have 16 bit MCU.
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.
TempVal = (ADC_Temp_Code_dec/32) + 273.15; //Conversion formula if positive temperature.
Would that make sense?
Retrieving data ...