Get Adobe Flash player
FacebookTwitterGoogle+
English Arabic French German Italian Portuguese Russian Spanish

Did you know?

An Electric eel can produce an electric shock of up to 650 volts at one ampere.
 

Help us stay online:

small donate

 

plllogoA tutorial or overview about the basic concepts of a phase locked loop, PLL, detailing how it works and how they may be designed.

The phase locked loop or PLL is a particularly flexible circuit building block. The phase locked loop, PLL can be used for a variety of radio frequency applications, and accordingly the PLL is found in many radio receivers as well as other pieces of equipment.

 

 

The phase locked loop, PLL, was not used in early radio equipment because of the number of different stages required. However with the advent of radio frequency integrated circuits, the idea of phase locked loops, PLLs, became viable. Initially relatively low frequency PLLs became available, but as RF IC technology improved, so the frequency at which PLLs would operate rose, and high frequency versions became available.

 

Phase locked loops are used ain a large variety of applications within radio frequency technology. PLLs can be used as FM demodulators and they also form the basis of indirect frequency synthesizers. In addition to this they can be used for a number of applications including the regeneration of chopped signals such as the colour burst signal on an analogue colour television signal, for types of variable frequency filter and a host of other specialist applications

 

PLL concepts - phase

 

The operation of a phase locked loop, PLL, is based around the idea of comparing the phase of two signals. This information about the error in phase or the phase difference between the two signals is then used to control the frequency of the loop.

To understand more about the concept of phase and phase difference, first visualise a radio frequency signal in the form of a familiar x-y plot of a sine wave. As time progresses the amplitude oscillates above and below the line, repeating itself after each cycle. The linear plot can also be represented in the form of a circle. The beginning of the cycle can be represented as a particular point on the circle and as a time progresses the point on the waveform moves around the circle. Thus a complete cycle is equivalent to 360 degrees. The instantaneous position on the circle represents the phase at that given moment relative to the beginning of the cycle.

 

To look at the concept of phase difference, take the example of two signals. Although the two signals have the same frequency, the peaks and troughs do not occur in the same place. There is said to be a phase difference between the two signals. This phase difference is measured as the angle between them. It can be seen that it is the angle between the same point on the two waveforms. In this case a zero crossing point has been taken, but any point will suffice provided that it is the same on both.

 

When there two signals have different frequencies it is found that the phase difference between the two signals is always varying. The reason for this is that the time for each cycle is different and accordingly they are moving around the circle at different rates. It can be inferred from this that the definition of two signals having exactly the same frequency is that the phase difference between them is constant. There may be a phase difference between the two signals. This only means that they do not reach the same point on the waveform at the same time. If the phase difference is fixed it means that one is lagging behind or leading the other signal by the same amount, i.e. they are on the same frequency.

 

PLL basics

 

A phase locked loop, PLL, is basically of form of servo loop. Although a PLL performs its actions on a radio frequency signal, all the basic criteria for loop stability and other parameters are the same.

 

A basic phase locked loop, PLL, consists of three basic elements:

 

    * Phase comparator:   As the name implies, this circuit block within the PLL compares the phase of two signals and generates a voltage according to the phase difference between the two signals.


    * Loop filter:   This filter is used to filter the output from the phase comparator in the PLL. It is used to remove any components of the signals of which the phase is being compared from the VCO line. It also governs many of the characteristics of the loop and its stability.


    * Voltage controlled oscillator (VCO):   The voltage controlled oscillator is the circuit block that generates the output radio frequency signal. Its frequency can be controlled and swung over the operational frequency band for the loop.

 

Phase comparator

 

A phase detector is basically a comparator that compares the input frequency fin with feedback frequency fout. The phase detector receives two digital signals, one from the input, the other feedback from the output. The loop is locked when these two signals are of the same frequency and have a fixed phase difference (A locked PLL is analogous to an op-amp not being saturated). The output of a phase detector is a dc voltage and therefore is often referred to as the error voltage, Ve. DC output voltage becomes maximum when the phase difference between the two frequencies fin and fout is ∏ radians or 180°. Without input signal, the error voltage Ve is equal to zero and the VCO operates at a set frequency ‘fr‘ which is also called free-running frequency of the VCO. When the input signal frequency is the same as that from the VCO to the Phase comparator, the voltage, Vd, taken as output is the value required to hold the VCO in lock with the input signal. If the two input pulses to the Phase comparator are of exactly the same frequency and phase, the output of the Phase comparator is zero, otherwise there I will be an output proportional to their phase difference.


Low-pass filter

 

Low-pass filter is used to remove high frequency components and noise from the output of the phase detector. It affects the dynamic characteristics of the PLL including bandwidth, capture and lock ranges and transient response. The low-pass filter accepts the output from the phase detector, removes the high frequency noise and produces a dc level.


Voltage Controlled Oscillator (VCO)

 

Voltage-controlled oscillator generates frequency controlled by input voltage. The dc level output of a low-pass filter is applied as control signal to the voltage-controlled oscil­lator (VCO). The output frequency of the VCO is directly proportional to the input dc level. The VCO frequency is adjusted till it becomes equal to the frequency of the input signal. During this adjustment, PLL goes through three stages-free running, capture and phase lock. Best operation is obtained if the centre frequency of the VCO is set with the dc bias voltage midway in its linear operating range. The amplifier allows this adjustment in dc voltage from that obtained as output of the filter circuit. When the loop is in lock, the two signals to the Phase comparator are necessarily of the same frequency although not necessarily in phase. A fixed phase difference between the two signals to the comparator results in a fixed dc voltage to the VCO. Variation in the input signal frequency then causes variation in the dc voltage to the VCO. Within a capture-and-Iock frequency range, the dc voltage will drive the VCO frequency to match that of the input.

 

Phase locked loop operation

 

The concept of the operation of the PLL is relatively simple, although the mathematical analysis can become more complicated

The Voltage Controlled Oscillator, VCO, within the PLL produces a signal which enters the phase detector. Here the phase of the signals from the VCO and the incoming reference signal are compared and a resulting difference or error voltage is produced. This corresponds to the phase difference between the two signals.


1

Block diagram of a basic phase locked loop (PLL)

 

The error signal from the phase detector in the PLL passes through a low pass filter which governs many of the properties of the loop and removes any high frequency elements on the signal. Once through the filter the error signal is applied to the control terminal of the VCO as its tuning voltage. The sense of any change in this voltage is such that it tries to reduce the phase difference and hence the frequency between the two signals. Initially the loop will be out of lock, and the error voltage will pull the frequency of the VCO towards that of the reference, until it cannot reduce the error any further and the loop is locked.

When the PLL is in lock a steady state error voltage is produced. By using an amplifier between the phase detector and the VCO, the actual error between the signals can be reduced to very small levels. However some voltage must always be present at the control terminal of the VCO as this is what puts onto the correct frequency.

The fact that a steady error voltage is present means that the phase difference between the reference signal and the VCO is not changing. As the phase between these two signals is not changing means that the two signals are on exactly the same frequency.

 


Here is one example with actual frequencies to understand better:

2

 

Reference frequency oscillator The high stability oscillator like a crystal oscillator etc. are used.
Voltage controlled oscillator ( VCO ) This is the oscillator that frequency changes by voltage control.
Phase comparator The comparative difference between reference oscillation frequency and output frequency is detected.
In the case that there is a difference the control voltage is output.
In the case that the output frequency is high the voltage that lowers frequency to VCO is output.
Programmable counter Dividing output frequency comparative frequency is made.
Output frequency can be changed by changing the counting value.

 

 


If we add one frequency divider which is actually programable couter at input of reference signall we get fractional PLL frequency at output.
This means that if input Programable counter and programable counter in pll loop are software programable and they usually are user have posibility to choose with for examle microcontroller any output frequency from 1Hz to 25MHz with resolution of 1Hz!!! (this is only example and reall values depend oh choosen components)

 

Here is another example with values that demonstate fractional PLL principle
Output frequency is 

 

Fout=(Fin/DIVIDERinput)*DIVIDERloop

 

3

If these dividers are 24bit try to calculate how many different combinations are possible => (24bit variable)/(24bit variable)

 

 

 

 

 

 

 

 

 

 

Summary

 

The phase locked loop, PLL, is one of the most versatile building blocks in radio frequency electronics today. Whilst it was not widely used for many years, the advent of the IC meant that phase locked loop and synthesizer chips became widely available. This made them cheap to use and their advantages could be exploited to the full. Nowadays most hi-fi tuners and car radios use them and a large proportion of the portable radios on the market as well. With their interface to microprocessors so easy their use is assured for many years to come.

 

 Text partially taken from sites

 

www.piclist.com

www.radio-electronics.com

www.circuitstoday.com