Skip to main content

Costas loop detector and phase error correction

Short answer

The Costas loop multiplies DSB‑SC by cos(ωct+φ) and sin(ωct+φ). Low‑pass filtering gives I = (Ac/2)m(t)cosφ and Q = (Ac/2)m(t)sinφ. Their product drives a loop filter that adjusts the VCO to force φ→0, so the I‑channel yields the demodulated message without a pilot carrier.

Draw the block diagram of Costas Loop detector and explain how it demodulates DSB-SC AM and corrects for phase error.

Block diagram of Costas loop

                  I-channel
          +----->( X )-----> LPF ---+-------> output
          |        ^                |    (Ac/2)m(t)cos(phi)
          |        | cos(wc t+phi)  v
 s(t) ----+      [VCO] <-- LPF <--( X )
          |        |      (loop    ^  phase
          |     [-90 deg]  filter) |  discriminator
          |        | sin(wc t+phi) |
          +----->( X )-----> LPF --+
                  Q-channel  (Ac/2)m(t)sin(phi)

Parts: two product modulators (I and Q), two LPFs, a VCO with a 90∘90^\circ phase shifter, and a phase discriminator (multiplier + loop filter).

How it demodulates DSB-SC

Input s(t)=Acm(t)cos⁡ωcts(t) = A_cm(t)\cos\omega_ct; VCO output cos⁡(ωct+ϕ)\cos(\omega_ct + \phi).

yI(t)=LPF{Acm(t)cos⁡ωctcos⁡(ωct+ϕ)}=Ac2m(t)cos⁡ϕyQ(t)=LPF{Acm(t)cos⁡ωctsin⁡(ωct+ϕ)}=Ac2m(t)sin⁡ϕ\begin{aligned} y_I(t) &= \text{LPF}\{A_cm(t)\cos\omega_ct\cos(\omega_ct+\phi)\} = \frac{A_c}{2}m(t)\cos\phi \\ y_Q(t) &= \text{LPF}\{A_cm(t)\cos\omega_ct\sin(\omega_ct+\phi)\} = \frac{A_c}{2}m(t)\sin\phi \end{aligned}

When the VCO is locked (ϕ=0\phi = 0), yI=Ac2m(t)y_I = \tfrac{A_c}{2}m(t): the I channel output is the demodulated message, and yQ=0y_Q = 0.

How it corrects phase error

The phase discriminator multiplies the I and Q outputs:

e(t)=yIyQ=Ac24m2(t)sin⁡ϕcos⁡ϕ=Ac28m2(t)sin⁡2ϕe(t) = y_Iy_Q = \frac{A_c^2}{4}m^2(t)\sin\phi\cos\phi = \frac{A_c^2}{8}m^2(t)\sin2\phi

The loop filter averages this to a slowly varying control voltage vc∝m2‾sin⁡2ϕ≈2m2‾ϕv_c \propto \overline{m^2}\sin2\phi \approx 2\overline{m^2}\phi for small ϕ\phi.

  • If ϕ>0\phi > 0, vc>0v_c > 0: the VCO is pulled back to reduce ϕ\phi.
  • If ϕ<0\phi < 0, vc<0v_c < 0: the VCO is pushed the other way.
  • At ϕ=0\phi = 0: vc=0v_c = 0 and the loop is in lock.

Because m2(t)≥0m^2(t) \ge 0, the correction direction does not depend on the polarity of the message. So the Q channel acts as an error detector, and the loop keeps the local carrier coherent with the received one, avoiding the cos⁡ϕ\cos\phi loss and quadrature null.

Key points

  • Automatic phase and frequency tracking without a pilot carrier.
  • 180° phase ambiguity (lock at ϕ=π\phi = \pi gives −m(t)-m(t)), harmless for audio.
  • Needs m(t)m(t) to be non-zero most of the time.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Communication Systems chapter 2 questions →