1. Field of the Invention
The present invention relates to a frequency-phase adjusting device and a related method, and more particularly, to a device and method for lowering instantaneous maximum error and for solving vibration problems by adjusting its frequency and phase at the same time.
2. Description of the Prior Art
Using an oscillator to oscillate an initiate frequency and then using a phase locked loop (PLL), a voltage-controlled oscillator (VCO), a digital-controlled oscillator (DCO), or an all digital phase locked loop (ADPLL) to control and generate a desired frequency and phase for a system is a familiar technique. Herein the VCO, the DCO, or the ADPLL is used for providing a digital control code or a control voltage to an analog circuit, so as to generate the corresponding frequency and phase.
In a communication system, demands of catching up the remote-end frequency and phase are often encountered. When using a conventional PLL, it is necessarily that catching up the remote-end phase first and then catching up the remote-end frequency by jumping phase. However, at that moment of jumping phase, the received echo/near-end crosstalk of the analog-to-digital converter is corresponding to a current phase, but the echo/near-end crosstalk eliminated by the echo/near-end crosstalk canceller is corresponding to a previous phase, therefore, an instantaneous maximum error is occurred, which results in a poor system performance. If a conventional VCO, DCO, or ADPLL is adopted, catching up the remote-end frequency first is necessarily. Due to the phase error existed between the both ends, it must catch up with the phase of the opposite side by means of tuning up/tuning down its frequency. By the time when the phase of the opposite side is caught up, its frequency becomes not the same as the opposite side at this time. Hence, the action of tuning down/tuning up its frequency is required once more. For this reason, a vibration phenomenon will easily happen in the system, which may cause a system breakdown.
It is therefore one of the objectives of the claimed invention to provide a frequency-phase adjusting device and a related method to solve the abovementioned problems.
According to an exemplary embodiment of the present invention, a frequency-phase adjusting device is provided. The frequency-phase adjusting device consists of a first controller, a second controller, and an oscillating circuit. The first controller generates a first control signal according to a target frequency and a current frequency. The second controller is coupled to the first controller for generating a second control signal according to the first control signal, wherein the second control signal is used for deciding a first frequency difference, a designated duration, and a second frequency difference. The oscillating circuit is coupled to the second controller for adjusting the current frequency according to the first frequency difference, the designated duration, and the second frequency difference. The current frequency of a first duration is set as a first frequency; the current frequency of the designated duration is set as a second frequency; the current frequency of a second duration is set as a third frequency; the first frequency difference is equal to a frequency difference between the first frequency and the second frequency; and the second frequency difference is equal to a frequency difference between the second frequency and the third frequency; and the first duration, the designated duration and the second duration are continuous time periods in turn. The oscillating circuit can be a voltage-controlled oscillator, a digital-controlled oscillator, or an all digital phase locked loop.
According to another exemplary embodiment of the present invention, a method for adjusting frequency and phase is provided. The method includes the steps of: generating a first control signal according to a target frequency and a current frequency; generating a second control signal according to the first control signal, wherein the second control signal is used for deciding a first frequency difference, a designated duration, and a second frequency difference; and adjusting the current frequency according to the first frequency difference, the designated duration, and the second frequency difference. Be noted that the current frequency of a first duration is set as a first frequency; the current frequency of a designated duration is set as a second frequency; the current frequency of a second duration is set as a third frequency; the first frequency difference is equal to a frequency difference between the first frequency and the second frequency; and the second frequency difference is equal to a frequency difference between the second frequency and the third frequency; and the first duration, the designated duration, and the second duration are continuous time periods in turn.
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 oscillating circuit 130 can be a voltage-controlled oscillator (VCO), a digital-controlled oscillator (DCO), or an all digital phase locked loop (ADPLL). But the present invention is not limited to this only, and the oscillating circuit 130 can be an oscillator of other types. Operations and details of the VCO, DCO, and ADPLL are already well-known to those skilled in the art, and thus further description is omitted here for brevity. Furthermore, the first controller 110 can be implemented by adopting at least one of the following components: a proportional controller, an integral controller, and a derivative controller; but this should not be considered as limitations of the present invention.
Please refer to
Herein “e(t)” is representative of a frequency error fe generated by performing an addition operation (e.g. a subtraction) upon the target frequency fT and the current frequency fC via the first adder 240; furthermore, Kp, Ki, and kd respectively represent a proportional gain of the proportional controller 210, an integral gain of the integral controller 220, and a derivative gain of the derivative controller 230, wherein all of Kp, Ki, and Kd are smaller than 1. From
Please note that generally in use, the proportional controller 210, the integral controller 220, and the derivative controller 230 are not needed to be simultaneously used. For example, the first controller 110 can be implemented by adopting the proportional controller 210 and the integral controller 220; or the first controller 110 can be implemented by adopting the proportional controller 210 only. In other words, at least one of the proportional controller 210, the integral controller 220, and the derivative controller 230 can be adopted to implement the first controller 110.
Please refer to
If the target frequency fT is greater than the current frequency fC (or the target phase is ahead of the current phase), the current frequency fC needs to be increased so as to catch up with the target frequency fT. As shown in
On the other hand, if the target frequency fT is smaller than the current frequency fC (or the target phase falls behind the current phase), the current frequency fC needs to be decreased. As shown in
What calls for special attention is that the aforementioned parameters: the first frequency difference Δf1, the designated duration T2, and the second frequency difference Δf2 are not fixed, and they can be correspondingly adjusted depending on actual demands. What's more, in a convergence mode, the first frequency difference Δf1, the designated duration T2, and the second frequency difference Δf2 can be set to have greater values, such that the convergence time can be speed up. When the current frequency fC has already come close to the target frequency fT, the frequency-phase adjusting device 100 is controlled to enter a tracking mode. At this time, the first frequency difference Δf1, the designated duration T2, and the second frequency difference Δf2 are set to have smaller values. Therefore, a balance between the instantaneous maximum error as well as the vibration phenomenon can be achieved in order to minimize the total error.
In short, the frequency-phase adjusting device 100 disclosed in the present invention can control the parameters of: the first frequency difference Δf1, the designated duration T2, and the second frequency difference Δf2 by means of the second controller 120, such that the current frequency as well as the current phase can be simultaneously adjusted. Compared with the prior art, an instantaneous maximum error is occurred if a conventional phase locked loop (PLL) is adopted for catching up with the phase; otherwise, if a conventional VCO, DCO, or ADPLL is adopted for catching up with the frequency, a system vibration problem will happen. For all the reasons above, by adopting the frequency-phase adjusting device 100 disclosed in the present invention, the aforementioned instantaneous maximum error as well as the vibration problem can be simultaneously solved. It is clear, therefore, that all influences can be lowered to the minimum so as to improve its overall performance.
Certainly, the abovementioned embodiments are presented merely to illustrate practicable designs of the present invention, and in no way should be considered to be limitations of the scope of the present invention. Those skilled in the art should appreciate that various modifications of the second controller 120 may be made without departing from the spirit of the present invention, which also belongs to the scope of the present invention.
Please refer to
Step 402: Start.
Step 404: Generate a first control signal according to a target frequency and a current frequency.
Step 406: Generate a second control signal according to the first control signal, wherein the second control signal is used for deciding a first frequency difference, a designated duration, and a second frequency difference.
Step 408: Adjust the current frequency according to the first frequency difference, the designated duration, and the second frequency difference; wherein the current frequency of a first duration is set as a first frequency, the current frequency of the designated duration is set as a second frequency, the current frequency of a second duration is set as a third frequency.
How each element operates can be known by collocating the steps shown in
Please note that, the steps of the abovementioned flowchart are merely practicable embodiments of the present invention, and is not meant to be considered to be limitations of the scope of the present invention. The method can include other intermediate steps or several steps can be merged into a single step without departing from the spirit of the present invention.
The abovementioned embodiments are presented merely for describing the features of the present invention, and in no way should be considered to be limitations of the scope of the present invention. In summary, the present invention provides a frequency-phase adjusting device and a related method for adjusting frequency and phase. These parameters, such as the first frequency difference Δf1, the designated duration T2, and the second frequency difference Δf2, can be controlled by using the second control signal SC2 of the second controller 120, such that the current frequency as well as the current phase can be adjusted at the same time in order to solve the instantaneous maximum error and the vibration problem. Moreover, the abovementioned parameters can be adjusted depending on actual demands. For example, in a convergence mode, the first frequency difference Δf1, the designated duration T2, and the second frequency difference Δf2 can be designed to have greater values, such that the convergence time can be speed up. In a tracking mode, the first frequency difference Δf1, the designated duration T2, and the second frequency difference Δf2 are designed to have smaller values. As a result, a balance between the instantaneous maximum error as well as the vibration phenomenon can be achieved in order to minimize the total error. What's more, the frequency-phase adjusting device disclosed in the present invention has a simple architecture, which can be easily implemented.
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.
Number | Date | Country | Kind |
---|---|---|---|
098124723 | Jul 2009 | TW | national |