Pursuant to 35 U.S.C. ยง119 and the Paris Convention Treaty, this application claims the benefit of Chinese Patent Application No. 200920056764.7 filed on May 11, 2009, the contents of which are incorporated herein by reference.
1. Field of the Invention
The invention relates to a detecting circuit, and more particularly to a clock detecting circuit.
2. Description of the Related Art
Nowadays, brushless DC motors are widely used. A typical problem with a controller of a conventional brushless DC motor is that clock precision of a microprocessor thereof is not high enough, which affects normal control and operation efficiency thereof, increases power consumption, or even leads to a destruction of the controller and the motor.
To solve the above-mentioned problems, several methods are employed: clock circuits with high precision are used, and special watchdog chips are used to detect clock precision of the microprocessors. However, these methods have several disadvantages: firstly, structure of the circuit using the methods is complex, secondly, production cost thereof is very high, and thus application of the brushless DC motor is limited.
In view of the above-described problem, it is one objective of the invention to provide a clock detecting circuit that features simple structure and low production cost, and is reliable and easy to be implemented.
To achieve the above objectives, in accordance with one embodiment of the invention, provided is a clock detecting circuit, comprising a microprocessor, a clock circuit, and a zero-cross detecting circuit. The clock circuit is connected to the microprocessor, an input end of the zero-cross detecting circuit is connected to a utility power AC input, an output end of the zero-cross detecting circuit is connected to an input end of the microprocessor, the zero-cross detecting circuit operates to detect zero crossing points of the utility power AC input, the microprocessor operates to count the number of oscillation periods of the clock circuit in a time interval between two adjacent zero crossing points of the utility power AC input, and to detect clock precision of the microprocessor according to the counted number.
In a class of this embodiment, the clock circuit is a crystal oscillating circuit.
In a class of this embodiment, the clock circuit is an oscillating circuit.
In a class of this embodiment, the microprocessor compares the counted number with a minimum threshold value and a maximum threshold value whereby determining whether the clock precision of the microprocessor meets a precision requirement.
In a class of this embodiment, the microprocessor is a micro controller unit.
In a class of this embodiment, the microprocessor is a digital signal processor.
In a class of this embodiment, it further comprises a rectifying and voltage-stabilizing circuit.
In a class of this embodiment, an input end of the rectifying and voltage-stabilizing circuit is connected to the utility power AC input.
In a class of this embodiment, an output end of the rectifying and voltage-stabilizing circuit operates to supply power to the zero-cross detecting circuit.
Advantages of the invention comprise: no special watchdog chip is needed to detect clock precision of the microprocessor, and thus circuit structure is simple, production cost is reduced, and the invention is reliable and easy to be implemented.
Detailed description will be given below in conjunction with accompanying drawings, in which:
As shown in
An input end of the rectifying and voltage-stabilizing circuit 1 is connected to the utility power AC input, and an output end of the rectifying and voltage-stabilizing circuit 1 operates to supply power to the zero-cross detecting circuit 2.
An input end of the zero-cross detecting circuit 2 is connected to a utility power AC input, and an output end of the zero-cross detecting circuit 2 is connected to an input end of the microprocessor 3.
The zero-cross detecting circuit 2 operates to detect zero crossing points of the utility power AC input.
The microprocessor 3 operates to count the number of oscillation periods of the clock circuit 4 in a time interval between two adjacent zero crossing points of the utility power AC input, and to detect clock precision of the microprocessor 3 according to the counted number. In this embodiment, the microprocessor 3 is a micro controller unit or a digital signal processor.
The clock circuit 4 is connected to the microprocessor 3. In this embodiment, the clock circuit 4 is a crystal oscillating circuit or an oscillating circuit.
As shown in
A method of using the clock detecting circuit of the invention comprises: firstly the zero-cross detecting circuit 2 detects zero crossing points of the utility power AC input, then the microprocessor 3 counts the number M of oscillation periods of the clock circuit 4 in a time interval between two adjacent zero crossing points of the utility power AC input, finally the microprocessor 3 compares the counted number with a minimum threshold value M0 and a maximum threshold value M1 whereby determining whether the clock precision of the microprocessor 3 meets a precision requirement. If M1>M>M0, the clock precision of the microprocessor 3 meets the precision requirement. If M<M0 or M>M1, the clock precision of the microprocessor 3 does not meet the precision requirement.
Operation of the clock detecting circuit of the invention is as follows: the rectifying and voltage-stabilizing circuit 1 supplies low-voltage DC power to the zero-cross detecting circuit 2, the zero-cross detecting circuit 2 detects zero crossing points of the utility power AC input, then the microprocessor 3 counts the number M of oscillation periods of the clock circuit 4 in a time interval between two adjacent zero crossing points of the utility power AC input, and finally the microprocessor 3 compares the counted number with a minimum threshold value M0 and a maximum threshold value M1 whereby determining whether the clock precision of the microprocessor 3 meets a precision requirement. In this embodiment, the utility power AC input is a sine wave signal with a frequency of 50 Hz and a wave period of 0.02 s, and a time interval between two adjacent zero crossing points of the utility power AC input is 0.01 s.
While particular embodiments of the invention have been shown and described, it will be obvious to those skilled in the art that changes and modifications may be made without departing from the invention in its broader aspects, and therefore, the aim in the appended claims is to cover all such changes and modifications as fall within the true spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2009 2 0056764 U | May 2009 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
3829962 | Simonelic | Aug 1974 | A |
3975678 | Erickson | Aug 1976 | A |
4255789 | Hartford et al. | Mar 1981 | A |
4779013 | Tanaka | Oct 1988 | A |
4809280 | Shonaka | Feb 1989 | A |
5128909 | Stein | Jul 1992 | A |
5619643 | Moroni et al. | Apr 1997 | A |
5742379 | Reifer | Apr 1998 | A |
5809336 | Moore et al. | Sep 1998 | A |
5821642 | Nishhira et al. | Oct 1998 | A |
5903747 | Casal | May 1999 | A |
6204623 | Levy et al. | Mar 2001 | B1 |
6343741 | Arends et al. | Feb 2002 | B1 |
6590376 | Bammert et al. | Jul 2003 | B1 |
6717394 | Elms | Apr 2004 | B2 |
20040085108 | Murata et al. | May 2004 | A1 |
20040093508 | Foerstner et al. | May 2004 | A1 |
20040193884 | Molaro et al. | Sep 2004 | A1 |
20050059368 | Saito et al. | Mar 2005 | A1 |
20050094745 | Miyanaga et al. | May 2005 | A1 |
20060132103 | Baratto et al. | Jun 2006 | A1 |
20070093928 | Forster et al. | Apr 2007 | A1 |
20090281757 | Mohebbi et al. | Nov 2009 | A1 |
20100171528 | Guillot et al. | Jul 2010 | A1 |
Number | Date | Country | |
---|---|---|---|
20100283510 A1 | Nov 2010 | US |