Switch from continuous drive to pwm, near stop or out of acceleration period