The DRV8711DCPR generates the gate drive signals for four external half-bridge N-channel MOSFET pairs (two per motor winding) to form two complete H-bridges. The internal step indexer divides each full step into up to 256 microsteps, generating sinusoidal current references for the A and B windings with a 90-degree phase offset. The current through each winding is sensed via an external sense resistor and compared with the DAC-generated reference by an internal PWM chopper controller. When the sensed current exceeds the reference, the chopper enters the decay phase. The smart tune decay mode automatically selects the optimal fast-to-slow decay ratio based on the operating point, eliminating the need for manual decay tuning across speed and load conditions. The SPI interface provides full register-level control over microstep resolution, current setpoint, gate drive strength, blanking time, and decay parameters. The stall detection algorithm monitors the back-EMF of the motor to detect a stalled rotor without external sensors. Gate drive current is programmable from 5 mA to 80 mA per output, optimizing switching speed versus EMI for different MOSFET selections. Internal protection circuits include over-current protection (OCP), over-temperature shutdown (OTS), and under-voltage lockout (UVLO).