Stability of a stepping motor