28
INF4420 Phase locked loops Spring 2012 Jørgen Andreas Michaelsen ([email protected])

INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

INF4420Phase locked loops

Spring 2012 Jørgen Andreas Michaelsen ([email protected])

Page 2: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Outline

"Linear" PLLs

Linear analysis (phase domain)

Charge pump PLLs

Delay locked loops (DLLs)

Applications

Page 3: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Introduction

Phase locked loops (PLLs) are versatile building blocks found in a variety of applications

● Frequency multiplication● Frequency synthesis● Clock deskew (PLL or DLL)● Clock recovery (from serial data)● Demodulation● ...

Page 4: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

IntroductionFeedback system for aligning (a fraction of) the phase of the VCO clock with an (external) reference clock. The VCO control voltage is adjusted to achieve this.

Page 5: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

IntroductionWe will analyze the PLL in terms of phase. The objective of the feedback loop, the PLL, is to keep ϕref - ϕout small and constant. In this state, the PLL is said to be in lock.

This implies ωref = ωout which is what we care about in many applications.

Page 6: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

"Linear" PLL

We will first analyze a PLL with a simple phase detector (PD) first.

Phase detector

Loop filter

Page 7: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Phase detectorPhase is not directly observable. We have to infer the phase difference from the output of the oscillators.

An XOR gate can be used as a phase detector.

Page 8: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Phase detector When ϕref and ϕout is 90° out of phase, the XOR output will have 50/50 duty cycle, and the average output will therefore be Vdd / 2. If ϕref and ϕout is at 0° or 180° phase difference, the average output will be 0 or Vdd respectively.

Page 9: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Phase detector

Page 10: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

PLL with XOR PD

With the XOR PD, to generate the required Vctl, ϕref and ϕout must be out of phase.

Page 11: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Loop dynamicsLinear analysis of the PLL in terms of phase, H(s) = ϕout(s) / ϕin(s).

Page 12: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Second order TF

Natural frequency

Damping ratio

Generic second order transfer function applied to the PLL:

Page 13: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Loop dynamicsBy choosing PLL parameters, KVCO, KPD, and

τLF, we can design ωn and ζ, to obtain the desired loop dynamics.

Magnitude response Step response

Page 14: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Large signal behaviourAn important point for PLLs is the large signal behaviour when the system is not in lock. When the PLL starts up, ϕref and ϕout may be very different. We must make sure that the system is able to achieve lock. Another concern is whether the PLL will lock to a harmonic instead.

The PLL with XOR based PD is not robust in this case. In most applications, a so called charge pump (CP) PLL is preferred.

Page 15: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Charge pump PLLTracks whether the reference edge or the VCO clock edge comes first (for every period), and adjusts the VCO control voltage accordingly to keep the PLL in lock. When the PLL is in lock, out and ref will be in phase.

Phase frequency detector Loop filter

Charge pump

Page 16: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Phase Frequency DetectorIn the Charge Pump (CP) PLL, a more elaborate PD with state is used, a Phase Frequency Detector (PFD).

Page 17: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

PDF/CP and loop filterThe PFD generates control signals for the CP to ramp up or down the VCO control voltage.

Page 18: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

PFD/CP gainWhen the PLL is in lock, a small phase difference between the VCO clock (out) and the reference clock (ref) turns on the CP for a fraction of the clock period injecting a charge proportional to the phase error to the loop filter every period. Looking at several periods, an average current flows. KPFD is the combined gain of the PFD and the CP:

Page 19: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

CP loop filterThe loop filter is driven by Iavg from the PFD/CP

In many cases, a second capacitor, C2, is added in parallel to reduce glitches. C2 is usually chosen to be approximately 10 % of C1 or less.

Page 20: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Transfer functionThe open loop transfer function from ϕref to ϕout

The closed loop CP PLL transfer function

Page 21: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Transfer function

R gives rise to a zero at -1/(RC). It is required as system would be unstable with R = 0.

Page 22: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Non-ideal effects in PLLs

● PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times

● Up/down current mismatch due to timing or current source impedance

● Jitter from power supply, coupling, electronic noise, reference phase noise

● ...

Page 23: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Delay locked loop (DLL)A DLL is similar to a PLL, but instead the delay through a voltage controlled delay line (VCDL) is locked.

Page 24: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Delay locked loop (DLL)Noise (jitter) does not accumulate in the delay line like it would in a VCO.

As there is no VCO, the order of the loop is one less than the PLL. Stability and settling issues are less prominent.

The DLL is not the same as a PLL and only relevant for some PLL applications. DLLs are usually preferred where applicable.

Page 25: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Frequency multiplicationFrequency multiplication is a common application for PLLs. High speed clocks can be generated from a stable and precise (but slow) reference clock. N can be programmable.

Page 26: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Frequency demodulationThe VCO performs frequency modulation (FM). The PLL can be used to find the inverse. The VCO control voltage becomes the output.

Page 27: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Other PLL issues

We have used a continuous time analysis for the PLL. However, the PFD samples the phase. We approximated the PFD/CP output as an average current.

When the deglitching capacitor, C2, is used, the transfer function becomes third order. Using the second order transfer function may not be appropriate.

Page 28: INF4420 - Universitetet i oslo · Non-ideal effects in PLLs PFD/CP will exhibit zero gain when the phase difference is small because of finite rise and fall times Up/down current

Resources

Gardner, Phaselock Techniques, Wiley, 2005

Fischette, Dennis Fischette's 1-Stop PLL Center

Johns and Martin, Analog Integrated Circuit Design, Wiley, 1997