A position sensor device for measuring a position, comprising: - a plurality of position sensor elements adapted to generate a plurality of analog sense signals (S k), each analog sense signal being substantially a same sinusoid function shifted over a different offset phase, wherein an input phase (θ i) of the sinusoid function is representative of the position to be measured, - a digitization circuit that is coupled on its input side to the sensor elements and that is adapted to provide a digital signal representative of the input phase (θ i) based on the plurality of analog sense signals, - a digital processing unit, and - an output for outputting a device output signal indicative of the position to be measured based on a first output of the digital processing unit, wherein said digital processing unit comprises: - an error signal generator for receiving the digital signal and a feedback signal and for computing an error signal indicative of a phase difference between the digital signal and the feedback signal, - a digital filter for filtering the error signal to generate the first output, the digital filter comprising a common filter circuit; - a feedback path for providing the feedback signal to the error signal generator, in which the feedback signal is based on the first output of the digital filter, and - a filter selector to select a filter to be applied by the digital filter from a plurality of different filters, each having a different transfer function, wherein said selection is based on the error signal or an output of the digital filter, wherein said plurality of filters are implemented by the common filter circuit of the digital filter, and wherein at least one input on which the common filter circuit operates is scaled differently for each of the different filters to obtain different filter bandwidths depending on the selected filter. - a plurality of position sensor elements adapted to generate a plurality of analog sense signals (S k), each analog sense signal being substantially a same sinusoid function shifted over a different offset phase, wherein an input phase (θ i) of the sinusoid function is representative of the position to be measured, - a digitization circuit that is coupled on its input side to the sensor elements and that is adapted to provide a digital signal representative of the input phase (θ i) based on the plurality of analog sense signals, - a digital processing unit, and - an output for outputting a device output signal indicative of the position to be measured based on a first output of the digital processing unit, wherein said digital processing unit comprises: - an error signal generator for receiving the digital signal and a feedback signal and for computing an error signal indicative of a phase difference between the digital signal and the feedback signal, - a digital filter for filtering the error signal to generate the first output, the digital filter comprising a common filter circuit; - a feedback path for providing the feedback signal to the error signal generator, in which the feedback signal is based on the first output of the digital filter, and - a filter selector to select a filter to be applied by the digital filter from a plurality of different filters, each having a different transfer function, wherein said selection is based on the error signal or an output of the digital filter, - an error signal generator for receiving the digital signal and a feedback signal and for computing an error signal indicative of a phase difference between the digital signal and the feedback signal, - a digital filter for filtering the error signal to generate the first output, the digital filter comprising a common filter circuit; - a feedback path for providing the feedback signal to the error signal generator, in which the feedback signal is based on the first output of the digital filter, and - a filter selector to select a filter to be applied by the digital filter from a plurality of different filters, each having a different transfer function, wherein said selection is based on the error signal or an output of the digital filter, wherein said plurality of filters are implemented by the common filter circuit of the digital filter, and wherein at least one input on which the common filter circuit operates is scaled differently for each of the different filters to obtain different filter bandwidths depending on the selected filter.