An easy to program magnetic rotary position sensor with a high-resolution 12-bit analog or PWM output.