Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Loops with
Applications
ECE 5675/4675 Lecture Notes
Fall 2004
F(s)
Kv/s
© 2002–2004
Mark A. Wickert
.
Chapter 1
Course Introduction/Overview
Contents
1-1
CHAPTER 1. COURSE INTRODUCTION/OVERVIEW
• PLL fundamentals
– Loop components
– Loop response
– Loop stability
– Transient response
– Modulation response
• Acquisition
– Unaided
– Aided
• Analog PLL lab experiment
• Performance in noise
– Input noise
– Phase noise
– Nonlinear behavior and cycle slipping
• Digital PLLs
• Communication applications
Undergraduate Linear
Linear En
EnProb
Prob Intro
Intrototo
Electrical Systems
Systems &&Stats.
Stats. DSP
DSP
Engineering
...
Curriculum
Optional MATLAB Student Version 7.x, Simulink 5.x, and Symbolic Math Toolbox (no
Software: matrix size limits). An interactive numerical analysis, data analysis, and graph-
ics package for Windows/Linux/Mac OSX $99.95. The signal processing and
control toolboxes will be helpful at $29.95 each. Order both from
www.mathworks.com/student. Note: The ECE PC Lab has the full ver-
sion of MATLAB and Simulink for windows (ver. 7.0) with many toolboxes.
Other tools of interest include VisSim/Comm (www.vissim.com/)
Grading: 1.) Graded homework assignments totaling 40%.
2.) Mid-term Exam worth 25%.
3.) Analog PLL Laboratory 10%.
4.) Final Project/Exam worth 25%.
Session
Topics Text Chapters
(wks)
1. Introduction/Overview 1, 10 1.0
2. Phase-Locked Loop Fundamentals (including basic synthesizers) 2, 3, 4, 5, 6, 7 3.0
3. PLL Tracking Performance in Noise (including phase noise) 11, 12, 13, 14, 15, 2.0
16, 17, 18, 19
4. Unaided and Aided Acquisition 8, 9 2.0
5. Analog PLL Lab Experiment Handout 2.0
6. Digital signal processing Based PLLs Notes only 2.0
7. Real-time DSP PLL Experiment (if time permits or just simulation) Handout 1.0
8. Specific synchronization techniques in Comm Systems (DSP based?) Notes, 10 0.5
Requirements: A background in basic communication theory, probability and random variables, and basic digital
signal processing, i.e. sampling theory would be desired. Please contact Dr. Wickert if you are considering this
course, but are in doubt as to whether you have adequate background
1.8 References
Frequency Synthesizers
1. William F. Egan, Frequency Synthesis by Phase Lock, second edition, Wiley,
New York, 2000.
2. Venceslav F. Kroupa, Frequency Synthesis: Theory, Design, and Applica-
tions, Wiley, New York, 1973.
3. Vadim Manassewitsch, Frequency Synthesizers: Theory and Design, 3rd ed.,
Wiley, New York, 1987.
4. W. P. Robbins, Phase Noise in Signal Sources (Theory and Applications),
Peter Peregrinus Ltd., London, UK., 1982.
5. Ronald C. Stirling, Microwave Frequency Synthesizers, Prentice-Hall, Engle-
wood Cliffs, New Jersey, 1987.
Synchronization
1. Umberto Mengali and Aldo N. D’Andrea, Synchronization Techniques for
Digital Receivers, Plenum Press, New York, 1997.
2. Heinrich Meyr, Marc Moeneclaey, and Stefan Fechtel, Digital Communica-
tion Receivers: Synchronization, Channel Estimation, and Signal Processing,
Prentice Hall, New Jersey, 1998. This is volume II of of Meyr and Ascheid.
Reports
1. L. Bogusch, “Digital Communications in Fading Channels: Tracking and
Synchronization,” AFWL-TR-90-15, Weapons Laboratory, Kirkland AFB,
NM, 1990.
Journals
1. IEEE Transactions on Communications.
2. IEEE Journal on Select Areas in Communications.
1.9.2 LPLL
The LPLL (Best) or analog PLL is the classical form of PLL. All
components in the LPLL operate in the continuous-time domain. A
LPLL block diagram is shown below:
1 Roland E. Best, Phase Locked-Loops: Theory, Design, and Applications, fourth edition, McGraw Hill, 1999
1.9.3 DPLL
The digital PLL is really just an analog PLL with a digital phase
detector.
• The DPLL is really a hybrid system
• The DPLL is very popular in synthesizer applications
• In the above figure the optional digital divider, and variations on
it, are used in frequency synthesis applications
• Popular types of digital phase detectors include:
– Exclusive or gate (EXOR)
– Edge-triggered JK-flipflop
– Phase frequency detector (PFD)
2A cos [ Nω 0 t + Nθˆ ( t ) ]
2A sin [ ω 0 t + θ ( t ) ] Digital
Phase F( s) VCO
Detector
Optional
Freq. Divide
2A cos [ ω 0 t + θ̂ ( t ) ] by N
1.9.4 ADPLL
K Modulus Control
K clock Carry
Mf0
K counter Borrow
Input
XOR
DEC INC
J Q ID clock
Incr/Decr
Unused 2Nf0
Counter
Phase
Detector
K
74HC/HCT297
IDout
CP
÷ N counter Output
Nominally at f0
N Control
1.9.5 SPLL
Discrete-
Phase
ADC Time
Detector
Loop Filter
fs
Digitally
Controlled
2A cos ( ω 0 t + θ̂ [ t ] ) Oscillator
–j ( θ [ n ] – θ̂ [ n ] )
K 1 Ae K 1 A sin ( θ [ n ] – θ̂ [ n ] )
j ( ω0 n + θ [ n ] )
Ae
Im { }
Complex
signal path – j ( ω 0 n + θ̂ [ n ] )
K1 e
Timing
counter-rotate counter-rotate Recovery
to remove to remove
freq. error phase error x(t) x[k] ĉ k
r(t) r′ ( t ) Matched Symbol
Filter Detect
– j2πv̂t – jθˆ Sample at
e e kT + τ
Freq. Phase
Recovery Recovery
Output Divide
Carrier by Two VCO
Reference
In-phase
Output
LPF at
Bit Rate
Input
Signal
Power Loop
Splitter VCO Filter
90°
LPF at
Bit Rate
Quadrature
Output
Output Divide
Carrier by M VCO
Reference
x[n] Loop
M Im{ } Filter
( )
F(z)
– j ( ω 0 nT + θ̂ [ n ] )
e
NCO
Hard BIt
Phase Detector Decisions
y[n] Aˆ n
x[n]
Measure Angle
Loop
NCO Filter
– j ( ω 0 nT + θ̂ [ n ] ) F(z)
e
Symbol/Bit Synchronization
x(t) Loop
LPF Filter
F(s)
Delay
VCO
Delay and Multiply Nonlinearity
Clock Output
I&D
Sample
∫T ( ) dt & Hold Abs( )
Early Clock +
x(t ) Loop
VCO Filter
Late Clock F(s)
-
I&D
Sample
∫T ( ) dt & Hold Abs( )
x ( mT s ) y ( mT s ) yI ( tn ) To Data
Matched
Filter Interpolation Detector
Non-synchronous
sampled signal
Timing
Estim.
1
T s = sample spacing = ---
fs Loop
< T = symbol period Control Filter
F(z)
Delay-Lock
Discriminator
Input s(t)
Early Code +
Loop
Splitter Filter
F(s)
-
Late Code
Spreading Spreading
Code Gen. VCO
Code Clock
‘Prompt Code’
Delay-lock Loop
Isolator
From DACs
RF Mixer
BPF 90°
Power Driver
Ampl. VGA
Duplexer
UHF VHF
Frequency
PLL PLL
Synthesizers
LO LO
LNA LPF
Image
To ADCs
Reject BPF
90°
Filter RF Mixer
VGA
LPF
IF IQ Demodulator
Direct Synthesis
• Use mixing (multiplication) to build up the desired frequency
and a division of a single reference frequency
ECE 5675 Phase-Lock Loops with Applications 1-25
CHAPTER 1. COURSE INTRODUCTION/OVERVIEW
f out
-------- ÷ N2
N2
N2
f out = f ref × ------
N 1
• With indirect synthesis all by itself, large divide ratios are re-
quired to obtain fine resolution
• Being able to set the divide ratio to a fractional, non-integer
value would solve this problem
• The basis of the fractional-N method is to alter the divide ratio
N2 between two values
Direct Digital Synthesis (DDS)
• DDS is a DSP based method of using an N-bit accumulator to
generate a phase ramp corresponding to one clock cycle
1-26 ECE 5675 Phase-Lock Loops with Applications
1.10. APPLICATIONS OVERVIEW
Accumulate
Shift
Invert Out
Input Clock at fref
Hybrid Methods
• To meet various design goals combinations of the above method
may be employed
– Several PLL synthesizers can be combined to create a multi-
loop synthesizer
– DDS and a PLL can be combined to achieve fine step sizes,
yet the wide tuning range of a PLL
APhase_Det AD_Freq_LPF
AFM_Source
in1 out in out
in2
0 15 V3
XLoop_Filt
V1 VCO_Input
10k
15 R2
V2
C1 R1
• The input signal source and VCO are both created using a volt-
age controlled sinusoid generator
+500.000m
0.0
-500.000m
-1.000
• The loop breaks lock and acquires in both frequency and phase-
lock via the nonlinear pull-in process
• In about 70 ms the loop has settled (t = 110 ms)
• In addition to transient or time domain modeling, Spice can be
used in the AC analysis mode to characterize open and closed
loop magnitude and phase response of linearized loops
• The AC analysis mode also provides for detailed noise analysis
and the incorporation of phase noise models of the input source
oscillator and VCO
• Ultimately closed-loop phase noise performance can be obtained
using actual circuit elements mixed with behavioral level models
1-30 ECE 5675 Phase-Lock Loops with Applications
1.11. SIMULATION EXAMPLES
(V)
+1.200
100 Hz Frequency
+1.000 Step at 40 ms
+800.000m
Input and VCO
+600.000m
both at 5000 Hz,
but locking at 90o
+400.000m
Loop has ~settled
+200.000m
0.0
-200.000m
Integrate -->
Phase Ramp
A1_INTEGRATE A1
R3 0.8836u 8.488k
in out 1
+ out 1K
2 Node 8 C1 R1
Freq. Step
15
Input V2
B1 A_LPF 10k VCO_Input
in out
Nonlinear source: R2
0
XLoop_Filt
V1 v = sin(v(8)) 15 V3
A2_INTEGRATE
out in
VCO = Integrator
Gain = 2*pi*Kv
+150.000
Transient is
slightly different,
but very sensitive
to parameters
+100.000
100 Hz
Step ~settled
+50.000
0.0
• Simulink alone does not provide direct support for PLL’s and
synchronization
– If you add to Simulink the Signal Processing toolbox, the
DSP blockset, the Communication toolbox, and finally the
Communication blockset, you have some basic PLL building
blocks, e.g. a VCO
– With the basic Simulink library that comes with the stu-
dent version of Simulink PLL simulation requires a bit more
work, but is possible
• In the example given here Simulink is used to model a band-
pass analog PLL with 5 kHz center frequency and 100 Hz loop
bandwidth, as in Example 1.1
lpf_output
To Workspace1
VCO 1000 7.5e-3s+1
vco_input
Step s+1000 8.836e-3s
FM Source with Product To Workspace
Transfer Fcn Transfer Fcn1
f0 = 5000 Hz
VCO
Voltage-Controlled
Oscillator
1.2
1
Step applied at 40 ms
0.8
~settled
Voltage
0.6
0.4
0.2
−0.2
0 20 40 60 80 100 120
Time in ms
0.4 f c = 5000 Hz
0.3
0.2
0.1
Voltage
−0.1
−0.2
Waveform is noisy due
−0.3 to double frequency
term (10kHz) still present
−0.4
−0.5
0 20 40 60 80 100 120
Time in ms
• Standard loop filters can be defined using loop filter blocks which
directly calculate the required time constants, e.g., τ1 and τ2
from system level specifications, e.g., loop bandwidth and damp-
ing factor
1.1
.9
Step applied at 40 ms
.7
~settled
.5
.3
.1
-.1
0 .01 .02 .03 .04 .05 .06 .07 .08 .09 .1 .11 .12
Time (sec)
.75
.50
Z
VCO
ph Z1Cplx Cplx t o re .25
Z Z
Voltage
Z2Mult Re/Im im
0
-.25
-.50
Cplx
Z Z Z Loop Filt er
Conj VCO -.75
ph 2nd Order P LL
25 Hz -1.00
0 50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800
Bandwidth T ime (msec)
.5
.4
.3
.2
.1
-.1
0 50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800
T ime (msec)
Averaged Periodogram
Spectrum Analyzer to Observe
D&M Output
2nd-Order PLL to
Track the Clock
*
Frequency
Loop Filter
2nd Order PLL
sig
+
VCO
Loop ph
+
Frequency
5th Order 1 Hz
Disturbance Butterworth Lowpass
Filter D&M Self Noise
-10
-20
-30
-40
-400 -300 -200 -100 0 100 200 300 400
Frequency in Hz
Delay and Multiply Bit Synch
VCO Input
.125
.100
1 Hz Step Applied
.075
.050
.025
Initial
Acquisition
0
-.025
-.050
0 5 10 15 20 25 30
Time (sec)
Impulse
t = 0.
Trg
Trg 1024 pt . (x14)
Mag
P ower Spect ral
Ph
Z Densit y(dBm/Hz)
freq
Z1Cplx Cplx t o re
Z Z
Z2Mult Re/Im im
Cplx
Z Z Z Loop Filt er
Conj VCO
ph 2nd Order P LL
5t h Order 1 Hz P lot
But t erwort h Lowpass .06
.05
.04
.03
.02
.01
-.01
-.02
0 2.5 5 7.5 10 12.5 15 17.5 20 22.5 25
T ime (sec)
Eye P lot
20
15
10
-5
-10
-15
-20
0 .02 .04 .06 .08 .1 .12 .14 .16 .18 .2
T im e (sec)
P SD in dBm/Hz
25
20
15
10
5
0
-5
-10
-15
-20
-40 -35 -30 -25 -20 -15 -10 -5 0 5 10 15 20 25 30 35 40