Patent attributes
A system is provided for driving a load such as a multi-phase motor. The system includes a motor driver that has a plurality of switches coupled to a motor to drive a current through each of a plurality of phase coils of the motor. A polarity detection circuit detects a polarity of the current in one or more of the phase coils of the motor to generate a polarity value that represents the detected current polarity. The polarity detection circuit can include at least one comparator that has a first input coupled to a node between two of the plurality of switches, a second input coupled to receive a threshold value, and an output from which the polarity value is provided. Further included is a controller that is configured to provide a plurality of pulse width modulated (PWM) output control signals to the plurality of switches to control the switches to drive the current through the plurality of phase coils of the motor. In response to the polarity value, the controller is configured to alter a duty cycle of the plurality of PWM output control signals to modify a voltage applied to the plurality of phase coils of the motor.