Английская Википедия:Costas loop
Шаблон:Short description A Costas loop is a phase-locked loop (PLL) based circuit which is used for carrier frequency recovery from suppressed-carrier modulation signals (e.g. double-sideband suppressed carrier signals) and phase modulation signals (e.g. BPSK, QPSK). It was invented by John P. Costas at General Electric in the 1950s.[1][2] Its invention was described[3] as having had "a profound effect on modern digital communications". The primary application of Costas loops is in wireless receivers. Its advantage over other PLL-based detectors is that at small deviations the Costas loop error voltage is <math>\sin(2(\theta_i-\theta_f))</math> as compared to <math>\sin(\theta_i-\theta_f)</math>. This translates to double the sensitivity and also makes the Costas loop uniquely suited for tracking Doppler-shifted carriers, especially in OFDM and GPS receivers.[3]
Classical implementation
In the classical implementation of a Costas loop,[4] a local voltage-controlled oscillator (VCO) provides quadrature outputs, one to each of two phase detectors, e.g., product detectors. The same phase of the input signal is also applied to both phase detectors, and the output of each phase detector is passed through a low-pass filter. The outputs of these low-pass filters are inputs to another phase detector, the output of which passes through a noise-reduction filter before being used to control the voltage-controlled oscillator. The overall loop response is controlled by the two individual low-pass filters that precede the third phase detector, while the third low-pass filter serves a trivial role in terms of gain and phase margin.
The above figure of a Costas loop is drawn under the "locked" state, where the VCO frequency and the incoming carrier frequency have become the same due to the Costas loop process. The figure does not represent the "unlocked" state.
Mathematical models
In the time domain
In the simplest case <math>m^2(t) = 1</math>. Therefore, <math>m^2(t) = 1</math> does not affect the input of the noise-reduction filter. The carrier and voltage-controlled oscillator (VCO) signals are periodic oscillations <math>f_{ref,vco}(\theta_{ref,vco}(t))</math> with high-frequencies <math>\dot\theta_{ref,vco}(t)</math>. The block <math>\bigotimes</math> is an analog multiplier.
A linear filter can be described mathematically by a system of linear differential equations:
- <math>\begin{array}{ll}
\dot x = Ax + b u_{d}(t),& u_{LF} = c^*x. \end{array} </math> where <math>A</math> is a constant matrix, <math>x(t)</math> is a state vector of the filter, <math>b</math> and <math>c</math> are constant vectors.
The model of a VCO is usually assumed to be linear:
- <math>
\begin{array}{ll} \dot\theta_{vco}(t) = \omega^{free}_{vco} + K_{vco} u_{LF}(t),& t \in [0,T], \end{array}
</math> where <math>\omega^{free}_{vco}</math> is the free-running frequency of the VCO and <math>K_{vco}</math> is the VCO gain factor. Similarly, it is possible to consider various nonlinear models of VCO.
Suppose that the frequency of the master generator is constant <math>
\dot\theta_{ref}(t) \equiv \omega_{ref}.
</math> Equation of VCO and equation of filter yield
- <math>
\begin{array}{ll}
\dot{x} = Ax + bf_{ref}(\theta_{ref}(t))f_{vco}(\theta_{vco}(t)),& \dot\theta_{vco} = \omega^{free}_{vco} + K_{vco}c^*x.
\end{array} </math>
The system is non-autonomous and rather tricky for investigation.
In the phase-frequency domain
In the simplest case, when
- <math>\begin{align}
f_{ref}\big(\theta_{ref}(t)\big) = \cos\big(\omega_{ref} t\big),\ f_{vco}\big(\theta_{vco}(t)\big) &= \sin\big(\theta_{vco}(t)\big) \\ f_{ref}\big(\theta_{ref}(t)\big)^2 f_{vco}\left(\theta_{vco}(t)\right) f_{vco}\left(\theta_{vco}(t) - \frac{\pi}{2}\right) &= -\frac{1}{8}\Big( 2\sin(2\theta_{vco}(t)) + \sin(2\theta_{vco}(t) - 2\omega_{ref} t) + \sin(2\theta_{vco}(t) + 2\omega_{ref} t) \Big)
\end{align}</math>
The standard engineering assumption is that the filter removes the upper sideband frequency from the input but leaves the lower sideband without change. Thus it is assumed that the VCO input is <math>\varphi(\theta_{ref}(t) - \theta_{vco}(t)) = \frac{1}{8}\sin(2\omega_{ref} t - 2\theta_{vco}(t)).</math> This makes a Costas loop equivalent to a phase-locked loop with phase detector characteristic <math>\varphi(\theta)</math> corresponding to the particular waveforms <math>f_{ref}(\theta)</math> and <math>f_{vco}(\theta)</math> of the input and VCO signals. It can be proved that filter outputs in the time and phase-frequency domains are almost equal.[5][6][7]
Thus it is possible[8] to study the simpler autonomous system of differential equations
- <math>\begin{align}
\dot{x} &= Ax + b\varphi(\Delta\theta), \\ \Delta\dot{\theta} &= \omega_{vco}^{free} - \omega_{ref} + K_{vco}c^*x, \\ \Delta\theta &= \theta_{vco} - \theta_{ref}.
\end{align}</math>.
The Krylov–Bogoliubov averaging method allows one to prove that solutions of non-autonomous and autonomous equations are close under some assumptions. Thus, the Costas loop block diagram in the time domain can be asymptotically changed to the block diagram on the level of phase-frequency relations.
The transition to the analysis of an autonomous dynamical model of the Costas loop (in place of the non-autonomous one) allows one to overcome the difficulties related to modeling the Costas loop in the time domain, where one has to simultaneously observe a very fast time scale of the input signals and slow time scale of signal's phase. This idea makes it possible[9] to calculate core performance characteristics - hold-in, pull-in, and lock-in ranges.
Frequency acquisition
The classical Costas loop will work towards making the phase difference between the carrier and the VCO become a small, ideally zero, value.[10][11][12] The small phase difference implies that frequency lock has been achieved.
QPSK Costas loop
The classical Costas loop can be adapted to QPSK modulation for higher data rates.[13]
The input QPSK signal is as follows
- <math>
m_1(t)\cos\left(\omega_\text{ref} t\right) + m_2(t)\sin\left(\omega_\text{ref} t\right), m_1(t) = \pm 1, m_2(t) = \pm 1.
</math>
Inputs of low-pass filters LPF1 and LPF2 are
- <math>\begin{align}
\varphi_1(t) &= \cos\left(\theta_\text{vco}\right)\left(m_1(t)\cos\left(\omega_\text{ref} t\right) + m_2(t)\sin\left(\omega_\text{ref} t\right)\right), \\ \varphi_2(t) &= \sin\left(\theta_\text{vco}\right)\left(m_1(t)\cos\left(\omega_\text{ref} t\right) + m_2(t)\sin\left(\omega_\text{ref} t\right)\right).
\end{align}</math>
After synchronization, the outputs of LPF1 <math>Q(t)</math> and LPF2 <math>I(t)</math> are used to get demodulated data (<math>m_1(t)</math> and <math>m_2(t)</math>). To adjust the frequency of the VCO to the reference frequency, signals <math>Q(t)</math> and <math>I(t)</math> are limited and cross-multiplied:
- <math>u_d(t) = I(t)\sgn(Q(t)) - Q(t)\sgn(I(t)).</math>
Then the signal <math>u_d(t)</math> is filtered by the loop filter and forms the tuning signal for the VCO <math>u_\text{LF}(t)</math>, similar to BPSK Costas loop. Thus, QPSK Costas can be described[14] by a system of ordinary differential equations:
- <math>\begin{align}
\dot{x}_1 &= A_\text{LPF} x_1 + b_\text{LPF}\varphi_1(t),\\ \dot{x}_2 &= A_\text{LPF} x_2 + b_\text{LPF}\varphi_2(t),\\ \dot{x} &= A_\text{LF} x + b_\text{LF}\big(c_\text{LPF}^* x_1\sgn(c_\text{LPF}^* x_2) - c_\text{LPF}^* x_2\sgn(c_\text{LPF}^* x_1)\big),\\ \dot{\theta}_\text{vco} &= \omega_\text{vco}^\text{free} + K_\text{VCO}\Big(c^*_\text{LF} x + h_\text{LF}\big(c_\text{LPF}^* x_1\sgn(c_\text{LPF}^* x_2) - c_\text{LPF}^* x_2\sgn(c_\text{LPF}^* x_1)\big)\Big).\\
\end{align}</math>
Here <math>A_\text{LPF}, b_\text{LPF}, c_\text{LPF}</math> are parameters of LPF1 and LPF2 and <math>A_\text{LF}, b_\text{LF}, c_\text{LF}, h_\text{LF}</math> are parameters of the loop filter.
References
- ↑ Шаблон:Cite journal
- ↑ Шаблон:Cite journal
- ↑ 3,0 3,1 Шаблон:Cite journal
- ↑ Шаблон:Cite journal
- ↑ Шаблон:Cite journal
- ↑ Шаблон:Cite journalШаблон:Dead link
- ↑ Шаблон:Cite journal
- ↑ Шаблон:Cite book
- ↑ Шаблон:Cite journal
- ↑ Шаблон:Harvnb states, "The local oscillator must be maintained at proper phase so that the audio output contributions of the upper and lower sidebands reinforce one another. If the oscillator phase is 90° away from the optimum value, a null in audio output will result, which is typical of detectors of this type. The actual method of phase control will be explained shortly, but for the purpose of this discussion, maintenance of correct oscillator phase shall be assumed."
- ↑ Using a loop filter with an integrator allows a steady-state phase error of zero. See Шаблон:Section link.
- ↑ Шаблон:Cite book
- ↑ Шаблон:Cite patent
- ↑ Шаблон:Cite journal