I am using below code to read DIE temperature, but i am not getting correct value, please look into below code and give me whether i am missing anything ?
WriteReg(0, CELL_ADC_CONF1, 0x67, 1, FRMWRT_ALL_W);
WriteReg(0, CELL_ADC_CONF2, 0x08, 1, FRMWRT_ALL_W);
WriteReg(0, CONTROL2, 0x40, 1, FRMWRT_ALL_W);
WriteReg(0, CONTROL2, 0x01, 1, FRMWRT_ALL_W);
ReadReg(0, DIE_TEMPH, DIE_TEMP_Local_Buff, 2, 0, FRMWRT_ALL_R);
uint16 rawData = (DIE_TEMP_Local_Buff[boardByteStart+4] << 8) | DIE_TEMP_Local_Buff[boardByteStart+5];
//2's compliment of raw data
float DIE_Temp = Complement(rawData,0.02553);
finally i am getting 836.567017 is for DIE_Temp.