The stepper motor is used for position control by moving through a certain number of steps. While a stepper motor has a fixed number of steps per revolution, it is possible to move through micro-steps, which improves the step resolution. Micro-stepping also reduces torque ripple and power losses in the motor. The IP block generates theta that is used by the stepper motor control algorithm. It is possible to select microstepping up to 2048 microsteps.