MOTOR CONTROL CIRCUIT AND OPERATION METHOD THEREOF
A motor control circuit for controlling a motor includes a brake circuit and a control circuit. The brake circuit is for making the motor enter a braking state. The control circuit is for detecting a residual energy of the motor in the braking state. When the residual energy conforms to a predetermined criterion, the control circuit makes the motor exit the braking state.
1. Field of the Invention
The present invention relates to a motor control circuit, and more particularly, to a motor control circuit for controlling a motor to stay at/exit a braking state, and an operation method thereof.
2. Description of the Prior Art
A motor has many operation states such as states for clockwise rotation, counterclockwise rotation, stationary, and braking operations. A user needs to control and drive the motor through some peripheral circuits if he/she wants to maintain or change the current operation state of the motor.
When a user desires to change the operation state of the motor MT to a desired state, for example, changing from the clockwise rotation state to the stationary state, the user should first make motor MT enter a braking state for a period and then make motor MT enter the desired operation state. This operation sequence is necessary to avoid damaging motor MT or transistors M1-M4.
According to an embodiment of the present invention, a motor control circuit including a brake circuit and a control circuit is provided. The brake circuit is used for making the motor enter a braking state. The control circuit is used for detecting residual energy of the motor at the braking state and making the motor exit the braking state when the residual energy conforms to a predetermined criterion.
According to an embodiment of the present invention, a control method applied to a motor is further provided. The motor is controlled to enter a braking state. In the braking state, the residual energy of the motor is detected. The motor is controlled to exit the braking state when the residual energy conforms to a predetermined criterion.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
In this embodiment, the control circuit 420 includes a comparison circuit 422, which is used for determining whether the residual energy of the motor 410 in the braking state conforms to the predetermined criterion or not according to at least one of voltages VA and VB at nodes A and B of motor 410 respectively. If the previous state of motor 410 is a clockwise rotation state, then, in the present braking state, the residual current passing through motor 410 and the turned-on transistor M3 cause the voltage VA to be a negative voltage lower than the ground GND, such as −10 mV. Similarly, the residual current and the conductive resistance of transistor M4 cause the voltage VB to be a positive voltage higher than the ground GND, such as 10 mV. Since it may not be certain that motor 410 is in a clockwise or counterclockwise rotation state before entering the braking state, the voltage at only one of nodes A and B of motor 410 might not be enough to decide whether a discharge process provided in the braking state completes. This embodiment detects both voltages VA and VB to determine the time when the discharge process completes. Comparison circuit 422 determines that the residual energy of motor 410 conforms to the predetermined criterion, which identifies the complete of the discharge process, when voltages VA and VB are both smaller than a certain threshold voltage such as 3 mV. After the complete of the discharge process, control circuit 420 allows motor 410 to leave the braking state and then enter another operation state such as the stationary state. For example, control circuit 420 turns off transistors M1-M4 to thereby make motor 410 leave the braking state and enter the stationary state.
Additionally, according to one of voltages VA and VB and the current flow direction of the residual current, comparison circuit 422 can also determine whether the discharge process completes. For instance, if the motor 410 is in the clockwise rotation state before entering the braking state, comparison circuit 422 can set either a corresponding negative threshold voltage for the voltage VA or a corresponding positive threshold voltage for the voltage VB, to determine whether the residual energy conforms to the predetermined criterion or not.
Furthermore, comparison circuit 422 can also decide whether the discharge process completes according to voltage difference between voltages VA and VB. For instance, comparison circuit 422 decides that the discharge process to motor 410 completes when the voltage difference between voltages VA and VB is smaller than 6 mV.
Since the conductive resistances of transistors M3 and M4 shall be very small, the voltage at nodes VA and VB of
Moreover, after receiving the brake enable signal SEN, the control circuit 420′ may use corresponding control signals S1-S6 to turn off transistors M1-M2 and turn on transistors M3-M6, so as to make motor 410 enter the braking state. A short-circuit loop L′ is formed by motor 410 and transistors M3-M6. Transistors M3-M6 and resistors R1-R2 can be regarded as a brake circuit to motor 410. To simplify control signaling, an implementation can be achieved by designing transistors M3 and M5 to receive a common control signal, and transistors M4 and M6 to receive another common control signal. Furthermore, the physical sizes of the transistors M5-M6 can be respectively designed to be much smaller than those of the transistors M3-M4 such that currents passing through the transistors M5-M6 are respectively far smaller than those passing through the transistors M3-M4. Accordingly, during the operation at the clockwise rotation state or counterclockwise rotation state, most of operation current will flow through transistor M3 or M4 and the energy consumed by transistor M5/M6 and resistor R1/R2 can be negligible.
Similarly, based on at least one of voltages VA′ and VB′, comparison circuit 422′ of control circuit 420′ can determine whether the residual energy of motor 410 conforms to a predetermined criterion or not. For example, when the voltages VA′ and VB′ are both lower than a threshold voltage, the voltage difference between the voltages VA′ and VB′ is lower than a threshold value, or one of the voltages VA′ and VB′ is lower/higher than a threshold value, comparison circuit 422′ can decide that the residual energy of motor 410 conforms to the predetermined criterion. Control circuit 420′ then permits motor 410 to leave the braking state.
Reference current IR passes through reference transistor MR such that the voltage difference VgsR between the gate and source terminals of the reference transistor MR becomes fixed. If the voltage level of voltage VA is less than that of Vth, transistor M7 is on; if not, transistor M7 is off. A turned-on transistor M7 pulls low the gate voltage of transistor M9, turning on transistor M9; or, in the opposite, a turned-off transistor M7 turns off transistor M9. The operations of transistors M8 and M10 are similar with that of transistors M7 and M9, such that their explanations are omitted for brevity. Only if both transistors M9 and M10 are on, then discharge completion signal SD has a logic high voltage level; otherwise, discharge completion signal SD has a logic low output level. Accordingly, discharge completion signal SD with a logic high voltage level can be an indicator indicating that both voltages VA and VB are less than threshold voltage Vth, and that the discharge process to the motor has been accomplished. At this moment, the residual energy of the motor conforms to the predetermined criterion. It should be noted that, in other embodiments, a user may couple the drain terminals of the transistors M7 and M8 to voltages VA′ and VB′, respectively, of
Please note that the conventional scheme for linearly controlling the conductance of a transistor to fix the driving current can be applied to each embodiment of the present invention. For example, the driving current detection circuit 120 in
To summarize, the apparatus and related methods provided by the embodiments of the present invention monitor residual energy of a motor to determine whether the motor has been discharged completely or not, and the motor is allowed to exit the brake state when the residual energy has reached a safe range. Therefore, the apparatus can avoid the residual energy becoming too high and causing oscillation voltage with large amplitude at the output terminals of the motor. In other words, the apparatus of the present invention can prevent damage to the motor and the related peripheral circuit.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention.
Claims
1. A motor control circuit for controlling a motor, comprising:
- a brake circuit, for making a first node and a second node of the motor form a short-circuit loop, so as to make the motor enter a braking state; and
- a control circuit, for detecting residual energy of the motor in the brake state, and for making the motor exit the braking state when the residual energy conforms to a predetermined criterion.
2. The motor control circuit of claim 1, wherein the residual energy is determined according to a residual current passing through the motor.
3. The motor control circuit of claim 1, wherein the residual energy is determined according to at least one of a first voltage at the first node and a second voltage at the second node.
4. The motor control circuit of claim 3, wherein the control circuit comprises a comparison circuit for determining whether the residual energy conforms to the predetermined criterion, and the comparison circuit determines that the residual energy conforms to the predetermined criterion when at least one of the first and second voltages is lower than a threshold voltage.
5. The motor control circuit of claim 4, wherein the comparison circuit comprises:
- a first comparator, for outputting a first comparison result according to the threshold voltage and the first voltage;
- a second comparator, for outputting a second comparison result according to the threshold voltage and the second voltage; and
- a logic unit, for determining whether the residual energy conforms to the predetermined criterion according to the first and second comparison results.
6. The motor control circuit of claim 4, wherein the comparison circuit comprises:
- a reference transistor, having a first terminal coupled to a reference current, a second terminal coupled to the threshold voltage, and a control terminal coupled to the first terminal of the reference transistor;
- a first resistor;
- a second resistor;
- a first transistor, having a first terminal coupled to a logic high voltage level via the first resistor, a second terminal coupled to the first voltage, and a control terminal coupled to the control terminal of the reference transistor;
- a second transistor, having a first terminal coupled to the logic high voltage level via the second resistor, a second terminal coupled to the second voltage, and a control terminal coupled to the control terminal of the reference transistor; and
- a logic unit, coupled to the first and second transistors, for determining whether the residual energy conforms to the predetermined criterion according to a voltage at the first terminal of the first transistor and a voltage at the first terminal of the second transistor.
7. The motor control circuit of claim 1, wherein the brake circuit comprises:
- a first transistor, coupled to the first node; and
- a second transistor, coupled to the second node;
- wherein the short-circuit loop is formed when the first and second transistors become conductive.
8. The motor control circuit of claim 7, wherein the brake circuit further comprises:
- a first resistor, connected to the first transistor in series; and
- a second resistor, connected to the second transistor in series;
- wherein the residual energy is determined according to at least one of a voltage drop across the first resistor and a voltage drop across the second resistor.
9. The motor control circuit of claim 7, wherein the brake circuit further comprises:
- a third transistor, connected to the first node and the first transistor;
- a first resistor, connected to the third transistor in series;
- a fourth transistor, connected to the second node and the second transistor; and
- a second resistor, connected to the fourth transistor in series;
- wherein the residual energy is determined according to at least one of a voltage drop across the first resistor and a voltage drop across the second resistor.
10. The motor control circuit of claim 8, wherein the control circuit comprises a comparison circuit determining that the residual energy conforms to the predetermined criterion when at least one of the voltage drop across the first resistor and the voltage drop across the second resistor is lower than a threshold voltage.
11. The motor control circuit of claim 10, wherein the comparison circuit comprises:
- a first comparator, for outputting a first comparison result according to the threshold voltage and the voltage drop across the first resistor;
- a second comparator, for outputting a second comparison result according to the threshold voltage and the voltage drop across the second resistor; and
- a logic unit, for determining whether the residual energy conforms to the predetermined criterion according to the first and second comparison results.
12. The motor control circuit of claim 1, wherein the control circuit comprises a flip-flop for setting a brake control signal according to a brake enable signal and clearing the brake control signal according to whether the residual energy conforms to the predetermined criterion, wherein the brake control signal controls the brake circuit so as to make the motor stay at or leave the braking state.
13. A control method applied to a motor, comprising:
- making the motor enter a braking state;
- detecting residual energy of the motor in the braking state; and
- making the motor exit the braking state when the residual energy conforms to a predetermined criterion.
14. The control method of claim 13, wherein when the motor is in the braking state, a residual current flows into a first node of the motor and from a second node of the motor, and the residual energy is determined according to at least one of a first voltage at the first node and a second voltage at the second node.
15. The control method of claim 14, further comprising:
- determining that the residual energy conforms to the predetermined criterion when voltage difference between the first and second voltages is smaller than a threshold value.
16. The control method of claim 14, further comprising:
- determining that the residual energy conforms to the predetermined criterion when at least one of the first and second voltages is lower than a threshold voltage.
17. The control method of claim 13, wherein when the motor is in the braking state, a residual current flows into a first node of the motor and from a second node of the motor, and the residual energy is determined according to at least one of a first voltage representing the residual current flowing into the motor and a second voltage representing the residual current flowing from the motor.
18. The control method of claim 17, further comprising:
- determining that the residual energy conforms to the predetermined criterion when voltage difference between the first and second voltages is smaller than a threshold value.
19. The control method of claim 17, further comprising:
- determining that the residual energy conforms to the predetermined criterion when at least one of the first and second voltages is lower than a threshold voltage.
20. The control method of claim 13, further comprising:
- detecting a residual current passing through the motor in the braking state; and
- making the motor leave the braking state when the residual current conforms to the predetermined criterion.
Type: Application
Filed: Sep 10, 2008
Publication Date: Oct 29, 2009
Patent Grant number: 8044617
Inventor: Ching-Tsan Lee (Hsin-Chu)
Application Number: 12/208,330
International Classification: H02P 3/12 (20060101);