Patent ID: 11402280

Abstract:
A magnetic field sensor is provided with improved stress compensation accounting for temperature. The magnetic field sensor includes a stress sensing, element, a temperature sensing element, a magnetic field sensing element, a memory, and an electronic circuitry. The memory is configured to store a first table. The first table identities a plurality of stress-to-sensitivity coefficients. Each of the plurality of stress-to-sensitivity coefficients is mapped to a different temperature value. The electronic circuitry is configured to use a temperature reading and a stress reading to calculate a stress difference between an expected stress and the stress reading. The electronic circuitry is further configured to obtain a stress-to-sensitivity coefficient that corresponds to the temperature reading by using the first table, calculate a gain adjustment coefficient based an the stress-to-sensitivity coefficient, and adjust a gain of a signal that is generated by the magnetic field sensing element based on the grain adjustment coefficient.