<< Chapter < Page Chapter >> Page >
A block diagram of the digital phase locked loop algorithm Equation 24. The input signal r_p(kT_s) has already been preprocessed to emphasize the carrier as in Figure 10-3. The sinusoid mixes with the input and shifts the frequencies; after the LPF only the components near DC remain. The loop adjusts θ to maximize this low frequency energy.
A block diagram of the digital phase locked loop algorithm [link] . The input signal r p ( k T s ) has already been preprocessed to emphasize the carrier as in [link] . The sinusoid mixes with the input and shifts the frequencies; after the LPF only the components near DC remain. The loop adjusts θ to maximize this low frequency energy.

[link] and [link] show the output of the program when f 0 = f c and f 0 f c , respectively. When the frequencies are the same, θ converges to a region about the correct phase offset Φ and wiggles about, with a size proportional to the size of μ and dependent on details of the LPF.

Using the PLL, the estimates θ converge to a region about the phase offset Φ, and then oscillate.
Using the PLL, the estimates θ converge to a region about the phase offset Φ , and then oscillate.

When the frequencies are not the same, θ has a definite trend (the simulation in [link] used f 0 = 1000 Hz and f c = 1001 Hz). Can you figure out how the slope of θ relates to the frequency offset? The caption in [link] provides a hint. Can you imagine how the PLL might be used to estimate the frequency as wellas to find the phase offset? These questions, and more, will be answered in "Frequency Tracking" .

When the frequency estimate is incorrect, θ becomes a “line” whose slope is proportional to the frequency difference.
When the frequency estimate is incorrect, θ becomes a “line” whose slope is proportional to the frequency difference.

Use the preceding code to “play with” the phase locked loop algorithm. How does μ affect the convergence rate? How does μ affect the oscillations in θ ? What happens if μ is too large (say μ = 1 )? Does the convergence speed depend on the value of the phase offset?

In pllconverge.m , how much filtering is necessary? Reduce the length of the filter. Does the algorithmstill work with no LPF? Why? How does your filter affect the convergent value of the algorithm?How does your filter affect the tracking of the estimates when f 0 f c ?

The code in pllconverge.m is simplified in the sense that the received signal rp contains just the unmodulated carrier. Implement a more realistic scenario by combining pulrecsig.m to include a binary message sequence, pllpreprocess.m to create rp , and pllconverge.m to recover the unknown phase offset of the carrier.

Using the default values in pulrecsig.m and pllpreprocess.m results in a ψ of zero. [link] provided several situations in which ψ 0 . Modify pllconverge.m to allow for nonzero ψ , and verify the code on the cases suggested in [link] .

TRUE or FALSE: The optimum settings of phase recovery for a PLL operating on a preprocessed (i.e. squared and narrowlybandpass filtered at twice the carrier frequency) received PAM signal are unaffected by the channeltransfer function outside a narrow band around the carrier frequency.

Investigate how the PLL algorithm performs when the received signal contains pulse shaped 4-PAM data.Can you choose parameters so that θ Φ ?

Many variations on the basic PLL theme are possible. Letting u ( k T s ) = r p ( k T s ) cos ( 2 π f 0 k T s + θ ) , the preceding PLLcorresponds to a performance function of J P L L ( θ ) = LPF { u ( k T s ) } . Consider the alternative J ( θ ) = LPF { u 2 ( k T s ) } , which leadsdirectly to the algorithm This is sensible because θ that minimize u 2 ( k T s ) also minimize u ( k T s ) .

θ [ k + 1 ] = θ [ k ] - μ LPF u ( k T s ) d u ( k T s ) d θ θ = θ [ k ] ,

which is

θ [ k + 1 ] = θ [ k ] - μ LPF { r p 2 ( k T s ) sin ( 4 π f 0 k T s + 2 θ [ k ] ) cos ( 4 π f 0 k T s + 2 θ [ k ] ) } .
  1. Modify the code in pllconverge.m to “play with” this variation on the PLL. Try a variety of initialvalues theta(1) . Are the convergent values always the same as with the PLL?
  2. How does μ effect the convergence rate?
  3. How does μ effect the oscillations in θ ?
  4. What happens if μ is too large (say μ = 1 )?
  5. Does the convergence speed depend on the value of the phase offset?
  6. What happens when the LPF is removed (set equal to unity)?
  7. Draw the corresponding error surface.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Software receiver design. OpenStax CNX. Aug 13, 2013 Download for free at http://cnx.org/content/col11510/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Software receiver design' conversation and receive update notifications?

Ask