Circuit and method for generating accurate quadrature signals
This invention relates to electronic circuits for broadband quadrature signal generation, and specifically to correcting phase error between two signals that are approximately in quadrature to make the phase difference between the two signals exactly 90° by adjusting a control signal used in the quadrature signal generation.
In the past few years, the advantages of digital modulation for efficient use of personal communication systems have become apparent. Various forms of Quadrature Phase Shift Keying (QPSK) modulation require local oscillators which are in quadrature, i.e. which output two signals 90° out of phase with each other, over a wide bandwidth.
Generation of such signals at low frequencies is accomplished by a simple divide-by-two flip-flop.
In the related art, an input signal is first fed to a comparator, the negative input of which is connected to a voltage reference VR. The output of the comparator is then provided to a divider circuit, which produces two signals, each at one-half the frequency of the input signal. If the input signal to the system is a symmetric square wave, this method and apparatus will result in very good performance at low frequencies. However, at high frequency (frequencies above 100MHz), generating a fully-symmetric waveform (even with no harmonic content) is very difficult. Further, unequal propagation delays can cause further phase errors. For example, with an 800MHz input signal, which should produce two
400MHz quadrature signals, a seven pico-second mismatch and propagation delay occurs between the in-phase signal and the quadrature signal, which will cause the foregoing signals to be 89° out of phase, instead of being 90° out of phase. In addition, if the incoming signal at 800MHz has any second order harmonic content, which makes the distance between zero crossings unequal, additional phase error will also result. Also, with high frequency input signals, account must be taken of the harmonic effect. Therefore, the input signal must be filtered to eliminate the harmonic effect, or when the unfiltered input signal is being demodulated, the harmonic content of the input signal could interfere with the demodulated signal and produce a dispersed signal.
At high frequencies, and over a bandwidth of less than an octave, the phase difference between an RC and CR network or the phase difference between two all-pass phase shift networks can be used to output two signals in quadrature. In addition,
another recently-developed method uses the sum and difference of two equal amplitude signals having unequal phase to generate two ill-quadrature signals. Although the latter technique can be used over a wide bandwidth, the latter technique does not work for square wave signals. Therefore, its use is limited. What is needed is a system that will generate quadrature signals based on a high frequency input signal, and maintain the phase difference between the signals.
An object of the present invention is to produce two signals exactly 90° out of phase from each other, based on an input signal.
The present invention is an apparatus and method for broadband quadrature signal generation. In the method and apparatus of the present invention, the phase error between two signals that are approximately in quadrature, i.e. 90° out of phase, is measured and fed back to correct the phase difference between the two signals approximately in-quadrature, and make the phase difference of the two signals exactly 90° by adjusting the duty cycle of the first signal applied by the divide-by-two circuit.
In a first embodiment of the present invention, an input signal is input to the positive terminal of a comparator, the output of which is coupled to a divide by two flip- flop circuit and which produces two output signals, an in-phase signal (I) and an in quadrature signal (Q). The I and the Q signals are input to a phase detector, which outputs narrow pulses, the duration of which are indicative of the error between the I and Q signals. If the I and the Q signals are exactly 90° out of phase, there is no phase error in the quadrature output between the I and the Q signals, and the output of the phase detector is zero. The output of the phase detector is fed to a low-pass filter, the output of which is then fed to an integrator, whose output is in turn fed to the negative terminal of the comparator. This adjusts the reference level the comparator uses to trigger the switching of the flip-flops. Therefore, the error between the I signal and the Q signal is fed back to the comparator and is used to make the I signal and the Q signal exactly 90° out of phase.
An additional advantage of the present invention is the possibility to determine and adjust the phase difference between the two signals, even when the input signal is modulated.
A further advantage of the present invention the reduction or the elimination of the harmonic content of the signal being demodulated, to reduce the need for filtering.
These together with other objects and advantages which will be subsequently apparent, reside in the details of construction and operation as more fully
hereinafter described and claimed, reference being had to the accompanying drawings forming a part hereof, wherein like numerals refer to like parts throughout.
Further details of the present invention are explained below, with the aid of the attached drawings in which:
Figure 1 is a block diagram of a level-locked loop, according to the present invention;
Figures 2A-2C are timing diagrams demonstrating that a perfect sinusoid produces I and Q signals with 90° phase difference, at a low frequency;
Figures 3A-3C are timing diagrams showing that second order harmonic content in the input signal causes error in the I and Q phase difference;
Figure 4 is a diagram showing a typical input signal to the present invention; and
Figures 5A-5E are timing diagrams showing the system timing of the operation of the present invention.
The present invention performs phase tracking by adjusting the zero crossing level set for an input signal used to generate quadrature output signals. As the zero crossing reference level is adjusted the duty cycle and thus the phase difference between the quadrature signals changes. The change in phase difference is detected and used to adjust the reference level to maintain a constant 90° phase difference between the quadrature output signals.
In Figure 1 in the present invention, an input signal VI, which could be a high frequency sinusoidal signal, for example a sinusoidal signal having a frequency of 800 megahertz (MHz), is input to a level locked loop 4, according to the present invention. The level locked loop 4 is divided into a quadrature signal generation circuit 6 and a phase detection and reference level adjustment circuit 8. In this embodiment of the level locked loop 4, the input signal is coupled to the positive terminal of a conventional comparator 10. The comparator 10 compares the input signal to a reference level signal Vr provided at the negative input. As the input signal crosses the level of the reference signal the comparator 10 changes the binary value of its output signal CD. The output of the comparator 10 is coupled to a conventional divide-by-two circuit 12. The divide-by-two circuit 12 divides the frequency of the signal CD in half, and outputs s two signals, divide-by-two output 1 (DBTO1) and divide-by-two output 2 (DBTO2). These two signals DBTO1 and DBTOO are the output quadrature signals that are kept exactly 90° out of phase and are the in-phase (I) signal or the quadrature (Q) signal, respectively. Each of the output signals DBTO1 and DBTO2 have a
frequency of one-half of the input frequency signal CD and are approximately 90° out of phase with each other.
In a preferred embodiment, the divide-by-two circuit 12 shown in Figure 1 can be implemented in various forms of logic, or is a travelling wave divider. The divide- by-two circuit 12 is preferably, formed from two flip-flops. Since the flip-flops are triggered by the leading and trailing edges of the signal CD, the outputs of the flip-flops will be 90° out of phase.
DBTO1 and DBTO2 are then input to a conventional phase detector 14 that detects a phase difference between the two signals. Phase detector 14 outputs the phase tracking error signal (PTE). Signal PTE is a pulse train representing an "error" between the phase difference between DBTO1 and DBTO2 and 90°. If DBTO1 and DBTO2 are exactly 90° out of phase with each other, there is no phase error between DBTO1 and DBTO2, and PTE is a constant voltage output as PTE, with no pulses. If DBTO1 is more than 90° ahead of DBTO2 the phase detector 14 outputs pulses of a first polarity and if DBTO2 is less than 90° ahead of DBTO2 the phase detector produces pulses of a second polarity opposite to the first polarity. The duration, or width, of a pulse of signal PTE corresponds to the amount of the error between DBTO1 and DBTO2 being exactly 90° out of phase. The more narrow the pulses of PTE, the more closely DBTO1 and DBTO2 are to being exactly 90° out of phase.
The phase detector 14 of Figure 1 is coupled to a conventional low-pass filter 16 and the signal PTE is input to the low-pass filter 16. Low-pass filter 16 outputs D.C. level signal (DCL), which is the DC level of the input signal PTE. In the present invention, the closer DBTO1 and DBT02 are to being exactly 90° out of phase, the more narrow are the pulses of PTE, and the smaller is the DC level of DCL. Low-pass filter 16 is coupled to a conventional integrator 18, as shown in Figure 1. DCL is input to integrator 18, which outputs reference voltage Vr . Vr, in the present invention, is a reference voltage representing the voltage level which is the zero crossing level of the sinusoid SD. Vr is related to the duty cycle of the pulse train PTE, and is the DC voltage of phase tracking error signal PTE. Vr is input to the negative terminal of the comparator 10, in the present invention. The level of the reference level signal Vr changes as the phase difference changes, which in this feedback arrangement causes the phase difference to be adjusted toward exactly 90°. Therefore, the present invention, as shown in Figure 1, is a circuit detecting and "locking" on the voltage level Vr necessary to produce a 90° phase difference. Vr is the reference voltage level at which the input sinusoidal signal has a 50% duty cycle in crossing Vr The level locked loop of the present invention, once Vr is detected and "locked", then
outputs two signals I and Q which are 90° out of phase, with less than one degree of error.
Figures 2A-2C are timing diagrams showing that a perfect 2f input sinusoid produces I and Q signals which are exactly 90° out of phase. A "zero crossing" is an arbitrary voltage level at which a signal, such as signal 2f, "crosses" following a sinusoidal path. In Figure 2A, signal 2f has a 50% duty cycle and crosses the "zero crossing" at evenly-spaced intervals. In Figures 2A-2C, when signal 2f crosses from below the zero crossing to above the zero crossing, I goes from logic state 0 to logic state 1 and Q remains in logic state 0. Then, in Figures 2A-2C, when signal 2f crosses from above the zero crossing to below the zero crossing I remains in logic state 1 and Q goes from logic state 0 to logic state 1. When signal 2f goes from below the zero crossing to above the zero crossing, i.e. completes one cycle, signal I goes from logic state 1 to logic state 0, and signal Q remains in logic state 1. Therefore, signals I and Q are 90° out of phase with each other.
Figures 3A-3C are timing diagrams showing an input signal 2f having a second order harmonic content, which causes an error in the phase difference between the I signal and the Q signal, if the threshold of the comparator 10 is set at V0. As shown in Figures 3A-3C, signal Q goes from logic state 0 to logic state 1 more than 90° after signal I goes from logic state 0 to logic state 1, based on input signal 2f transitioning from a positive state to a negative state by crossing the zero crossing line of V0.
Also as shown in Figures 3A-3C, in accordance with the present invention, if the comparator threshold is set to Vr, then input signal 2f transitions from the positive state to the negative state 90° after input signal 2f has transitioned from the negative state to the positive state, by crossing Vr as the zero threshold crossing. In the situation of a waveform as in Figure 3A, the present invention adjusts the zero crossing to Vr as shown. Therefore, in the present invention, I and Q are 90° out of phase, when the zero crossing line is moved from the level of V0 to the level of Vr. Therefore, the level locked loop of Figure 1 determines, and "locks on", voltage level Vr, which is the voltage at which signal 2f has a 50% duty cycle. Further, Vr is the voltage level at which the zero voltage crossings of signal 2f are equally spaced.
Figure 4 is a diagram of an input signal Vi. Input signal VI is a
combination of signal Li, which has a frequency of ω2, and input signal Vi, which has a frequency of ω1 and is superimposed on signal Li. Therefore, input signal VI does not have a constant voltage input.
The level-locked loop of Figure 1 is also designed to be used with an input signal V
I, as shown in Figure 4. In this case, the voltage level of the input signal V
I is
not constant, and is superimposed over signal L
i, as shown in Figure 4. As described previously for a different signal, in Figure 1, V
I (of Figure 4) is input to me comparator 10, which outputs a signal CD. The comparator 10, shown in Figure 1, is coupled to the divide- by-two circuit 12. The divide-by-two circuit 12 outputs two signals, DBTO1 and DBTO2. DBTO1 and DBTO2 are then input to the phase detector 14, which outputs signal PTE. PTE is input to low-pass filter 16, which then outputs signal DCL, also as previously described. Signal DCL is equivalent to V
out, which is described herein below. Signal DCL is then input to the integrator 18, which has a transfer function of , where B is a constant, R
and C are values of resistance and capacitance, respectively, and S is a complex frequency jω. ω is equal to 2πf. Integrator 18 outputs signal L
f, which is analogous to V
r and is input to the negative terminal of comparator 10.
The level locked loop of Figure 1 operates on the input signal VI illustrated in Figure 4, as the level locked loop described in Figure 1 operates on the
800MHz sinusoid input signal, as previously described. The equations for the level locked loop of Figure 1 are described herein below. If
where 0 < A2 <A1, then
then, for a small range of input signal Li, Figures 5A-5E show the relationship between Li, Lf, CD, I, Q, and Vout.
In Figure 5A, Lf is at a higher voltage level than Li. Input signal A1 Sin ω1t, is input to the level locked loop of Figure 1. CD is men output, as a pulse train, driven by Aj Sin ω1t crossing Lf. The width of me pulse for CD is∅1, as shown in Figure 5B. As shown in Figure 5C, when A1 Sin ω1t crosses Lf, going from a negative value to a positive value, I goes from logic state 0 to logic state 1. Then, as shown in Figure 5D, when A1 Sin ω1t crosses Lf going from the positive to a negative value, Q goes from logic state 0 to logic state 1, phase shifted from I by the width of one pulse of signal CD, which is∅1.
Accordingly, as shown in Figure 5E, signal PTE is output, as previously described. Vout retains a constant level. Vout max is the height of me pulse train PTE.
Then, letting V
I equal L
f,
Solving for ω
1t
1, then,
where
Therefore, in the frequency domain,
where B is a low frequency gain of the integrator 18, R is the resistance of the integrator 18, and C is the capacitance of the integrator 18.
In the frequency domain, then
Then, by inserting the value of L
f (S) and solving for V
out (S), the transfer function of the level locked loop shown in Figure 1 is:
In the present invention, for the incoming signal equal to Sin (ωt) + A cos (ωt), where A represents a small second harmonic component, Sin (ωt) + A cos (2ω) = 0 to determine the 0 crossing points, which is the voltage level at which the input signal has a 50% duty cycle. Therefore, -2A Sin2 (ωt) + Sin (ωt) + A = 0. Then, Sin (ωt) =
(1-(1 +8A2) 0.5)/4A, which can be approximated as Sin (ωt) = -A.
Assuming that A< < 1, then ωt = -A. For ωt = 1°, then A = 0.0174, or - 35.2dB. Therefore, to obtain less than one degree of phase error in the quadrature signals I and Q, the second harmonic content of the 800MHz sinusoid input is less than 35dBc, under worst case conditions.
As described herein above, the level locked loop of the present invention, is a highly non-linear circuit with a behavior that depends on the shape of the input signal. If the input signal is sinusoidal with a frequency of ωl t which rides on a low frequency sinusoid ω2, as shown in Figures 4 and 1, the level of equally-space zero crossings is defined as L1. The feedback signal provided by the level locked loop of Figure 1 is Lf , and the final output of me level locked loop of Figure 1 is Vout, which is the output of the low-pass filter, after being phase detected.
As shown above the present invention tracks the reference level necessary to maintain a quadrature phase relationship between quadrature signals when the reference level is used as a zero crossing for quadrature signal generation.
The many features and advantages of the invention are apparent from the detailed specification and, thus, it is intended by the appended claims to cover all such features and advantages of the invention which fall within the true spirit and scope of the invention. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the invention to the exact construction and operation illustrated and described, and accordingly all suitable modifications and equivalents may be resorted to, falling within the scope of the invention.