A magnetic field sensor for sensing a movement of a ferromagnetic target object having ferromagnetic target object features with a target feature width, comprising: a substrate; a first magnetoresistance element disposed upon the substrate for generating a first signal responsive to movement of the ferromagnetic target object features; a second magnetoresistance element disposed upon the substrate for generating a second signal responsive to movement of the ferromagnetic target object features; a first combining circuit disposed upon the substrate and configured to combine the first signal and the second signal (2704, 2706) to generate a feature signal (2708a, 2708b; 2802) having a largest value when a ferromagnetic target object feature is centered with the first and second magnetoresistance elements; a second combining circuit disposed upon the substrate and configured to combine the first signal and the second signal (2704, 2706) to generate an edge signal (2718a, 2718b; 2804) having a largest value when the first magnetoresistance element is on one side of an edge of a target feature and the second magnetoresistance element is on the other side of the same edge; and an electronic circuit disposed upon the substrate, coupled to receive the feature signal and the edge signal, wherein the electronic circuit is operable to compare the edge signal with one or more threshold values (2812a, 2812b) to generate a first two-state signal and operable to compare the feature signal with another one or more threshold values (2812a, 2812b) to generate a second two-state signal, wherein an output signal generated by the magnetic field sensor comprises a signal encoding that identifies the position of state transitions of a selected one of the first or the second two-state signal. a substrate; a first magnetoresistance element disposed upon the substrate for generating a first signal responsive to movement of the ferromagnetic target object features; a second magnetoresistance element disposed upon the substrate for generating a second signal responsive to movement of the ferromagnetic target object features; a first combining circuit disposed upon the substrate and configured to combine the first signal and the second signal (2704, 2706) to generate a feature signal (2708a, 2708b; 2802) having a largest value when a ferromagnetic target object feature is centered with the first and second magnetoresistance elements; a second combining circuit disposed upon the substrate and configured to combine the first signal and the second signal (2704, 2706) to generate an edge signal (2718a, 2718b; 2804) having a largest value when the first magnetoresistance element is on one side of an edge of a target feature and the second magnetoresistance element is on the other side of the same edge; and an electronic circuit disposed upon the substrate, coupled to receive the feature signal and the edge signal, wherein the electronic circuit is operable to compare the edge signal with one or more threshold values (2812a, 2812b) to generate a first two-state signal and operable to compare the feature signal with another one or more threshold values (2812a, 2812b) to generate a second two-state signal, wherein an output signal generated by the magnetic field sensor comprises a signal encoding that identifies the position of state transitions of a selected one of the first or the second two-state signal.