Field of the Invention
The present invention relates to a power control, and more particularly to an apparatus and method for automatically recognizing a frequency of power supply to be applied when the power supply would be applied to an electric/electronic device (hereinafter called just as device).
Background of the Invention
A device is made to operate with a predetermined operating frequency. In general, a commercial alternating current power supply is used worldwide, power frequencies of 50 Hz or 60 Hz.
Accordingly, if a part is mistaken in assembling or an operating frequency is set wrong in manufacture, or if a device is applied with a power of frequency other than a predetermined operating frequency upon use, there has been a problem that the device could not execute normal operation. For instance, when a user applies a commercial power supply of 50 Hz to a device for 50 Hz which was set wrong to 60 Hz in an operating frequency when manufactured, the device will execute error operation. Otherwise, when a user has purchased and used a device in a country using 50 Hz, and then if the user has emigrated to another country using 60 Hz and he or she has applied the commercial alternating current power supply of 60 Hz to the device, the device will execute an error operation.
Summary of the Invention
Therefore, it is an object of the present invention to provide an apparatus for automatically recognizing a frequency of power supply during an initial operation after an alternating current power supply is applied, and being capable of selecting an operating frequency to match the recognized frequency.
Another object of the present invention is to provide a method for automatically recognizing a frequency of power supply during an initial operation after an alternating current power supply is applied, and being capable of selecting an operating frequency to match the recognized frequency.
An apparatus for automatically recognizing a frequency of power supply, comprises a power transformer for transforming the commercial alternating current power supply to an operating voltage of the device, a period detecting means for shaping a wave form of output of the power transformer whereby generating a period detecting signal at every period of the wave form of the output, and a means for counting up the number of times generated with said period detected signal during a predetermined time period whereby discriminating the frequency of the applied power supply on the basis of the number of times.
Moreover, a method for automatically recognizing a frequency of power supply, comprises the steps of delaying an operation of a device during a predetermined time period at an initial time of power supply being applied whereby counting up the generated number of period detecting signal generated per every period of the applied power supply frequency, comparing the generated numbers of the counted period detecting signal with a predetermined reference value whereby discriminating the frequency of an applied power supply frequency, and selecting an operating frequency matching with the discriminated applying power supply frequency whereby driving the device.
Brief Description of the Drawings
FIG. 1 shows an apparatus according to the present invention, and
FIG. 2 is a flow chart depicting the operation of FIG. 1.
Detailed Description of the Invention
The present invention will be described in more detail with reference to the accompanying drawings.
In an embodiment of the present invention, since the frequency used worldwide of commercial alternating current power supply is 50 Hz or 60 Hz, it will be explained only for these power supply frequencies.
In accordance with FIG. 1 which is an embodiment of the present invention, a primary side 110 of a power transformer 100 is connected to a commercial alternating current power supply 200, and a secondary side of the power transformer 100 is connected to a control section 300 through a period detecting signal generating section 400.
The period detecting signal generating section 400 is constituted such that a (+) terminal of a diode D1 connected with a reference voltage Vcc and a (-) terminal of a diode D2 connected with a standard voltage Vss are connected in series together, and another end of a resistor R1 connected at one end to the secondary side of the power transformer 100 and another end of a resistor R2 connected at one end to an input terminal INT of the control section 300 are connected to the (-) terminal of the diode D1 or to the (+) terminal of the diode D2. Here, the reference voltage Vcc is set lower than the standard voltage Vss.
When the commercial alternating current power voltage is applied to the primary side of the power transformer 100, it is transformed to a predetermined device driving voltage and applied to the period detecting signal generating section 400 through the secondary side of the power transformer 100. At this moment, when the voltage applied to the period detecting signal generating section 400 is higher than the reference voltage Vss+voltage VD2 across the diode D2, the standard voltage Vss+the voltage VD2 across the diode D2 is applied to an input terminal INT, and when the voltage applied to the period detecting signal generating section 400 is lower than the reference voltage Vcc-the voltage VD1 across the diode D1, a predetermined signal, i.e., the reference voltage Vcc-the voltage VD1 across the diode D1 is applied to the input terminal INT of the control section 300.
And, above-described voltages have following expression of relation.
On the other hand, since the commercial alternating current power supply is a sinusoidal wave, the signal is generated by one time per period of the frequency. Accordingly, this signal can be called a period detecting signal.
After the operation as these are executed during a predetermined delay time period, the counted period detecting signal is compared with a predetermined reference value, as a result, a frequency of an inputting power supply is recognized.
Here, a predetermined reference value is determined in accordance with a predetermined delay time as describing below.
If it assumed that the period is T, the frequency is f, since T=1/f [second], if the power supply is applied at a zero point, in case of the commercial alternating current power supply of 50 Hz, it will be generated by one time at every 20 ms, and in case of the commercial alternating current power supply of 60 Hz, the period detecting signal will be generated by one time at approximately every 16.7 ms.
However, since the case that the alternating current power supply being not applied at zero point is practically much more, the period detecting signal is detected as in the following table.
As will be seen at above table, at between 216.7-220 of delay time, and when the value of C2 in FIG. 2 is set as 12, the frequencies of 50 Hz and 60 Hz can be most exactly discriminated. (It is same at the time of 223.3-240 [ms].) Hereinafter, when explaining the control flow chart of the present invention with reference to the FIG. 2, it will be as follows.
When the device is applied with the power supply at OFF state, while delaying the driving of the device during a predetermined time period, the generated number of times of the period detecting signal generated during that delayed time period are counted. This is called a delay stage, and when explaining the delay stage more in detail, it will be as follows.
When the commercial alternating current power supply is applied, firstly variables M and N are initialized (Step S1). Here, the variable M represents a present time, and the variable N represents the number of times generated with the period detecting signal.
The present time is made to be increased by a unit time (for example, by 1[ms]) (Step S2), and the variable M causing from the present time and a predetermined delay time C1 are compared whereby whether or not the predetermined delay time C1 has elapsed is discriminated(Step S3).
When the predetermined delay time C1 is not elapsed yet, whether or not the period detecting signal being generated is discriminated(Step S4), and when the period detecting signal is not detected, it is returned to the step S2. When the period detecting signal is generated, the variable N, indicating the number of times of period detecting signal generation or detection is increased by 1 (Step S5); and then it is returned to step S2.
When it is discriminated that the predetermined delay time C1 has elapsed, the variable N from the generated number of times of the counted period detecting signal during the delay stage and a predetermined reference value C2 corresponding to predetermined delay time C1 are compared, the frequency of the inputting power supply is discriminated. This is called a discriminating stage, and when explaining the judgement stage more in detail, it will be as follows.
When it is recognized that the predetermined delay time C1 is elapsed, the variable N from the generated number of times of the counted period detecting signal during delay stage and the predetermined reference value C2 determined in accordance with the predetermined delay time C1 are compared (Step S6), the frequency of the inputting power supply is recognized(Steps S7 and S8), and then the two variables M and N are cleared (Step S9).
When the frequency of the inputting power supply is recognized, an operating frequency coinciding to the recognized frequency is selected whereby normal operation of the device is executed(Step S10).
As described above, the present invention counts up the predetermined signal generating number of times generated at every period of the applied power frequency during a predetermined delay time, and compares that number of times with a predetermined reference value which is set in accordance with said predetermined delay time period, so that the frequency of the applied power supply is automatically recognized.
As a result of that, any error operation of the device generated from a difference between applied power frequency and operating frequency of the device, can be prevented.
In an embodiment of the present invention, it is explained for 50 Hz and 60 Hz which are the frequencies of generally used commercial alternating current power supply, however it is reasonable that the present invention can be applied to frequencies other than those exemplified
Although the invention has been described in conjunction with specific embodiments, it is evident that many alternatives and variations will be apparent to those skilled in the art in light of the foregoing description. Accordingly, the invention is intended to embrace all of the alternatives and variations that fall within the spirit and scope of the appended claims.