Stepper motor acceleration using division