Skip to content

2nd order temperature offset calculation wrong #2

@CSharpino

Description

@CSharpino

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions