Patent ID: 8040087

Claim:
A control device for driving a motor which comprises a rotor and a stator, the control device comprising: a Hall detector detecting magnetic flux variation when the rotor rotates and generating a first detection signal and a second detection signal, wherein the first and second detection signals represent current rotation location when the rotor rotates; and a driving circuit generating a driving signal to drive the stator and turning on or off the driving signal according to a control signal and the relationship between the first and second detection signals; wherein the driving circuit comprises: a comparing unit comparing the first and second detection signals and generating a determination signal according to the compared result; a counting unit receiving a first clock signal and the determination signal, counting according to the first clock signal, and reset according to transition of the determination signal, wherein the counting unit performs a division operation to the counted result and a first coefficient to generate a counting signal; a register unit receiving and temporarily storing the counting signal and reset according to the transition of the determination signal; a first programmable counting unit counting the counting signal by the first clock signal to generate a second clock signal and reset according to the transition of the determination signal or the second clock signal; a second programmable counting control signal and counting the control signal by the second clock signal to generate a switch signal, wherein the second programmable counting unit is reset according to the transition of the determination signal; and a driving unit, generating the driving signal according to a pulse width modulation (PWM) signal and storming generation of the driving signal according to the switch signal.