Docsity

Laboratory Exercise - Phase-Locked Loop | ECET 4420, Lab Reports of Microelectronic Circuits

Toggle sidebar
bg1
Southern Polytechnic State University
Electrical and Computer Engineering Technology Department
ECET 4420 Laboratory Exercise: Phase-Locked Loop
Revised 10/05
Objective:
The objectives of this exercise are to study the various aspects of PLL operation, to perform
some of the basic calculations of the PLL performance parameters, and to observe demodulation
of a FSK waveform using a PLL.
Introduction:
The phase locked loop is a non linear feedback loop. The PLL performance is described by non-
linear equations. The principle of operation is simple or so it would appear. Consider the PLL
block diagram as shown in Fig. 1 in an open-loop form (feedback link cut). If the VCO is tuned
precisely to the frequency of the incoming signal, then the output Vout would be a DC voltage
whose magnitude depended on the phase difference between the VCO waveform and the
incoming signal.
Now suppose the VCO starts to drift slowly in frequency. Depending upon which way it drifted,
the output would be a slowly varying AC waveform, at a frequency sometimes called the beat
frequency.
If the sign of the slow varying AC voltage, now a VCO control voltage, is such that it is
changing in a direction to force the VCO back to the incoming carrier frequency, the VCO is
encouraged to ‘lock-on’ to the incoming signal. This is principle of carrier acquisition. This is
the normal function of the closed-loop PLL.
PLLs may be used to track the frequency changes in the input waveform, producing a time-
varying voltage at Vout that resembles the waveform that modulated the input waveform in the
first place.
In this laboratory exercise, you will calculate the expected loop gain, capture range, and lock
range of a PLL that you will build using the TIMS system. Then you will input a frequency-shift
key waveform and examine the recovered bit pattern at Vout. Recall that FSK is a special type of
frequency modulation in which the carrier is shifted between to discrete frequencies according to
a digital bit pattern.
Fig. 1. PLL block diagram
Input
fi
Vout
V
CO Output
fo
Phase Detector
Kd
V
CO
Ko
A
mp
Ka
Loop
Filter
Kf
pf3
pf4
pf5

Partial preview of the text

Download Laboratory Exercise - Phase-Locked Loop | ECET 4420 and more Lab Reports Microelectronic Circuits in PDF only on Docsity!

Southern Polytechnic State University

Electrical and Computer Engineering Technology Department ECET 4420 Laboratory Exercise: Phase-Locked Loop

Objective:

The objectives of this exercise are to study the various aspects of PLL operation, to perform some of the basic calculations of the PLL performance parameters, and to observe demodulation of a FSK waveform using a PLL.

Introduction:

The phase locked loop is a non linear feedback loop. The PLL performance is described by non- linear equations. The principle of operation is simple or so it would appear. Consider the PLL block diagram as shown in Fig. 1 in an open-loop form (feedback link cut). If the VCO is tuned precisely to the frequency of the incoming signal, then the output Vout would be a DC voltage whose magnitude depended on the phase difference between the VCO waveform and the incoming signal.

Now suppose the VCO starts to drift slowly in frequency. Depending upon which way it drifted, the output would be a slowly varying AC waveform, at a frequency sometimes called the beat frequency.

If the sign of the slow varying AC voltage, now a VCO control voltage, is such that it is changing in a direction to force the VCO back to the incoming carrier frequency, the VCO is encouraged to ‘lock-on’ to the incoming signal. This is principle of carrier acquisition. This is the normal function of the closed-loop PLL.

PLLs may be used to track the frequency changes in the input waveform, producing a time- varying voltage at Vout that resembles the waveform that modulated the input waveform in the first place.

In this laboratory exercise, you will calculate the expected loop gain, capture range, and lock range of a PLL that you will build using the TIMS system. Then you will input a frequency-shift key waveform and examine the recovered bit pattern at Vout. Recall that FSK is a special type of frequency modulation in which the carrier is shifted between to discrete frequencies according to a digital bit pattern.

Fig. 1. PLL block diagram

Input f (^) i

Vout

VCO Output f (^) o

Phase Detector K (^) d

VCO Ko

Amp Ka

Loop Filter Kf

Pre-Lab:

  1. The VCO will be set to a free-run frequency of 100kHz, which occurs for an input voltage of 0Vdc. Its output waveform will be a 5V peak-peak square wave. It will be set for an input voltage range of ±3V and a tuning range of ±30kHz. Assuming that it has a linear gain characteristic, calculate the VCO gain KO in Hz/V and radians/(second×volt).

VCO Gain KO:

  1. The phase detector is a true analog multiplier. The input waveforms will be square waves with amplitudes of 5V peak-peak. The multiplier will be set to AC-couple the input waveforms, so they can be assumed to have an amplitude range of ±2.5V peak-peak. The phase detector gain will be calculated using the following technique.

First, consider two 5V peak-peak (±2.5V swing) square waves that are exactly in-phase (phase error of Өe = 0 radians). If they are input to the analog multiplier, what would be the output voltage? Note: it may help to sketch the waveforms.

Multiplier output voltage when Өe = 0:

Second, if the same square waves are offset by π/2 (90°), what would the multiplier output voltage be?

Multiplier output voltage when Өe = π/2:

Assuming that the phase detector gain is linear, calculate the gain Kd1 by dividing the difference in multiplier output voltages by the difference in phase errors. Write this as a positive number below.

Phase detector gain Kd1:

The TIMS multiplier scales the gain Kd1 by approximately ½, so the approximate phase detector gain is 0.5 Kd1. Write the TIMS phase detector gain below as K (^) d.

TIMS Phase detector gain Kd :

  1. The PLL loop filter is a simple R-C low-pass filter with cutoff frequency of about 2.8kHz. You can assume that Kf = 1 and K (^) a = 1 in the PLL. Calculate the PLL loop gains KV (in Hz) and KL (in Hz/rad).

PLL loop gain KV: PLL loop gain KL:

Fig. 3. PLL Connections

e) Set the DC power supply to 3VDC and adjust the VCO GAIN control until the VCO output frequency is 70 ± 0.5 KHz. f) This completes the VCO set up.

  1. To set up the multiplier, switch the DC/AC switch to AC. This is very important because it makes the input waveforms symmetric about 0V.
  2. Set the function generator to produce a 5V peak-peak square wave at the VCO free-run frequency. Be sure to measure this waveform on the oscilloscope.
  3. Connect the PLL as shown in Fig. 3. The PLL input is the X input of the multiplier.
  4. Connect the function generator to the PLL input so that the function generator ground goes to the green GND connector in the TIMS Variable DC module and the signal lead goes to the X input of the multiplier. Monitor the function generator waveform on the oscilloscope along with the VCO output. Check to see if the PLL is locked. A locked condition is signified by both waveforms being stationary on the display.
  5. Once the loop is locked, the VCO tracks the reference (until it exceeds the lock range). So, by changing the input frequency and measuring the phase difference between VCO and reference as well as the low-pass filter output voltage at each setting of the input frequency, you can plot the phase detector gain curve. By also recording the VCO output frequency at the same time, you can plot the VCO gain curve.
  6. For each of the frequencies in Table 1, record the phase difference Өe between the VCO and input waveforms, the VCO input voltage ( use a voltmeter ), and the VCO output frequency. Ensure that the PLL is locked. If it is not, choose some other frequencies. When determining

Utilities

RC LPF

VCO

TTL

Vin

Vout

VCO out

Function Generator Input

Multiplier

X

Y kXY

AC

DC

whether the phase error is leading or lagging, use the function generator waveform as the reference.

Table 1. Measured PLL data.

Nominal Frequency Measured VCO Frequency VCO Input Voltage Phase Error Өe

Free-run + 4 KHz

Free-run + 2 KHz

Free-run

Free-run – 2 KHz

Free-run + 4 KHz

  1. Measure the PLL upper and lower lock frequencies and the upper and lower capture frequencies. Record the phase error at those frequencies using the function generator signal as the reference. Table 2. Measured PLL lock and capture frequencies

Frequency Measured Frequency Phase Error Өe

Upper lock, f (^) LU

Lower lock, fLL

Upper capture, f (^) CU

Lower capture, fCL

  1. Compute the relative differences between the calculated values of your and capture frequencies from your prelab and the measured ones.
  2. You will now demonstrate the FM demodulation capabilities of the PLL. For that, you will use the FM capability of the function generator. a) Set the FM carrier frequency to 100KHz. b) Use the modulation frequency and modulation index specified by your instructor. c) If all goes well, the Vout (Message Out) signal will be the recovered FM modulation. Print out your recovered signal.
  3. (Optional) Your instructor may demonstrate the use of the PLL as a frequency multiplier or frequency synthesizer.