Abstract: A position encoder is described that generates a signal whose phase varies with a position to be determined. A phase detector determines a first phase measurement of the sensor signal during a first mode and a second phase measurement of said sensor signal during a second mode. The phase detector then differences the first and second phase measurements to obtain a phase difference measurement, which it uses to determine an indication of the position to be sensed. A controller controls a signal generator in order to set a start phase of signals generated in at least one of the first and second modes so that the timings at which said sensor signal crosses a reference level are substantially the same.