Costas Loop
Costas Loop
Practical
‘antipodal’ phase shift modulation. The mathemati-
cal equation for this process is:
π
Costas loop BPSKN (t ) = cos 2πfc t + DATAN (t )•
2
(1)
1
cos (a)• cos (b) = cos (a + b)+ cos (a − b)
2
(3)
Figure 1. Amplitude spectra of a typical binary data signal. where the product of two cosine functions is the sum
and the difference of the inner term of each. When
ing rigor to the design of a BPSK demodulator can two cosine functions representing periodic time-
be daunting. However, it is unlikely that any such domain waveforms are multiplied together, the result
circuit will perform as well as it could if it were is two new cosines; the sum of the two frequencies
implemented without fully understanding and and the difference. Therefore, when the BPSK signal
parameterizing its behavior. is multiplied by a cosine function identical to the one
Designing and implementing a Costas-loop carrier that modulated it, the original modulating data, plus
recovery circuit and demodulator can be done simply the same BPSK signal at twice the carrier frequency,
and inexpensively using only basic components. are produced. This is mathematically represented by:
BPSK Background
Simple BPSK modulation is the process of shift- BPSKN (t )• cos (2πfc t ) = DATAN (t )•
ing a carrier’s phase by 180° for one data symbol (4)
cos (2πfc t )• cos (2πfc t )
while not shifting it for the other — known as
Figure 10. VCO tracking behaviors of a Costas loop and PLL with a BPSK reference input.
I _represented
Mixer _ Output
by:
= cos (ωvcot + θphase _ error )
(13)
• BPSKN (t ) = cos (ωvcot + θphase _ error )
• DATAN (t )• cos (ωbpskt )
Figure 11. Costas loop simulation with a noise-free, band-limited BPSK input.
For analysis purposes, because the
modulating signal is binary data that
reverses its magnitude, DATAN(t) is
Now, considering that the sine of should be equal to avoid imbalances replaced by ±1 and the identity of
zero is zero, the product of this multi- that will prolong settling time), it com- Equation 3 is applied:
plication is only a “high side” compo- prises a pseudo-integrator (a low-pass
nent and the BPSK signal shifted by filter is related to an integrator). This
90° and to a frequency twice that of allows the circuit to behave in a some- 1 cos ((ωvco − ωbpsk )t + θphase _ error )+
± (14)
what it was. what similar fashion as a second-order 2 cos ((ωvco + ωbpsk )t + ϑphase _ error )
PLL (see Figure 8).
1
DATAN (t )• sin (2πfc t ) (11)
2
Next, a low-pass filter removes the
high-frequency component, and nothing
remains:
1
LPF • DATAN (t )• sin (2πfc t ) = 0
2
(12)
sin (0)
1
=− (ωvco − ωbpsk )t (20)
8 + sin 2
+ θphase _ error
ω
VCO _ Gaincritically _ damped =
LPF 1 / LPF 2
1
KP (25)
2
Figure 15. Results (interpolated) of simulation of Costas loop vs. ideal BER performance as input SNR
= 8•ω LPF 1 / LPF 2 r / s/v
varies.
Simulation confirms this result for
the carrier), such a “glitch” could modulation data are randomized over the Costas loop (see Figure 14). The
allow a phase slippage and may tem- 10 trials. Realistic Costas loop behavior fastest achievable settle time is one in
porarily allow the loop to track in the is somewhat chaotic for the reasons which the VCO has a gain of eight
wrong direction. mentioned previously, depending on times that of the LPF1/LPF2 pole fre-
Other design issues include the effect when BPSK phase transitions occur quency with the above the phase-
of realistic (non-ideal) filters. Some during the lock phase. detector gain parameters and a ran-
“high side” product will always “leak” dom BPSK input. Using the Costas
through and affect the circuit’s perfor- Design considerations of Costas loops loop parameters presented here,
mance; their respective responses will Similar to PLL design, the Costas where the filter poles and loop gain
not be identical, and there will be ISI (a loop design considerations are noise are all in a fixed relationship to the
1-0-1-0 pattern will not quite produce performance, settling time and a reli- data rate, the regenerated carrier will
180° phase transitions). Further, it is able lock range. As a demodulator, settle in less than three bit times. Of
not realistic to assume that the quadra- noise performance is maximized when course, if the phase detector has some
ture components of the VCO will have a the least amount of noise is allowed in gain or gain-function other than that
perfect 90° offset or that the phase the loop. This is accomplished by set- of Equation 22, Equation 25 should be
detector is an ideal multiplier free from ting the LPF1/ LPF2 response to their appropriately modified.
DC offset. A second-order PLL analysis maximum SNR. This corresponds to a LPF3 must then be specified. This
(where the loop filter is the same as –3 dB cutoff equaling half the data rate filter should have its pole at a low-
LPF1/LPF2) of a carrier will approxi- for a single-pole RC. For loop settling enough frequency that the Costas loop
mate settling characteristics of a purposes, this cutoff is also the mini- will not be too noisy nor be subject to
Costas loop, but a computer simulation mum allowable for the loop filter. carrier phase reversals in the presence
is recommended if the designer needs Additionally, this is an attractive choice of noise (the Costas loop is equally sta-
accurate information. This is because because this filter also serves the pur- ble in both phases) while high enough
“mathematical” building blocks may pose of a data filter. that it doesn’t cause the loop to oscil-
need to be substituted with commonly The loop gain must now be set. late. Setting this pole to four times K
available and inexpensive components. Because LPF1, one of the two identical (or eight times the LPF1/LPF2 pole) is
Figures 11 and 12 show the simulated legs of the loop filter, serves the dual the point in which this filter will negli-
timing waveforms of a Costas loop purpose of also being the data filter and gibly affect on the loop; simulation
operating under noise-free and noisy is required to pass BPSK modulation, a shows this (see Figure 14). To be cau-
conditions, respectively. compromise has been made. According tious, particularly at lower data rates
Figure 13 is a plot of the VCO set- to [2], the critical damping point (the where such a filter can more easily
tling function where the loop parame- point where minimum settling time create problems, a factor of six times K
ters are identical for each run, but the occurs) for a PLL using the same lag- (12 times the LPF1/LPF2 pole) is a bet-
VCO starting phase/frequency and the type filter as LPF1/LPF2, is when the ter choice.