Patent ID: 9667176
Date: 2017-05-30
CPC Classifications: H02P

Claim:
1. A method for driving a motor, comprising: providing a motor having a stator, a rotor, a plurality of coils coupled to the stator, and at least one Hall sensor coupled to the stator; generating a position indicator signal in response to a signal from the at least one Hall sensor, wherein the position indicator signal has a first period; generating a phase shift value using the position indicator signal; and adjusting the position indicator signal to generate an adjusted position indicator signal in response to the phase shift value, wherein generating the adjusted position indicator signal comprises: determining a number of times the position indicator signal transitions from a first level to a second level before a difference between a first edge of the position indicator signal and a corresponding first edge of the adjusted position indicator signal stabilize to form a first count value; multiplying the first count value with a predetermined number to generate a multiplied count value; and using the multiplied count value to determine an amount to advance the adjusted position indicator signal.