A device that measures very small local magnetic fields, the device comprising:
- at least one magnetoresistive element including a hard-magnetic reference layer and a soft-magnetic sensor layer, wherein
- a magnetization of the soft-magnetic sensor layer is configured to rotate to a position parallel or antiparallel with respect to a magnetization of the hard-magnetic reference layer, and
- the at least one magnetoresistive element is configured to output a plurality of signals dependent on the position of the magnetization of the sensor layer with respect to the magnetization of the reference layer;
- and
- at least one interconnect adjacent to the at least one magnetoresistive element and configured to couple to an external power supply, wherein
- a varying current flowing through the at least one interconnect produces a varying saturation magnetic field, the varying saturation magnetic field being at right angles to the magnetization of the reference layer and saturating the magnetization of the sensor layer,
- switching off or reducing the varying saturation magnetic field causes the magnetization of the sensor layer to pass a critical point as the magnetization of the sensor layer comes out of saturation, the critical point being an unstable magnetization state of the sensor layer in which the magnetization of the sensor layer is saturated and the saturated magnetization state of the sensor layer is in thermodynamic equilibrium with at least two other magnetization states of the sensor layer,
- the magnetization of the sensor layer attains one of the at least two other magnetization states of the critical point due to an influence of a local magnetic field resulting in a change in a signal tapped off at the critical point, the signal being from the plurality of signals, and
- only the signal tapped off at the critical point is recorded and evaluated.