SLVA488B January 2014 – January 2021 DRV8434 , DRV8811 , DRV8818 , DRV8821 , DRV8824 , DRV8825
The concept of a deceleration profile the motor is virtually identical to the acceleration profile implementation except that instead of increasing stepper speed, speed is decreased.
There are two instances in which a deceleration profile may be employed: during SpeedUpdate or during StepperStop commands. In this implementation, the stepper deceleration profile is finished either when the start speed is reached or when the programmed number of steps is executed.
Also, it was chosen for the deceleration rate to hold a different memory location such that a non symmetric acceleration/deceleration profile, such as the one portrayed in Figure 2-1, could be employed.
The SpeedCompute and ClockConfigure are used in the same fashion as they were used during the acceleration portion of the motion control profile. However, the state machine, or the AccelDecel function, is configured to execute the DECEL portion of code.