Professional Documents
Culture Documents
1 ABSTRACT
This tutorials discusses the key areas of Phase Locked Loop (PLL) design, covering the main components of the loop ie the phase detector, divider, VCO & loop filter.
G T ( s) 1 + G T ( s ).H(s)
3 LOOP COMPONENTS
3.1 PHASE DETECTOR Phase detectors can be either analogue eg mixer or digital eg D-type flip-flop. When a mixer is used the output consists of the sum and difference frequencies. The sum of the frequencies are filtered out by the loop filter and the remaining difference frequency (otherwise known as the beatnote) when both input frequencies are the same is the phase difference. This beatnote or phase error signal is filtered in the loop filter to produce a DC control voltage for the VCO. Most PLL circuits now use digital phase detectors as shown in Figure 2.
Vhigh
Current Source
D D type Flip-Flop Q1
F1
Clk
Vhigh
Clear
NAND
Pi(s)
Pe(s)
D type Flip-Flop Q2 C
Current Sink
F2
Clk
Prescalar/ Divider N
H(s)
H(s) represents the feedback transfer function which in this case is formed by the divider with division ratio = H(s) = N. The forward transfer function GT(s) is the Loop filter transfer function G(s) * K0 * Kd.
Refering to Figure 3. Signal F1 arrives at the D-type flip-flop 1 first causing the output Q1 to go high (This will stay high until F1 is clocked high again). F2 arrives at D-type flip-flop 2 causing Q2 to go high, at this point there will be two ones on the NAND gate causing the output (the clear to the flip-flops) to go low and this will cause both flip-flops to reset with Q1 & Q2 going low again. Now Q2 only went high when F2 was
Sheet 2 of 8
high but was immediately reset due to the NAND hence we will see a pulse out of Q2. The spacing between these pulses or the duty cycle will give the time delay between F1 & F2. The clear is the inversion of Q2. If we now add a capacitor to the output the pulsed voltage will be smoothed to give an average voltage which, is highest when the frequencies F1 & F2 are 180 degrees apart.
F1 Input
F1 Input
F2 Input
Q1
Q2
F2 Input
Clear
Q1
Q2
The phase response of the phase detector is shown in Figure 6, where the slope of the graph is the phase detector sensitivity in V/rad.
Clear
Vhigh
In the case where F2 leads F1 the Q1 & Q2 outputs are reversed as shown in Figure 4.
F1 Input
Vhigh/2
F2 Input
Q1
Q2
The outputs Q1 & Q2 turn on the current sources, which either sink or source current. This will cause a voltage to ramp up or down (as the capacitor charges up and down, depending on the phase difference between F1 & F2) This circuit is known as the charge pump and is shown in Figure 8.
Clear
The third case is where the two inputs signals are in phase resulting in a low average voltage ~ 0V from Q1/Q2 as shown in Figure 5.
Sheet 3 of 8
3.2 SQUARER The signals from the VCO and reference may well be analogue (ie a sine wave) and if an analogue mixer is being used as a phase detector, then these signals will mixed to produce a DC control voltage on the IF port of the mixer. However if we are going to use a digital phase detector (as described in section 3.1) we need to ensure that the reference and RF signals are square waves. If the loop consists of a prescaler on the RF path then the output of the prescaler to the phase detector will be a square wave. But if the VCO RF and/or analogue reference signal is feed to the phase detector directly then a squarer circuit is required. A simple squarer circuit is shown in Figure 7.
Vcc
Vhigh
D D type Flip-Flop Q1
R Clear NAND R
F1
Clk
Vhigh
Rfilter
D type Flip-Flop
Q2 Cfilter
F2
Clk
Rc Rfeedback
Analogue Input
Squarewave Output
Q1
Q1
Rb Re Logic Inverter
Kd =
Vcc (V/rad) 2
To loop filter
0V
0V
Figure 7 Squarer circuit. Ths common-emitter circuit uses series feedback to make the circuit broadband. The output logic inverter futher cleans up the squared signal from the bipolar amplifier.
Q2
3.3 CHARGE PUMP The charge pump consists of a push-pull current source, current sink arrangement that connects to a shunt capacitor (part of the loop filter) that effectively smooths the clock pulses to give a constant DC level dependant on the duty cycle of the phase detector pulsed output. This arrangement is used to allow the designer to set the value of the phase detector gain Kd. If using an op-amp loop filter the outputs of the phase detector can be connected together using two resistors as shown in Figure 8. If using a charge pump (and a VCO whose control voltage is the within the range offered by the charge pump) then a simple loop filter can be used, consists of the RC circuit, as shown in Figure 8.
Figure 9 Typical Charge Pump Arrangement, with equations for calculating Kd.
3.4 SIMPLE LOOP FILTER The simplest loop filter consists of a passive RC filter as shown in Figure 10. Using such a circuit is fine for VCOs that use the same voltage supplies as the charge pump. If the control voltage of the VCO exceeds that generated by the charge pump then an active op-amp based loop filter is required.
Sheet 4 of 8
N=
Loop bandwidth
1 2 * fn + Hz 4 2
These equations allow us to calculate the loop filter requirements, knowing the required lock time ts, Damping Factor , Division ratio N, Kvco (MHz/V) and Kd (charge pump current mA/rad). 3.5 ACTIVE LOOP FILTER In situations where the control range of the VCO is covered by the output of the PLL a passive loop filter is ideal. However, in most systems the VCO may have a larger control range and in these situation active loopfilters using an op-amp are used. In particular a popular circuit is the differential type II op-amp loop filter as shown Figure 11. This effectively uses the Q1 & Q2 outputs of the phase detector directly (bypassing the charge pump) and has the added advantage of better noise reduction than a single-input op-amp loop filter.
R2
R2
To VCO
R1
C1
C3
C2
Calculation of C2
C2 = Icp * Kvco N * (2 * fn) 2
C2
R1/2 R1/2
0V
Vin1 C1
V1
Calculation of R1
R1/2 R1/2
Vo
N R1 = 2 * * Icp * Kvco * C2
Vin2
Calculation of C1
C1
V2 R2
C1 =
C2 10
C2
The differential loop filter can be simplified for analysis as shown in Figure 12. The loop filter components can be found from the following formulae:
Sheet 5 of 8
R2
C2
R1/2 R1/2
Vin C1 V1
Vo
R3 sC2.R2 + R2 sC2.R2 = sC2.R2 sC2.R2 + sC2.R2.sC1.R1 + R1 R2 = sC2.R3 + 1 sC2.R2 + s 2 C2.R2.C1.R1 + sC2 R1 sC2.R3 + 1 R2 s C2.R2.C1.R1 + sC2 + 1 R1
2
Vin - V1 V1 V1 = 0 1 R1 R2 sC1
Vo = Vin
Let C1 = C2 = Cx
x by R1
The open-loop gain can now be found with reference to the block diagram shown in Figure 13.
Ko.Kd V/dB ATTENUATION 1/N
Vin = -
Sheet 6 of 8
Closed - Loop Gain Kd.Ko .G(s) 1 N H(s) = = Kd.Ko 1 1+ .G(s) 1+ Kd.Ko N .G(s) N H(s) = 1+ 1
For a range of damping factors we can calculate the predicted phase margin as shown in Table 1. Dampi Factor 0 0.5 0.707 1 Phase Margin (degrees)
(sT1 )2 + 2sT1
Kd.Ko .G(s)(1 + sT2 ) N
If assume a damping factor of 0.707 to give us a phase margin of 65 degrees the value of R2 is given by:
n . 2 2
Loop bandwidth = 2 . n Kv = VCO sensitivity (MHz/V); K = Phase detector sensitivity (mA/rad) 1 = R1.C2
2 = R2.C2 = n .R2.C2 2
3.5.3 Loop filter calculation of C1
Assume that Fc = 10 * Fn c = 1 2Fc R1.C1 4 C1 = 4. c R1
n =
n =
n 2 .N.C2
c =
3.5.2 Loop filter Calculation of R2 The value of R2 is determined by setting the phase margin of the loop and is related to the damping factor . The phase margin, being the difference between the argument of the loop gain and -180 at the frequency where the loop gain is unity is given by:-
2 -1 2 4 = tan -1 = tan 2 2 + 4 + 1 n
3.6 DIVIDER/PRESCALER In most designs the VCO (Voltage controlled oscillator) runs at a much higher frequency than the maximum frequency limit of the phase detector, which is limited by the speed of the logic employed. In these situations a small amount of VCO output power is coupled off to a prescaler. The prescaler is a high frequency divider but is fed by an analogue signal but outputs a divided square wave suitable for the phase detector circuits. Most prescalers consist of a differential amplifier connected to
Sheet 7 of 8
cascaded J-K flip-flop circuits and are usually built into the PLL chip.
The addition of the prescaler in the PLL will increase the noise contribution in the loop by: Noise floor of prescaler + 20*Log N Where N is the division ratio For example: Prescaler device: Agilent HMMC 3128 Division ratio: 200 Phase noise @ 10KHz offset: -143dBc/Hz Additional phase noise = 20 log 200 = 46dB Therefore, the prescaler phase noise contribution to the loop would be: -143 + 46 = -97dBc/Hz @ 10KHz 3.7 VOLTAGE CONTROLLED OSCILLATOR (VCO) [4] The VCO is the heart of the PLL and dominates the overall phase noise performance of the loop. As has been shown in other tutorials the phase noise performance of the VCO (free running) is dependant on several key design parameters including loaded Q factor, noise figure and output power of the VCO. To determine the approximate phase noise performance of the VCO these parameters can be used with Leesons equation to estimate the phase noise of the VCO. To verify hand calculations the key VCO parameters can be fed into the ADS simulation shown in Figure 14. In the ADS simulation a VCO has the following: VCO center frequency: 2GHz, Noise Figure: 5dB Loaded Q: 15 Flicker Corner frequency: 30MHz
HARMONIC BALANCE
HarmonicBalance HB1 Freq[1]=fcentre Order[1]=7 NLNoiseStart=100 Hz NLNoiseStop=40 MHz NoiseOutputPort=2 NoiseNode[1]="PNoise_OL"
Meas Eqn
Figure 14 ADS simulation used to predict phase noise performance given the resonator loaded Q, NF, Flicker corner frequency, centre frequency and output power.
PhaseNoise
m2
1E3
1E4 noisefreq, Hz
1E5
1E6
EqnPhaseNoise=10*log(0.5*VCO_phasenoise..PNoise_OL.noise**2)
Figure 15 Resulting simulation from Figure 14, showing the resulting phase noise prediction with a marker set to 10KHz frequency offset and VCO loaded Q to 15.
Sheet 8 of 8
4 SUMMARY
This tutorial described the basic operation of a Phase Locked loop (PLL). A description of each component within the loop (ie VCO, Squarer, Prescaler, Loop filter & phase detector) was given and where necessary the relevant design equations. Emphasis was given to the design of passive and mire commonly active loop filters that define the overall phase noise response of the closed loop and the switching time in multi-channel PLLs. Further tutorials with give an example of PLL switching time and PLL phase noise performance.
5 REFERENCES
[1] Microwave and Wireless Synthesiser Theory and Design Ulrich L Rohde, 1997, Wiley-Interscience, ISBN 0-471-52019-5 [2] RF and Microwave Circuit Design For Wireless communications, L E Larson, 1997, Artech House ISBN 0-89006-818-6, Chapter 6. [3] Radio Frequency Design Wes Hayward, 1994, The American Radio Relay League, ISBN 0-87259-492-0, Chapter 7. [4] Oscillator Design and Simulation, Randall W Rhea, 1995, Noble Publishing, ISBN 1-884932-30-4, p 35.