Hi All
I am trying to read a temperature off a I2C Chip
the data sheet says
5.4.1 DIE_TEMP (0x0F)
Temperature °C expressed as an 8-bit 2's complement number, however, the temperature is not trimmed for offset and the
compensation for offset must be done in user application. The sensitivity of the temperature reading is correct. Note: The register
allows for temperatures from -128°C to 127°C but the output range is from -40°C to 125°C
I am getting 250 out of it, if i do
temperature= ~temperature;
I get 5,
neither is correct, and if I do the second option, the temp goes down when I raise the die temperature.
the device is a freescale MAG3110
Thanks
Phil