Lecture 58 - Basics of Phase Locked Loop - I

IIT Roorkee July 201
61 followers
1 Video ViewĀ·Mar 4, 2024
Concepts Covered: Phase Detectors, Type - 1 PLL, Analysis of Simple PLL, Frequency Multipliers, Drawbacks of Simple PLL.
[Music]
[Music]
uh welcome to RF trans design course in
last uh two three class classes we are
discussing about the power amplifier
design so if you see the uh up to now
whatever design that we have seen we
have started from the Amplified design
luno Amplified design then uh uh mixer
design oscillator design and power
amplifier design now one of the
important block of the RF transceiver
design is a phase lock loop which is a
widely used in RF transceiver design uh
now in uh two three classes we will try
to uh discuss the basic of uh phas lock
loop and uh basic type of the PLL design
uh if you are interested more to study
further there are separate courses are
available on the phage lock loop so
let's discuss the basic of the uh face
lock
loop so if we uh try to see the phase
lock Loops basic parameter then uh it uh
it can be classified order and type
there are different kind of types of
basic P are available type one and type
two so in uh this uh two three lectures
we will try to understand what are the
different type of the PS uh then uh one
of the important parameter is the
frequency range so at what frequency
range PLL works and it has a
different uh different kind of hold in
range for tracking the uh mean how the
frequency it tracks and it has a a pool
in range for capturing and acquis uh
doing the acquisition of the signal and
it has also lockin range so there are
different kind of frequency ranges that
that is important for the
plss uh another important parameter is a
loop bandwidth that is also important
for uh PLL because this is going to
define the overall PLL
speed and uh the third point is the
phase noise uh phase noise mostly depend
upon the vco that we are going to use
vco phase noise and
that phase noise can uh be improved by
uh making the uh by adding
the complete stability in the
PLL so uh pH noise is also very uh
important parameter for the uh PLL then
uh transient response so if you see that
uh there is a overshoot and sh occurs
because there is a feedback loop in the
system and that might uh change the
transient response of the PLL
output uh that is also very important
then steady steady state uh uh errors
like phase or timing error there is a
steady state error uh also is important
and uh basic parameters like uh how much
power consumption Supply voltage output
amplitude that is also important and the
last point that is a spectrum Purity at
the output because if there is a uh
change uh whatever voltage variation at
vco that we are getting it might change
the S Side Band in the output so it
might add the side band and that will uh
change the Spectrum Purity so so uh
these are the basic parameters that is
important for pH lock loop uh in this uh
lectures we will try to discuss uh type
one and type two basic PL and uh what
are the basic uh uh blog diagram of type
1 and type two and transfer function of
the type 1 and type two
PL so let's uh discuss the uh basic of
the pl so the first thing in the pl
design is a phase
detection so there are two uh signal
with a uh similar frequency x1t and x2t
and there is a change in the phas which
is given by Delta 5 so here in the plot
there is a x1t and x2t and there is a
difference Delta 5 so this x1t and X2 is
applied to the phase detector and what
phase detector should do the output is a
function of the change in this phase so
this if this phase is more then output
will be uh high if the phase difference
is less then the output will be
low so a phase detector uh is a circuit
that senses a two periodic inputs and
produce an output whose average value is
a proportional to the difference between
the phases of the input the x1t and x2t
the input output characteristics of the
face uh pH detector is ideally a
straight line and its slope uh is called
the gain and it can be denoted by K PD
because uh PD is a uh pH detector so uh
this is a uh how we can uh detect the
phase
now there is a possibility that uh the
frequency is a different x1t and x2t two
frequencies are there and uh there is a
fast change in the phase and what will
happen that due to the F change in the
phase uh if you see the X out it is also
the phase change is uh varied too much
and the average will
which is denoted by this doted line will
remain a constant so it cannot properly
detect the phase one of the condition
for the initial uh type one kind of PLL
is to have a uh same frequency uh
otherwise it cannot detect the
phase so how can we implement this pH
detector so simple example of pH
detector that we can Implement is a X or
gate so uh as uh as x1t and x2t is
applied to the x or gate then uh if you
see the at output X Out T you just get
the pulse if there is a change in the
either one and zero if there is a change
in the amplitude so during that time
only you will get the output otherwise
you will get either one one or 0 0 it is
a uh same zero output so this uh
exclusive orgate is a very basic uh uh
pH detector so here what we see uh
circuit was average output is
proportional to the input of face
difference and exclusive orgate can
serve this purpose and it generates
pulses whose width is equal to Delta 5
as shown in this figure
so uh we will uh try to go with the type
1 PLL and uh in the type 1 PL uh
alignments of vco phase
so uh this is a ideal reference clock
and uh this is a vco output so uh what
is happening that uh initially uh there
is a uh same same signal which is
applied now after some point of time at
T is equal to Z there is a change in the
pH now this change of the frequency here
uh allow the V to accumulate phase
faster than the references so that the
phase error vanes and change the
frequency back to its initial value so
how how this works uh here you can see
that uh this
uh ideal reference voltage and vco
output has a different phase now because
of that what is happening that it will
constantly V control will increase t0 to
T1 and accordingly it will also change
the frequency of the actual signal uh we
see output and after certain point of
time it will remain a constant so this
is how the type 1 PLL
work uh simple PLL and uh loop filter
so uh in simple PL what we need to do is
we need to detect the phas uh difference
uh so this is ideal reference clock and
then this is output voltage of the vco
now uh this ideal reference and this
phase will be uh compared and if there
is a phase difference it will generate
the pulses now according to this pulse
uh what will happen if we give directly
this pulse to the
VCU it will have a random change in the
uh voltage because this vco has a linear
relation with the uh frequency so it
input voltage and frequency has a linear
relation
so now if we want to make this pulse to
the uh voltage conversion then we need a
low pass filter where this low pass
filter will uh as this pulse is applied
there is a control voltage which is a
constant will be given to the vco so you
need a loop filter in between to the
phase detector and
VCU so here negative feedback loop if
the loop gain is sufficiently high the
circuit minimize the output error so we
we need to have a loop gain of the
complete Loop should be high so that uh
uh we can have a minim minimum error and
the phase detector produces a repetitive
pulse at its output and modulating the V
frequency and generating a large Side
Band so we need to interpose a low pass
filter between the face detector and the
vco to suppress this pulses so lopas
filter is uh uh must in order to uh
remove the uh unwanted uh large side
bends now uh if we try to see the
analogy with the basic voltage amplifier
which is a uh simple uh amplif which is
shown in the left with the uh Unity gain
feedback so this is uh whatever input
will be same will be the output so that
we can also compare with the PLL now in
the you need to gain feedback ofm
circuit whatever input voltage you give
same output voltage you will get
similarly in the uh PLL whatever input
uh phase that you have given and then
output phase uh it is going to input and
output both should be uh both phase
should be constant so the if we try to
uh see in terms of equation your output
phase minus input phase equal to
constant so if we take a differentiation
of this it is D5 out by DT with D5 in by
DT so output phas uh change is equal to
the input phas change so here we say the
loop is
locked if our output phase is uh minus
input phase is a constant with the time
so the this should be
constant and an important and unique
consequenc of phase locking is that the
input and output frequency of p p are
exactly equal so if that is a basic of
type fun PLL that uh the means your
frequency should be uh frequency of
input and output is a equal
frequency so if we try to analyze a
simple PLL this is a uh response of the
vco which is output frequency by the V
control so for different voltage V1 or
V2 we'll get a different frequency Omega
1 Omega 2 and this is for fa phase
detector for different Delta phase we
will get a different voltage V1 so input
voltage is given to the uh xor
gate and it will generate the VPD so
this is a input voltage and there is a
uh phe change output voltage so this
Delta 51 is a difference between input
voltage and output voltage so this is a
phase difference between input and
output so what will happen that VPD will
look like this where uh due to there is
a one zero uh it will get the one so you
will have a continuous pulse like this
you need RC filter R1 uh uh low pass
filter to make the constant voltage with
uh respect to this repel voltage and it
will be supplied to the voltage control
oscillator we have already seen this vco
voltage control oscillator while we
discuss the vco in the oscillators so as
as we change uh the this
oscillator uh it will uh as we change
the control voltage it will accordingly
increase or decrease the uh frequency
and uh our input will be input phase and
the whatever
reference uh reference phase will be
compared and we get a constant uh
VPD uh at at the constant VPD it will be
locked so here if the loop is locked the
input and output frequencies are
equal and the PD generates uh repetitive
pulses and the loop filter extract the
average
level and vco senses this level so has
to operate at a required frequency so if
the frequency will go up up or down
accordingly this V control voltage will
change and the frequency will change and
when there is a input and output
frequency are equal there is a constant
uh uh pulse and the average will remain
same so we control voltage will remain
same so uh example of phase error if the
input frequency changes by Delta Omega
so here input frequency how much is the
change in the phase error assume the
loop remain locked now if the here in
this case if input frequency is changing
by Delta
Omega what uh as shown in the above
figure uh such a change requires a v
control change by a Delta Omega by KV so
this is Delta
Omega the difference is Delta Omega and
this is a k v which is a slope this
intern necessity a phase error so Delta
52 minus Delta P1 which is equal to
Delta Omega by k v into K
PD so the phase error Delta 52 minus
Delta 51 is given by a Delta Omega by k
v that is a uh V we control change by
Delta Omega by KV into KV will be
multiplied with the kpt so the key
observation here is that the phase error
varies with the frequency so this this
will vary with the frequency Delta Omega
and to minimize the
variation uh what we need is we need to
maximize the KPD and k v so that Delta
52 by Delta 51 equal to uh its value
will not depend upon the uh variation in
the Delta
Omega so this
quantity uh is called a loop gain even
though it is not a dimension less so
this is a uh loop gain of
the uh
PL now uh response of a PL to the input
frequency step so
if if we try to change the this is Omega
1 frequency and this is this is input
frequency and this is output
frequency and as Omega 2 which is Omega
1 plus Delta Omega so what is happening
initially there is a no change so there
is a constant pulse and then after
certain period of time there is a change
in the uh change in the pulse so your we
control voltage is uh started increasing
and then again the the frequency is
changing high so this V control voltage
is uh changing
and this uh will start increasing the uh
frequency so similarly uh this Omega out
is also increasing after certain point
of time if you see the T1 uh at T1 it
will start uh comparing with the V input
frequency and then again it will start
reducing the
frequency or at uh after a certain point
of time when the both frequency are
equal you will have a uh constant uh
output and this difference between this
uh actual required we control and what
we are getting that difference is given
by Del Omega by K Vu so the loop locks
only after two conditions are satisfied
what is that when your Omega out becomes
equal to Omega in and the difference
between 5 in and 5 out settles to its
proper value so if these both conditions
satisfies then only the loop will be
settle we can also Al do the FSK Dem
modulation so we can also use the PLL
for the Dem modulation as shown in the
fle so the input frequency here toggled
between two values so does the output
frequency and the control voltage must
be also togal between these two value so
what will happen that initially control
voltage is uh high and then frequency is
changing control voltage is a low so it
it will able to the control voltage that
we are getting what we will get is
a whatever pulse which is a
transmitted uh that will directly we we
get by the control voltage so the
frequency modulated signal uh the we can
use a Dem modulator by just uh applying
the signal we in to the uh V to uh the
pl
so uh sometimes uh it is uh uh we we
might think that PLL is no longer than a
uh it is just a wire because the input
frequency and output frequency is
remaining same but having uh if we
uh carefully followed the uh our student
student reason that except for FSK
demodulated application a PLL is no
better than a wire since it attempts to
make the input and output frequency
phase equal so what is a uh wrong in the
student thinking this uh wrong
is that we can observe that the Dynamics
of the loop can yield interesting and
useful
property suppose uh the input frequency
toggles at relatively High rate leaving
a little time for the PLL to to keep up
at each input frequency jump the control
voltage begins to change in the opposite
direction but does not have enough time
to settle uh in other words the output
frequency uh Excursion are smaller than
the input frequency jumps so the loop
does perform a low pass filtering on the
input frequency variation just as the
unity gain buffer perform low pass
filtering on the input voltage variation
if the output OPM has a limited
bandwidth so in fact many application
incorporate PLL to reduce the frequency
or phase noise of a signal by means of
the this low pass filtering properties
so that is why uh PLL is not only uh
just a wire it is also uh helping to
improve the phase uh or noise phase
noise in the
system so it is one kind of low pass
filtering that we are uh applying
property so uh the meaning of a transfer
function in a face domain we we now try
to derive the transfer function here
what is happening that there is a two
analogy is given one is a OPM and
another is a PL now in OPM if there is a
uh Fast Change in the signal is
happening then it amplitude is reduced
so here you can see the amplitude is
reduced if there is a uh constant uh
voltage means uh it if it is not fast
changing then it is following the input
so the transer function of voltage
domain circuit signifies how sinus
voltage propagates to the output
and in the transfer function of PLL must
you will have a slow or fast change in
the
input uh phase propagates to the output
so here there is a same example for a
slow phase change and a fast phas change
is given so how it will adapt your PLL
how it will
adapt so if we try to find out the
transfer function of the PLL so this
this is uh input Phase 5 in and this is
output phase five out so the uh if we
try to use
the difference if we the difference
between this is 5 in minus 5 out so if
we want to find five out by five in the
open loop transfer function so the open
loop is a
KPD by because there is a low pass
filter R1 C1 uh 1 uh 1 by 1 + R1 C1 s
into we already have derived for vco K
vco by S so the transfer function HS is
given by 5 out by 5 in into s equal to
uh KPD by K vco R1 C1 s² + S KPD into K
VC so if we if we see this transfer
function the open loop transfer function
this open loop transfer function
contains a one pole at the
origin that is a uh R1 C1 and that is
why this kind of PL is called a type 1
PL and if we have a slow input phase
variation where s is equal to0 if we
consider s is equal to Z in this our
transfer function will equal to 1 so uh
this kind of P will uh work for a slow
input phase variation if there is a
large variation this will not work now
this transfer function the Clos Loop
transfer function if we try to compare
with
the
uh HS means that is any system with a uh
transer function uh H is equal to Omega
n not omega n² by S by 2 Z Omega n s +
Omega n s so we will get a damping
factor and a natural frequency for the
system so uh this uh system uh for this
PLL the damping
factor which is one of Omega low pass
filter frequency by K PD into K VCU and
your natural frequency is given by KPD
kvco into Omega of L lopas filter so you
need to have a damping pictor which is
equal to < tk2 by2 or a larger so as to
provide a well behaved means critically
damped or or damped
response and your here Omega lopas
filter is equal to 1 by R1 into C1 so
here we can see that Z is inversely
proportional to K
VCU now if we try to plot the open loop
transfer function this is a bord plot of
the open loop transfer function then uh
if we try to increase the uh K vco what
is happening that uh its phase margin is
decreasing so that will lead to
unstability uh in the system so uh that
is one of the drawback of this kind of V
so the behavior of open loop transfer
function H open for a two different
values of KV as KV increases the unity
gain frequency Rises and thus reducing
the phase
margin so
here uh to addition for loop loop
Dynamic since a linear and time
invariant operation relates to phase and
frequency the equation below uh how does
we ensure the feedback of previous
simple P imp implementation is a
negative uh it is obvious that the phase
detector provides both negative and
positive gain thus the loop
automatically lcks with the negative
feedback now if our input frequency is
different than the output frequency we
can also use a frequency
multiplication the way we do in the uh
when we want to have the voltage gain in
OPM we use feedback so here the input
and output has a we use R1 and R2 and we
vary R1 R2 such that we get a different
G so similarly what we do in the uh uh
in the PLL is we use a uh we provide a
input frequency Omega in there is a
phase detector and the in order to have
if Omega out frequency is high then we
use a let's say divide by two that is a
divider so the if the input frequency is
1 gahz and output frequency is 2 gahz
that 2 gahz is divided by two and the
same frequency will be provided at the
pH detector so uh this uh method uh is
called
uh dividing uh frequency multiplication
in the PLL and here divide by m circuit
is counter that generates one output
pulse for every M input uh pulses and
this divide ratio m is called a modulus
so we we can add a different modulus to
have a different output
frequency so what is a drawback what we
have seen in simple PL so the first is a
there is a TI relation between a loop
stability and the C
frequency that is 1 by R1 C1 of the low
pass
filter and repel on the control line
modulate the V frequency and must be
suppressed by choosing a low value of
Omega low pass filter so if we have a
low value it will lead to less stable
Loop because the Z is directly depend
upon the Omega lowas filter
second is that the simple PLL suffers
from a limited acquisition range and IF
weo frequency and input frequency are
very different at the startup there is a
problem uh loop may never require a lock
there is not possibility of a locking in
addition the finite static phase error
and its variation with the input
frequency also prove undesirable in some
application so this because of this two
we need to uh uh go to the another kind
of PLL so the second point if we try to
address then we'll try to see that how
the first point can also be addressed so
in the second Point what is there that
if there is a change in the frequency at
the start stter so we already have
detected the phase in the type 1 PL now
if we want to detect the
uh frequency in the type 2 PLL then uh
we need a phase frequency
detector we'll discuss more about the uh
type 2 PLL in the uh next class uh this
is uh all about the typ 1 PL thank
[Music]
you
[Music]
a
