A circuit for detecting a movement of an object, comprising: at least one magnetic field sensing element (14; 52a-c) for generating a DIFF signal proportional to a magnetic field associated with the object, wherein the DIFF signal has cycles including a present cycle; at least one motion detector (300; 350; 400; 450; 500; 550) configured to generate a motion signal (308a; 354a; 402; 452; 502; 552) indicative of the movement of the object, wherein the motion signal has edges associated with the cycles of the DIFF signal, wherein the at least one motion detector comprises: a threshold generator circuit (320; 356; 554) coupled to receive the DIFF signal and configured to generate a threshold signal (320a; 320b-c; 356a; 554a-b); characterized in that the at least one motion detector further comprises: at least one threshold selection module (326; 366; 404; 454; 506, 508; 556; 558) coupled to receive the threshold signal, configured to save samples of the threshold signal, configured to select samples of the threshold signal associated with a prior cycle of the DIFF signal a predetermined number of cycles before the present cycle, and configured to generate a selected threshold signal (326a; 366a; 404a; 454a; 506a, 508a; 556a, 558a) related to the selected samples of the threshold signal; and a comparator (308; 354) coupled to receive a signal (316a; 364a; 464; 514; 564) representative of the selected threshold signal, coupled to receive the DIFF signal, configured to compare the signal representative of the selected threshold signal with the DIFF signal, and configured to generate the motion signal (308a; 354a; 402; 452; 502; 552). at least one magnetic field sensing element (14; 52a-c) for generating a DIFF signal proportional to a magnetic field associated with the object, wherein the DIFF signal has cycles including a present cycle; at least one motion detector (300; 350; 400; 450; 500; 550) configured to generate a motion signal (308a; 354a; 402; 452; 502; 552) indicative of the movement of the object, wherein the motion signal has edges associated with the cycles of the DIFF signal, wherein the at least one motion detector comprises: a threshold generator circuit (320; 356; 554) coupled to receive the DIFF signal and configured to generate a threshold signal (320a; 320b-c; 356a; 554a-b); characterized in that the at least one motion detector further comprises: at least one threshold selection module (326; 366; 404; 454; 506, 508; 556; 558) coupled to receive the threshold signal, configured to save samples of the threshold signal, configured to select samples of the threshold signal associated with a prior cycle of the DIFF signal a predetermined number of cycles before the present cycle, and configured to generate a selected threshold signal (326a; 366a; 404a; 454a; 506a, 508a; 556a, 558a) related to the selected samples of the threshold signal; and a comparator (308; 354) coupled to receive a signal (316a; 364a; 464; 514; 564) representative of the selected threshold signal, coupled to receive the DIFF signal, configured to compare the signal representative of the selected threshold signal with the DIFF signal, and configured to generate the motion signal (308a; 354a; 402; 452; 502; 552). at least one threshold selection module (326; 366; 404; 454; 506, 508; 556; 558) coupled to receive the threshold signal, configured to save samples of the threshold signal, configured to select samples of the threshold signal associated with a prior cycle of the DIFF signal a predetermined number of cycles before the present cycle, and configured to generate a selected threshold signal (326a; 366a; 404a; 454a; 506a, 508a; 556a, 558a) related to the selected samples of the threshold signal; and a comparator (308; 354) coupled to receive a signal (316a; 364a; 464; 514; 564) representative of the selected threshold signal, coupled to receive the DIFF signal, configured to compare the signal representative of the selected threshold signal with the DIFF signal, and configured to generate the motion signal (308a; 354a; 402; 452; 502; 552).