In the calculation of the 2nd order temperature compensation offset in case of temperature >= 20 ° the calculation that is performed is this:
OFF2 = ((int64_t)TEMP + 1500) * ((int64_t)TEMP + 1500) >> 4;
But on the datasheet the formula is this:
OFFi = 1*(TEMP - 2000)^2 / 2^4;
What is the correct formula?
In the calculation of the 2nd order temperature compensation offset in case of temperature >= 20 ° the calculation that is performed is this:
OFF2 = ((int64_t)TEMP + 1500) * ((int64_t)TEMP + 1500) >> 4;But on the datasheet the formula is this:
OFFi = 1*(TEMP - 2000)^2 / 2^4;
What is the correct formula?