Information
-
Patent Application
-
20010010461
-
Publication Number
20010010461
-
Date Filed
December 11, 200024 years ago
-
Date Published
August 02, 200123 years ago
-
CPC
-
US Classifications
-
International Classifications
Abstract
A phase comparator for calculating the phase difference between a test wave form and an output wave form in a disk driver according to the invention includes a phase converter, a first multiplier, a first integrator, a second multiplier, a second integrator and a phase angle calculator. The phase converter for delaying the test wave form for a specific time based on the frequency thereof. The first multiplier electrically coupled to the phase converter for performing a first operation by multiplying the delayed test wave form with the output wave form. The first integrator electrically coupled to the first multiplier for integrating the result of the first operation for a period to generate a first weighted value. The second multiplier for performing a second operation by multiplying the test wave form with the output wave form. The second integrator electrically coupled to the second multiplier for integrating the result of the second operation for the same period to generate a second weighted value. The phase angle calculator electrically coupled to the first integrator and the second integrator for receiving the first weighted value and the second weighted value and then outputting a value representing the phase difference between the test wave function and the output wave form.
Description
CROSS-REFERENCE TO RELATED APPLICATION
[0001] This application claims the priority benefit of Taiwan application serial no. 89101460, filed Jan. 28, 2000.
BACKGROUND OF THE INVENTION
[0002] 1. Field of the Invention
[0003] The invention relates to a phase comparator and a method for phase difference comparasion using the same, and more particularly to a comparator and a method for calculating the phase difference between an output wave form and an input wave form using an orthogonal characteristic.
[0004] 2. Description of the Related Art
[0005] Typically, disk drivers, such as soft disk drives, hard disk drives and compact disk (CD) drives, each use different devices having different parameters in its own compensator system, resulting in a drift on an output result. In order to make each manufactured disk driver have a consistent system bandwidth, the operation of an open loop gain adjustment must be performed in the compensator system thereof.
[0006] Furthermore, to resolve the above problem, a test wave form must be inputted to the circuit system of each disk driver to generate an output wave form. Next, a phase comparator receives the test wave form and the output wave form to calculate the phase difference therebetween. Thereafter, the compensator performs a gain adjustment according to the phase difference thereby to keep the system bandwidth consistent.
[0007] Referring to FIG. 1, a device for a phase difference calculation according to the prior art is shown. First, a test wave form, generally a sine wave form, is inputted to a circuit system 10 of a CD driver (not shown) to generate a corresponding signal. According to the corresponding signal, a band pass filter 20 outputs an output wave form. The central frequency of the band pass filter 20 is the same as the frequency of the test wave form. Then, a phase comparator 30 receives the test wave form and the output wave form to generate a resultant signal back to the circuit system 10 for performing an open loop gain adjustment. As a result, each disk driver can be well controlled to have a consistent phase difference.
[0008] Referring now to FIG. 2, the phase difference between the test wave form and the output wave form is shown. In the prior art, a sampling signal is used to sample two zero cross points of the test wave form and the output wave form thereby to obtain a time difference between the two zero cross points as shown in FIG. 2.
[0009] However, it is inevitable that the output wave form after being inputted to the circuit system 10 will bring a plenty of noise signals. Assume that the noise signals are generated around the two zero cross points, and therefore, the phase comparator 30 can not accurately calculate the phase difference of the two signals, or the phase difference will be erroneously calculated.
SUMMARY OF THE INVENTION
[0010] In view of the above, the invention relates to a comparator and a method for calculating the phase difference between an output wave form and a test wave form using an orthogonal characteristic.
[0011] A phase comparator for calculating the phase difference between a test wave form and an output wave form in a disk driver according to the invention includes a phase converter, a first multiplier, a first integrator, a second multiplier, a second integrator and a phase angle calculator. The phase converter for delaying the test wave form for a specific time based on the frequency thereof. The first multiplier electrically coupled to the phase converter for performing a first operation by multiplying the delayed test wave form with the output wave form. The first integrator electrically coupled to the first multiplier for integrating the result of the first operation for a period to generate a first weighted value. The second multiplier for performing a second operation by multiplying the test wave form with the output wave form. The second integrator electrically coupled to the second multiplier for integrating the result of the second operation for the same period to generate a second weighted value. The phase angle calculator electrically coupled to the first integrator and the second integrator for receiving the first weighted value and the second weighted value and then outputting a value representing the phase difference between the test wave form and the output wave form.
[0012] A method for calculating the phase difference between a test wave form and an output wave form according to the invention includes the following steps. The test wave form is delayed for a specific time. A first operation is performed by multiplying the output wave form with the delayed test wave form. The result of the first operation is integrated for a period to generate a first weighted value. A second operation is performed by multiplying the output wave form with the test wave form. The result of the second operation is integrated for the same period to generate a second weighted value. A value of tan-1 (the first weighted value/the second weighted value) is calculated.
BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The invention will become more fully understood from the detailed description given hereinafter and the accompanying drawings which are given by way of illustration only, and thus do not limit the present invention, and wherein:
[0014]
FIG. 1 is a block circuit diagram showing a device for calculating a phase difference according to the prior art;
[0015]
FIG. 2 is a waveform graph showing the phase difference between a test wave form and an output wave form; and
[0016]
FIG. 3 is a block circuit diagram showing a phase comparator according to the invention.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
[0017] Referring to FIG. 3, a phase comparator according to the invention is shown. First, a test wave form of cos(2π ft+φ) with f=1.38 kHz is shifted 90° into a function of sin(2π ft+φ) by a phase shifter 40. That is, the test wave form of cos(2π ft+φ) is delayed for a specific time of
1
[0018] (m is a positive integer) seconds or a specific phase angle of n×360°+90° (n is a positive integer), to become a function of sin(2π ft+φ) by the phase shifter 40.
[0019] Next, the test wave form of cos(2π t+φ) is multiplied by an output wave form (like that shown in FIG. 1) using a multiplier 50, and then integrated for a complete period by an integrator 60 to generate a first weighted value B. Similarly, the converted function of sin(2π t+φ) is multiplied by the output wave form using a multiplier 51, and then integrated for a complete period by an integrator 61 to generate a second weighted value A. The two values B and A are inputted to a phase angle calculator 70 to generate a value
2
[0020] Since any one periodic function f(t) can be expressed by:
3
[0021] wherein
4
[0022] Therefore, according to formula (1), we know that the value
5
[0023] outputted from the phase angle calculator 70 represents the phase difference between the test wave form and the output wave form.
[0024] Furthermore, since noises which are random variables which have zero mean after passing through the integrator 60 or 61. Consequently, they will not affect the calculated phase difference.
[0025] As described above, the phase difference between a test wave form and an output wave form can be calculated using an orthogonal characteristic according to a phase comparator of the invention.
[0026] While the invention has been described by way of example and in terms of the preferred embodiment, it is to be understood that the invention is not limited to the disclosed embodiments. On the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Claims
- 1. A phase comparator for calculating the phase difference between a test wave form and an output wave form in a disk driver, comprising:
a phase converter for delaying the test wave form for a specific time based on the frequency thereof; a first multiplier electrically coupled to the phase converter for performing a first operation by multiplying the delayed test wave form with the output wave form; a first integrator electrically coupled to the first multiplier for integrating the result of the first operation for a period to generate a first weighted value; a second multiplier for performing a second operation by multiplying the test wave form with the output wave form; a second integrator electrically coupled to the second multiplier for integrating the result of the second operation for the same period to generate a second weighted value; and a phase angle calculator electrically coupled to the first integrator and the second integrator for receiving the first weighted value and the second weighted value and then outputting a value representing the phase difference between the test wave form and the output wave form.
- 2. The phase comparator as claimed in claim 1, wherein the period is the period of the test wave form.
- 3. The phase comparator as claimed in claim 1, wherein the test wave form is a sine wave form.
- 4. The phase comparator as claimed in claim 1, wherein the test wave form is a cosine wave form.
- 5. The phase comparator as claimed in claim 1, wherein the specific time is one quarter of the period of the test wave form.
- 6. The phase comparator as claimed in claim 1, wherein the specific time is (¼+m) times the period of the test wave form, wherein the m is a positive integer.
- 7. The phase comparator as claimed in claim 1, wherein the value representing the phase difference is tan-1 (the first weighted value/the second weighted value).
- 8. A method for calculating the phase difference between a test wave form and an output wave form, comprising the following steps:
delaying the test wave form for a specific time; performing a first operation by multiplying the output wave form with the delayed test wave form; integrating the result of the first operation for a period to generate a first weighted value; performing a second operation by multiplying the output wave form with the test wave form; integrating the result of the second operation for the same period to generate a second weighted value; and calculating the phase difference between the test wave form and the output wave form.
- 9. The method as claimed in claim 8, wherein the phase difference is a value of tan-1 (the first weighted value/the second weighted value).
- 10. The method as claimed in claim 8, wherein the period is the period of the test wave form.
- 11. The method as claimed in claim 8, wherein the test wave form is a cosine wave form.
- 12. The method as claimed in claim 8, wherein the specific time is ¼ of the period of the test wave form.
- 13. The method as claimed in claim 8, wherein the specific time is (¼+m) times the period of the test wave form, wherein the m is a positive integer.
Priority Claims (1)
Number |
Date |
Country |
Kind |
89101460 |
Jan 2000 |
TW |
|