An externally programmable shunt valve assembly that includes a motor having a rotor that is operable in response to an externally applied magnetic field and configured to increase or decrease the working pressure of the shunt valve assembly. The motor may further include a position sensing mechanism that allows a position of the rotor, and associated pressure setting of the valve, to be determined using an external magnetic sensor. In certain examples the motor further includes a mechanical brake that is magnetically operable between a locked position and an unlocked position and which, in the locked position, prevents rotation of the rotor.