Patent ID: 8058864

Claim:
A magnetic field sensor, comprising: a magnetic field sensing element configured to provide a magnetic field signal representative of a magnetic field experienced by the magnetic field sensing element; a threshold generating circuit configured to generate a plurality of different threshold signals; at least one comparator coupled to receive at least one of the plurality of different threshold signals at a first input node, and the at least one comparator coupled to receive the magnetic field signal at a second input node, wherein the at least one comparator is configured to generate a plurality of comparison signals indicative of the magnetic field signal having an amplitude above or below respective ones of the plurality of different threshold signals, and wherein a sensor output signal is generated by and output from the magnetic field sensor based on the plurality of comparison signals; and a logic circuit coupled to receive the plurality of comparison signals, configured to adaptively select one of the plurality of comparison signals, configured to provide the selected one of the plurality of comparison signals as the sensor output signal, configured to adaptively select another different one of the plurality of comparison signals in response to a change of amplitude of the magnetic field signal, and configured to provide the selected another different one of the plurality of comparison signals as the sensor output signal in response to the change of the amplitude of the magnetic field signal.