Phase Locked Loops-A Control Centric Tutorial
Phase Locked Loops-A Control Centric Tutorial
Phase Locked Loops-A Control Centric Tutorial
May 8, 2002
Talk Outline
• Brief History
• PLL Basics
• Digital PLLs
• Loop Components
– Phase Detectors
– Voltage Controlled Oscillators
– Loop Filters
• Noise
• Applications
• The earliest widespread use of PLLs to the horizontal and vertical sweeps used in television,
where a continuous clocking signal had to be synchronized with a periodic synch pulse (Wendt
& Fredendall, 1943). PLLs critical to development of color television (Richman, 1954).
• The first PLL IC arrived around 1965. This created an explosion in the use of PLLs.
• The first digital PLL appeared around 1970. This was of the classical digital PLL type.
• The first laser appears in 1960. The first optical PLL arrives 4 years later.
• PLLs today:
– PLLs in every cell phone, television, radio, pager, computer, all telephony, ...
– The most prolific feedback system built by engineers.
– At low end: all software PLLs implement entire PLL functionality on sampled data.
– At high end: optical PLLs used in clock recovery for 160 Gbps data (OFC 2002).
– Boy band called: N’Sync.
PLL Basics
Phase Loop
Detector Filter
Reference
Signal
Voltage
Controlled
Signal Oscillator
Phase-Locked
to Reference
Phase Loop
Detector Filter
Reference
Signal
Voltage
Controlled
Signal Oscillator
Phase-Locked
to Reference
• A phase detector (PD). This is a nonlinear device whose output contains the phase
difference between the two oscillating input signals.
• A voltage controlled oscillator (VCO). This is another nonlinear device which pro-
duces an oscillation whose frequency is controlled by a lower frequency input voltage.
• A loop filter (LF). While this can be omitted, resulting in what is known as a first
order PLL, it is always conceptually there since PLLs depend on some sort of low
pass filtering in order to function properly.
• A feedback interconnection. Namely the phase detector takes as its input the
reference signal and the output of the VCO. The output of the phase detector, the
phase error, is used as the control voltage for the VCO. The phase error may or may
not be filtered.
• PLLs are almost always low order (not counting various high frequency filters and
parasitic poles). Typically first or second order. A few third or fourth order loops.
• With the exception of PLL controlled motors, the PLL designer is responsible for
designing/specifying all the components of the feedback loop. Complete feedback
loop design replaces control law design, and the designer’s job is governed only by
the required characteristics of the input reference signal, the required output signal,
and technology limitations of the circuits themselves.
• PLL control of motors, the motor and optical coupler takes the place of the VCO.
The rest is at the designer’s discretion.
• Control theory used in most PLL texts is straight linear system design with a small
amount of nonlinear heuristics thrown in.
• Stability analysis and design of the loops is combination of linear analysis, rule of
thumb, and simulation.
• General theory of PLLs and ideas on how to make them even more useful seems to
cross into the controls literature only rarely.
PLL Basics
Asin(wit + qi)
Loop
Filter
Reference
Signal VCO
Control
cos(wot + qo) Voltage Voltage
Controlled
Signal Oscillator
Phase-Locked
to Reference
• General sinusoid at reference input can be written as:
• Mixer output:
High
Bandpass Loop
Frequency
Filter Filter
LP Filter
Reference
Signal
Voltage
Controlled
Signal Oscillator
Phase-Locked
to Reference
• Two fundamental assumptions lead to common analog PLL model. Let θd = θi −θo . Then these assumptions
are:
1) The first term in (4) is attenuated by the high frequency low pass filter in and by the low pass
nature of the PLL itself.
2) Let ωi ≈ ωo , so that the difference can be incorporated into θd . This means that the VCO can be
modeled as an integrator.
3) The baseband phase detector output is then:
AKm AKm
vd (t) ≈ sin(θi (t) − θo (t)) = sin(θd (t)) (5)
2 2
qi qd
S Kdsin( ) F(s)
- VCO
Ko
qo s x
Useful for studying loops that are near lock, does not help when θd is large.
2) Phase plane portraits. Classical graphical method of analyzing behavior of low order
nonlinear systems about a singular point. Can only completely describe first and second
order systems.
3) Simulation. Explicit simulation of the entire PLL is relatively rare. Problem is stiff.
Simulations that sample fast enough to characterize the 2ωo t term are often far too slow
to effectively characterize the baseband.
=⇒ Simulate the response of the components (phase detector, filter, VCO) in signal
response space.
=⇒ Simulate the entire loop only in signal phase space.
qi qd
S Kd F(s)
- VCO
Ko
qo s x
Used for most analysis and measurements of PLLs. Model has some omissions:
• Not in the loop itself & the actual input frequency is often not known or is variable.
• The designer has some idea of the range of the signal.
• Input bandpass filter can considerably reduce broadband noise entering the system.
2) The texts typically omit the high frequency low pass filter. The loop filter is optimized
for the stability and performance of the baseband (phase).
3) Amplitude of the phase error is dependent upon A, the input signal amplitude. The
linearized model has a loop gain that is dependent upon the loop components. Thus,
in practical loop design, the input amplitude must either be regulated or its affects on
the loop must be anticipated.
• Most PLL designs are second order, with integrator and minimum phase zero in the filter
=⇒ Type 2 systems.
• Third order and higher PLL designs are not that common.
– Few applications need zero steady state error for an accelerating phase (e.g. deep space
communications with Doppler shift).
– Stability bounds for nonlinear third order system are not the same as stability bounds for
third order linear system.
Many PLLs have high frequency filters or parasitic capacitances, but these are well beyond the
loop bandwidth.
• Phase Plane
– Classical nonlinear systems analysis method, but limited to first and second order systems.
=⇒ Another reason why third order loops are avoided
• Lyapunov Redesign
• Circle/Popov Criteria
– See Eva Wu’s talk later this session and previous work.
Digital Signals
– Most digital phase detectors are linear in phase over some region.
– Thus linear analysis is fairly accurate.
Software PLLs
Window (Freq.) Adjustment
error b win
Int0 S
-1 • An example of a software PLL that
z Int0 does clock/data recovery.
z -1
Edge (Phase) Adjustment
When data can be sampled at a rate substantially faster than the loop center frequency,
the entire loop operation can be implemented in software. This has the advantage of
flexibility. Any type of PLL can be implemented in software provided the sample rate is
high enough. Software loops have a lot in common with simulation. One key difference
is that the software loops deal with real data. Software PLLs may operate on the data in
real time, but can also be used in the post processing of measured data. One cautionary
note is that certain operations which are highly effective in hardware, such as limiters
which have a lot of high frequency content, create real sampling issues for software loops.
Talk Outline
• Brief History
• PLL Basics
• Digital PLLs
• Loop Components
– Phase Detectors
– Voltage Controlled Oscillators
– Loop Filters
• Noise
• Applications
Phase Detectors
Phase Loop
Detector Filter
Reference
Signal
Voltage
Controlled
Signal Oscillator
Phase-Locked
to Reference
• Whether or not a PLL can track a signal is largely dependent on the phase detector.
• Drawing your own diagram is the only way to understand the workings of a phase
detector.
-p -p/2
• Classical mixing phase detector
p/2 p qe
VCO
Signal
Vd
Vdm
Reference
vb • Phase detection using an XOR gate.
Signal vi -p -p/2
• Note that this accomplishes the same
VCO va p/2 p qe
Signal vo thing as an over driven mixer, but
vd = vb - va with digital circuitry.
vi R Q1
Vd
Q Vdm
D
qe
Vd -p p
D
V Q2
Q
vo
• The memory elements desensitizes the PD to duty cycles, but makes it more sensitive to noise.
Phase-Frequency Detector
Tri-State Charge
Phase-Frequency Pump
Detector
Vd
1
D Vdm
R
Q
vi R Vu -4p -2p qe
2p 4p
V
R Z
Q
vo D Vd
1
• The charge pump can be viewed as a 3 position switch controlled by the phase-frequency
detector.
• The action of the charge pump is to alleviate any loading of the phase detector in driving the
rest of the circuit. This allows the response to be smoother than without the charge pump.
• An extremely popular phase detector. Used in frequency synthesis, motor control, etc.
• Note that the loop filter is often implemented in the Z block of the charge pump.
• Note that the 4π linear range is due to memory. PD can come up in one of 2 possible states
and the PLL must account for this.
vi
• A small phase difference
shows that only the lead-
vo ing edges of the signal and
not the duty cycle are im-
portant.
vu
vd
vi
vo
• As only the leading edges
are significant, these are
vu
compared to show the
phase behavior of the de-
vd tector.
vd
vi
• This same property makes
the PFD ineffective for
vo use in clock data recovery
(CDR).
vu • The “missing” transitions
in the data trick the PFD
vd into slewing the frequency
to a lower clock rate, as
shown in the right dia-
vd gram.
Vd
vi
- Vdm
vi + -p -p/2
vo
p/2 p qe
vo
vd
• The VCO signal, vo is used to trigger sampling of vi as shown in the right middle plot.
• If the frequency of vo matches or is close to the input frequency, the value of the sampled signal will
depend only on the relative phase of vi and vo .
• Because the sample rate is below the Nyquist frequency, the samples alias down.
• These aliased samples create a phase error signal as seen in the right lower plot.
• The shape of the phase detector characteristic is based on the shape of the input signal, vi , so that if
vi is sinusoidal, v̄d is sinusoidal. If vi is triangular, v̄d is triangular. Finally, if vi is a square/rectangular,
then v̄d has a relay characteristic.
• Note also that there is no high frequency component resulting from this phase detector. This can
be seen analytically due to the fact that the zero-order hold has a zero at the sample frequency.
vi
(Data)
D vb
vo Vd
VH - VL
(Clock) Q1 4
vd qe
-p p
D va
Q2
Data For 50% transition density.
• Used primarily in clock data recovery applications (CDR), the Hogge detector has a linear charac-
teristic.
• XOR output V̄b generates pulses where the leading edge is controlled by the data timing and the
trailing edge is controlled by the clock.
vi • Vi is data signal
Vd
c a
vi D Q D Q Vdm
(Data)
Data
vo qe
(Clock) -p p
b’ b
D Q D Q
bit center
Data
c b a bit edge
• The Bang-Bang phase detector is unique among the detectors presented here in that its baseband
behavior is never linear.
• Instead, the detector acts as a relay over the region from −π to π (on the right).
• Nonlinearity is a bad thing, but this is highly manufacturable for extremely high speed circuits.
Phase Loop
Detector Filter
Reference
Signal
Voltage
Controlled
Signal Oscillator
Phase-Locked
to Reference
• People make careers out of doing VCO design and analysis of VCO noise.
• Ring Oscillator: common in monolithic topologies uses an odd number of inverters connected in a
feedback loop.
• Resonant Oscillator: puts a resonant circuit in the positive feedback path of a voltage to current
amplifier. The amplifier is voltage to current amplifier with close to unity gain. The resonant circuit
in the positive feedback path has poles close to the jω axis.
L
vc C1 C2
C3
• The frequency is controlled by altering the capacitance of the resonator, typically by using a varactor
diode as a capacitor.
• Other forms of VCOs, such as crystal oscillators and YIG oscillators essentially run on the same
principle, but modify the resonant circuit.
S G(s)
R
+ R L
C1 C2
L C
F(s)
• On the left, a block diagram of an oscillator implemented as a positive feedback loop between a
voltage to current amplifier through a resonant circuit.
• Resonant filter:
2ζω0 s
F (s) = ,
s2 + 2ζω0 s + ω02
• In the case of the π network, there is a complex pair of poles and one pole on the negative real axis.
The dominant effect, Q amplification, takes place on the complex pair.
Loop Filter
Phase Loop
Detector Filter
Reference
Signal
Voltage
Controlled
Signal Oscillator
Phase-Locked
to Reference
• The loop filter is the one place where the designer really gets to shape the loop.
R2 C
R2 C2
R1
R1
va -
vi - vb + vo
R1
+ vo
R2 C3
C2
nout (z) = (1 + z −1 + z −2 + z −3 + . . .)θd (z), • Large excess in up or down pulses saturates the
counter in one direction or another =⇒ lowers
=⇒ digital integrator with a zero at z = 0. the effective loop gain but does not destabilize
loop.
• Equivalent transfer function:
nout (z) 1 z
= = .
θd (z) 1−z −1 z−1
qo
S s
PLL.
qvco VCO
• Assuming θi and θvco are independent, the PSD • Every component of PLL is a potential noise
of the output phase is given by: source:
Goo (jω) = T (jω)2 Gii (jω) + S(jω)2 Gvv (jω). =⇒ There are noise inputs all around the loop.
=⇒ People make careers out of modeling the in-
put noises.
Talk Outline
• Brief History
• PLL Basics
• Digital PLLs
• Loop Components
– Phase Detectors
– Voltage Controlled Oscillators
– Loop Filters
• Noise
• Applications
The reason that PLLs are so ubiquitous is that they are so useful in so many applications.
• Carrier Recovery
• Costas Loop
• Clock/Data Recovery
• Frequency Synthesis
• Modulation/Demodulation
Carrier Recovery
• General block diagram of frequency
recovery from a modulated signal.
Nonlinear Phase Loop
Input
Device Detector Filter • When carrier has strong component
Signal in signal spectrum, PLL can lock.
Clock or • When carrier is missing from signal
Carrier Out Voltage
Controlled spectrum, PLL must be preceded by
Oscillator
a nonlinear element.
Costas Loop
Quadrature High
Frequency
LP Filter
Loop
VCO Filter
Reference
BPSK Signal -P/2
Clock
High Data
Frequency
In-Phase LP Filter
• A Costas loop can both recover the carrier and demodulate the data from such a signal.
• Intuitively, if there were no modulation, the upper arm is simply a PLL locks to a carrier.
• The effect of the lower arm of the loop is to lock to the modulation and cancel it out of the upper
arm of the loop.
• Does the same thing as squaring loop, but down converts signal to baseband & does filtering there.
Clock/Data Recovery
• RZ data (dark dashed) and NRZ data (solid
light)
Data Data
In In
Delay
T/2
d/dt
XOR
( )2
Delay T/2
Bandpass
2 Bandpass Filter
d/dt () Filter
Frequency Synthesis
• Want to lock a clock with an input signal of a
different frequency.
y High y
• Synthesize a clock frequency from a lower fre-
Bandpass Phase f
Filter Detector Frequency quency input.
LP Filter
Reference
Signal fr • Harmonic locking loop generates a clock at N
fr
fr times input frequency.
Loop
N VCO Filter
• Non-integer N is possible.
Phase-Locked
to Reference • Example from storage industry: DVD+RW for-
Nfr
mat uses a high frequency wobble embedded in
the groove walls to synthesize a write clock fre-
quency.
T qd qdf
High
Bandpass Phase
Frequency
Filter Detector
LP Filter
Reference Harmonic
fr
Clock Corrector
Signal mT
fr
fr
Voltage
Loop
N Controlled
Oscillator
Filter S
Clock
Phase-Locked
to Reference
• It is possible to remove harmonic phase modu-
N fr
lation with a multi-rate harmonic corrector.
Harmonic Compensation
• Harmonic compensation when frequency is known is fairly well known.
• When frequency is not known, PLL techniques can be used. See Wu & Bodson in
literature and later this session and Bodson & students in general.
Motor Control
Power
• Motor control using PLL techniques replaces lin-
Phase Amplifier ear control with a speed setpoint as reference
Loop
Frequency
Filter
Detector input and tachometer to measure rotational ve-
Setpoint locity.
(Shaft Speed) Analogous
to VCO
Optical
• Tachometer has been replaced by an “optical
Coupler tachometer” consisting of a segmented wheel
Motor
(GaAs)
attached to the rotor shaft and an optical cou-
Measured Shaft Speed
pler.
Number of segments = KZ
• With all the available topologies and technologies, it should be clear that the choice of what
to use is very application dependent.
• Digital techniques have the advantages that they are relatively immune to circuit drift and easy
to integrate into small chip packages. However, they are not suitable for every application.
• For high noise input signals, the traditional mixer is still preferred as it makes the best use of
information in the signal amplitude to reject noise. Classical digital PLLs are extremely useful
in high speed digital communications systems.
• Some of the tradeoffs can be seen in high speed digital communications systems. As the
standard for these systems reaches beyond 10 gigabits per second (Gbps), to 40 and 100 Gbps,
the circuit technologies are hard pressed to produce the short pulses of phase detectors such
as the linear Hogge detector. Thus, the nonlinear Alexander detector is often preferred. This
is because the latter detector’s components are easy to integrate and the detector itself has
pulses that are no shorter than half a bit interval.
• At the extreme end, optical PLLs are being tested for clock/data recovery of 160 Gbps WDM
optical communications.
• At the other end of the spectrum, as processing power goes up, it becomes more practical
to sample the data and perform all the relevant operations in software Not only is this the
ultimate in flexibility, but it can also be the lowest in cost.
• Nonlinear analysis. While many loop properties can be analyzed with linear models,
this is not true for Bang-Bang loops, locking transients, and high frequency effects.
• Analyzing effects of noise injection from various components including phase detector
and VCO.
• Design tools to optimize designs of PLLs for both phase performance and signal
performance.
• Some of these tools might also be useful in designing new phase detectors that are
optimized for a particular type of loop.
• Design methods for high order PLLs. Loop shaping, etc. Often times PLL designers
get forced by parasitic capacitances to deal with higher order loops. They have no
rigorous analysis for this.
• VCO gain varies across units and over the frequency tuning range of the oscillator.
We know how to handle this.
• Efficient simulation methods to allow for complete simulation of the system despite
the two time scales would be very useful and could further be applied to software
PLLs.
Useful References
• Andrew Viterbi’s classic book (sadly out of print), Principles of Coherent Communication, has a wonderful
first introduction to the analysis of a PLL. A. J. Viterbi, Principles of Coherent Communication. McGraw-
Hill Series in Systems Science, New York, NY: McGraw-Hill, 1966.
• Floyd Gardner’s famous little book, Phaselock Techniques, has been the classic first book for PLLs. It
provides basic analysis and applications for PLLs. For many years, the first edition was the main book on
the subject.
F. M. Gardner, Phaselock Techniques. New York, NY: John Wiley & Sons, second ed., 1979. ISBN
0-471-04294-3.
• Another of the classic PLL text is Alain Blanchard’s book, Phase-Locked Loops .
A. Blanchard, Phase-Locked Loops. New York, NY: John Wiley & Sons, 1976.
• Dan Wolaver’s book, Phase-Locked Loop Circuit Design provides excellent coverage of the different circuits
used in PLLs, including many different phase detector models. Wolaver tends to focus on classical analog
and classical digital PLLs.
D. H. Wolaver, Phase-Locked Loop Circuit Design. Advanced Reference Series & Biophysics and Bio-
engineering Series, Englewood Cliffs, New Jersey 07632: Prentice Hall, 1991.
• Roland Best’s book, Phase-Locked Loops: Design, Simulation, and Applications provides a more classical
analysis of PLLs. It does an excellent job of describing the various classes of PLLs, including classical
analog, classical digital, all digital, and software PLLs. Furthermore, a software disk is included. However,
the treatment of actual circuits is far more cursory than Wolaver’s book.
R. E. Best, Phase-Locked Loops: Design, Simulation, and Applications. New York: McGraw-Hill, third ed.,
1997.
• The IEEE Press has published two books containing papers on PLLs, both co-edited by William C. Lindsey.
Phase-Locked Loops and Their Application, co-edited with Marvin K. Simon, contains many of the seminal
papers on PLLs.
W. C. Lindsey and M. K. Simon, eds., Phase-Locked Loops and Their Application. IEEE PRESS Selected
Reprint Series, New York, NY: IEEE Press, 1978.
Phase-Locked Loops, co-edited with Chak M. Chie, has a larger emphasis on digital loops.
W. C. Lindsey and C. M. Chie, eds., Phase-Locked Loops. IEEE PRESS Selected Reprint Series, New
York, NY: IEEE Press, 1986.
A third book from the IEEE, edited by Behzad Razavi on Monolithic Phase-Locked Loops and Clock
Recovery Circuits: Theory and Design goes into much more depth on issues of integration of PLLs and
CDR circuits into silicon. The collection starts with an excellent tutorial.
B. Razavi, ed., Monolithic Phase-Locked Loops and Clock Recovery Circuits: Theory and Design. IEEE
PRESS Selected Reprint Series, New York, NY: IEEE Press, 1996.
• Hsieh and Hung have a nice tutorial on PLLs that not only includes the basic theory, but also some
applications, particularly to motor control.
G.-C. Hsieh and J. C. Hung, “Phase-Locked Loop techniques — A survey,” IEEE Transactions on Industrial
Electronics, vol. 43, pp. 609–615, December 1996.
• Paul Brennan’s book, Phase-Locked Loops: Principles and Practice is a brief book with a practical bent.
It gives an excellent explanation of phase-frequency detectors and charge pumps.
P. V. Brennan, Phase-Locked Loops: Principles and Practice. New York: McGraw Hill, 1996.
• Donald Stephens has a book with an interesting history section in the front as well as a method of
approaching analysis of digital PLLs that is closer to a typical sampled data approach than most books.
This second edition of the book includes information on optical PLLs.
Phase-Locked Loops for Wireless Communications: Digital, Analog and Optical Implementation. Under-
standing Science and Technology, Boston/Dordrecht/London: Kluwer Academic Press, second ed., 2002.
• Someshwar Gupta’s survey paper provides a history of analog PLLs to that point.
S. C. Gupta, “Phase-locked loops,” Proceedings of the IEEE, vol. 63, pp. 291–306, February 1975.
• William C. Lindsey and Chak M. Chie have a survey paper that outlines the history of digital PLLs up
until 1981.
W. C. Lindsey and C. M. Chie, “A survey of digital phase-locked loops,” Proceedings of the IEEE, vol. 69,
pp. 410–431, April 1981.
Acknowledgments
The understanding of PLL circuit components presented here has been greatly enhanced
by discussions with
• Dr. Salam Marougi of Agilent Technologies’ Electronic Products and Solution Group.
This session would not have happened without the rapid generation of papers by the
other session members:
• Chris Adkins and Mike Marra (both of Lexmark) and Dr. Bruce Walcott from the
University of Kentucky
Dan Witmer of Openwave who walked into my office at Ford Aerospace 14 years ago
and asked, “How would you analyze a nonlinear phase-locked loop?”