Clock and Data Recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/2nd order type 1
Contents
Generalities of a 2^{nd} order PLL of type 1[edit]
Best fit for a regenerator, but with a slow acquisition.
Good filtering of the incoming signal noise but poor filtering of the VCO noise.
Becomes underdamped if the loop gain increases.
Fundamental equations[edit]
A linear, timeinvariant model of the circuit is described here.
The case of a second order loop, fit for a regenerator CDR, is presented.
This architecture is in fact the best for regenerator applications, to recover a clock and to resend the data stream further, as the introductory example has shown.
There are two ways of looking into the model of the 2^{nd} order CDR loop:
1. to specify the CDR overall characteristics, or to measure its performances. (ω_{n2} and ).
 In these cases of overview approach, the "engineer" will use two variables that characterize the overall performances of the control loop.
 The variables are the undamped natural frequency ω_{n2} and the damping ratio .
2. to design, verify and validate the CDR, as well as engineer its individual blocks. (G and ).
 In these other cases there are again just two variables that correspond to the two basic degrees of freedom of the circuit.
 The “designer” variables are the loop gain, G, and the time constant of the loop filter, .
ω_{n2} and ζ as functions of G and τ_{f}[edit]
It is important to remember that the two sets of parameters are interchangeable. Deciding the two values for a set fixes the values also for the other set, as restated in the table below:
Setting ω_{n2} and ζ  Setting G and τ_{f} 

G = ω_{n2} / 2ζ  ω_{n2}^{2} = G/τ_{f} 
τ_{f} = 1 / 2ζω_{n2}  ζ^{2} = 1 / 4τ_{f}G 
The value of ζ (when D_{T} is at its minimum expected value) must be close to 1 (0.7 to 1.3), to ensure that the behavior of the loop is neither underdamped nor overdamped.
Saying that the second order loop has one more degree of freedom than the first order loop is therefore an overstatement.
It is more fair to say that in both cases the time (and frequency) response of the loop are primarily set by the gain G. In the case of the second order loop it is possible to have a slightly higher variability associated with the (limited) range of variation allowed for _{f}.
The main advantage of the second order loop is the sharper filtering action for input frequencies in excess of ω_{n2}.
The filtering corresponds to attenuating the jitter components beyond ω_{n2} with a slope of 40 dB/decade, while a first order loop filters with a slope of just 20 dB/decade beyond its ω_{n}.
The meaning of the loop parameters (just ω_{n} or τ in a first order system, ω_{n2} and ζ in a second order system) is slightly different in the two cases:
 ω_{n2} is essentially the same as ω_{n}: it represents the angular frequency at which the loop changes behavior and a "filterng" action begins (e.g. filtering of the input jitter) or ends (e.g filtering of the VCO noise).
 τ of a first order system is the time constant of the system unit step response. τ_{f} in a second order system can not be seen exactly as the same because the unit step response varies for different values of the other loop parameter, ζ. In general however a relation exists and the time response of a second order system is close to about 2 times τ_{f}, as shown in more detail further on in this page where unit step responses of 1^{st} and 2^{nd} order loops are contrasted, under the condition ω_{n2} = ω_{n}.
The most important functions that describe the relations amongst the variables shown in the figure, expressed for the sinusoidal jitter condition, are described in the following three subpages.
A dedicated section further down in this page gives the equations and the diagram for the time function that describes how this circuit reacts to an abrupt change of phase in the received signal.
ζ is larger than 1[edit]
The value of ζ shall be set by design larger than 1 (1.1 to 1.9).

 When ζ < 0.707, the jitter at frequencies around ω_{n2} will be amplified during the transit through the PLL as seen when studying the jitter transfer function of this loop, and more so for smaller values of ζ.
 Amplification of jitter may  if the input jitter at those frequencies is large enough to start with  accumulate when more identical regenerators are interconnected in a chain along the signal path (a not infrequent case in geographical networks).

 When ζ >> 1, the loop behaves more and more like a first order loop. The sharp cutoff at about ω_{n2} , typical of a good 2nd order loop, smooths out, and the jitter at frequencies around ω_{n2} is less effectively rejected.

 Similar indications are derived from the study of the error signal in this 21 loop:


 Large values of ζ ( >> 1) involve a large error even at frequencies much lower than ;
 small values of ζ ( < 1.0) correspond to large overshoots of the phase error just above ω_{n2}.

The transition Density D_{T} is never stable at its maximum value (100%). Rather, the loop must not become underdamped when D_{T} is somewhat lower than its average of 50%. D_{T} = 33% means a comparator gain reduction of 67% from the G_{φ} value.
As ζ varies inversely to the square root of G, it must be kept correspondingly larger by design.
Values of ζ between 1.1 and 1.9 are therefore an inevitable design choice. Other considerations that can be drawn from the study of the jitter tolerance function confirm the choice of this range of ζ values for the regenerator CDR design.
ω_{n2} and ω_{f} or ω_{z}[edit]
In a second order loop, the cutoff frequency of the loop filter block (ω_{f} or ω_{z}, as the case may be) fixes the bandwidth of the closed loop (apart from minor adjustments as ζ varies within its allowed range).
Anticipating some simple formulas that will be derived later in the book,
the natural frequency of the PLL ω_{n2} (which can also be seen as the jitter cutoff frequency of the CDR) is defined by the loop gain and by ω_{f} :
(using the subscripts to identify loop order and type) and can also be expressed as a function of just ζ and ω_{f} :
This simple formula tells that (in a 2^{nd} order PLL of type 1 where ζ_{21} must remain close to 1) the natural frequency ω_{n21} remains close to half the cutoff frequency of the loop filter!
Similarly, for the model of a 2^{nd} order type 2 loop (where ζ shall also preferably remain close to 1):
This simple formula tells that (in a 2^{nd} order PLL of type 2 where ζ_{22} shall remain ≈ 1) the natural undamped frequency ω_{n22} remains close to twice the cutoff frequency of the loop filter!
ω_{n21} and ω_{n1}[edit]
In a 1^{st} order loop, the quantity ω_{n} = G tells how fast the loop reacts. The higher ω_{n}, the faster the loop response.
For the 2nd order loop it is difficult to relate ω_{n2} to how fast the loop reacts to a change. In the 2  1 loop, for ζ ≈ 1, and setting for sake of comparison the gain G equal for the two loops:
In other words a 2^{nd} order type 1 PLL (ζ ≈ 1) wold seem twice as “fast” as a 1st order PLL of the same gain!
But it can also be seen that, setting, for sake of comparison, ω_{n2} = ω_{n}, then the 2nd order type 1 loop is not practically slower than the 1st order loop!
 “Slow or fast” in the sentences above means both:
  slow or fast to acquire the lock condition
  slow or fast to drift to its free running frequency when the input signal disappears.
Note that the USR of the 1  1 loop model is plotted for two different values of ω_{n1}: ω_{n1} = ω_{n2} of the other two loops and ω_{n1} = ω_{n2} / 2 of the other two loops
Jitter transfer function[edit]
The transfer function for a given input X(s) (that is the Jitter Transfer function!) is:
The magnitude of the jitter transfer frequency response (= absolute value of the jitter transfer, once modified with s replaced by jω) tells, at each frequency f = ω/2π , the ratio of the magnitude of the output jitter divided by the magnitude of the input jitter.
It can also be seen as the amplitude of the (sinusoidal) output jitter for a sinusoidal input jitter of amplitude = 1 radian ≈ 57.3°.
The following figure is the Bode magnitude plot of the jitter transfer function. Curves for different values of the parameter ζ (damping ratio) are shown:
This PLL is a good lowpass filter [40 dB/decade] for the phase jitter. There is no amplification of the input jitter except for values of the damping ratio smaller than √1/2 ≃ 0.707, at some frequencies around ω_{n2}. The peak amplification occurs at ω = ω_{n2} √1 − 2ζ² and is:
The jitter transfer function of a simpler 1^{st} order type 1 loop (where the signal processing block is just a flat gain block of gain G_{f}) can be easily obtained as:
Similar to the case above, it filters out all jitter components above ω_{n} (ω_{n} = G_{φ} * G_{f} * G_{VCO} = G), but without peaking nor smoothing of the corner, and with a single slope of 20 dB/decade instead of 40 dB/decade, as seen in the previous page.
Important changes in jitter filtering going from the 1  1 loop tp the 2  1 loop[edit]
The most important new feature is the sharper cut off of the input jitter frequencies above ω_{n2} , with a slope of 40 dB/decade instead of just 20 dB/decade.
The addition of the 1^{st} order filter between the phase comparator and the VCO has added one pole to the transfer characteristic of the loop.
All CDRs act as low pass filters on the timing signal, and remove all the (jitter) frequencies above a cut off frequency, called ω_{n} in the model of a 1^{st} order loop and ω_{n2} in the model of a 2^{nd} order loop.
The figure above contrasts the two cases in a particular example. Also the frequency of the received line pulses, ω_{p}, is shown, as the vertical marker of the yellow line.
The (CDR) PLL models in general refer to discrete time systems with sample frequency equal to ω_{p}, and therefore all characteristics above ω_{p} are not investigated (they repeat themselves periodically along the frequency axis).
In the case shown as well as in general, the choice of ω_{n2} implicitly defines the input jitter below ω_{n2} as useful signal, and the input jitter above ω_{n2} as noise to be rejected.
 The stronger filtering effect of the 2nd order loop can be reasonably estimated assuming that:
 the jitter has a flat spectral density from ω = 0 to ω = ω_{p},
 the jitter from ω = 0 to ω = ω_{n2} is useful signal and
 the jitter from ω = ω_{n2} to ω = ω_{p} is noise to be rejected.
With these assumption, it can be calculated that the 2^{nd} order loop fiters the noise jitter 17.23 dB more than the 1^{st} order loop.
Error signal[edit]
The previous section about the jitter transfer function has shown that some PLLs may even amplify the input jitter amplitude.
This happens for the frequency components around ω_{n2} of the input jitter, if the damping ratio ζ is lower than √1/2 ≃ 0.707.
Another tool to investigate the same critical frequency band is the function that describes the time distance (that is the phase distance if time is divided by the duration of a line pulse, i.e. by 2π/ω_{p}) between output and input.
This function is called error signal, indicated respectively as ε(t) or E(s) or E(jω).
The error signal is less important in a pure PLL circuit, whose task is to track an input clock (and to dejitter it, maybe), but is extremely important if the PLL is serving into a CDR circuit.
E(jω) is especially meaningful, because:
 jitter is investigated in "steady state" conditions, i.e. with the Fourier transforms: sinusoidal input, sinusoidal output and sinusoidal waveforms at every inner node of the PLL;
 the PLL output tracks exactly the input with just the difference ε(t);
 ε(t) is exactly the difference between the eye center and the sampling instant: when ε(t) is maximum the lateral eye margin is minimum;
 the maximum value of a sinusoidal deviation is its magnitude: the useful function is therefore E(jω).
Its magnitude tells, at every jitter frequency, the amplitude of the sinusoidal distance between the output and the input phases. It is easy to realize that this function is the loop error function:
The regeneration of the data depends on sampling the received pulses (that have undergone amplification, equalization and filtering of outofband noise) close to the time of maximum amplitude of each pulse. At that time the remaining noise and intersymbol interference still alter the pulse to a certain extent. A significant phase error makes the probability of a wrong detection higher: in other words a phase error that is not affecting clock tracking may still increase to intolerable levels the bit error rate!
The following figure plots the magnitude (not in dB, but in radian referred to the line pulse duration) of the error signal if the input jitter amplitude at any given frequency is exactly 1 rad (1 radian ≈ 57.3°).
The error signal is, in other words, normalized to the value of the loop input, plotting in fact the error "transfer" function: E(s)/X(s).
At low jitter frequencies there is practically no error, because the tracking is very good.
At very high jitter frequencies the error is practically identical to the input: in fact the PLL is not able to track the jitter and the local clock stays unmoving with respect to it.
At intermediate jitter frequencies, around ω_{n2}, the error increases with frequency till it is as large as the input jitter itself, with an intermediate region where it can become larger, at frequencies just above ω_{n2} for low values of ζ.
Large values of ζ ( >> 1) involve a large error even at frequencies much lower than ; small values of ζ ( < 1.0) correspond to large overshoots of the phase error just above .
Both the jitter transfer and the jitter error functions are true "transfer functions". They tell the ratio of an output to an input (The function in the figure above represents in fact the magnitude of the error transfer function, as well as the error magnitude, for an input with a fixed value of 1 radian).
The function in the next Section instead the jitter tolerance function is not a transfer function. The aspect of causality (the fact that the input generates the output) is not present there. The jitter tolerance function describes the values of input jitter that generate a fixed value of the error signal.
The steady state error due to f_{p} – f_{fr} difference and the steady state error of the sampling time[edit]
The freerunning frequency characteristic of the VCO, f_{fr}, never coincides exactly with f_{p}.
As introduced earlier in the VCO page,
the VCO control signal while the PLL is tracking the input signal 
exhibits a d.c. offset from its center value, proportional to the frequency mismatch.
This steady state error (in a control system of type 1 with unity feedback, like the system under consideration here) in presence of a unit ramp applied to the input of the system (as seen earlier in this book) is also present at the output and has the constant finite value of:
If the ramp applied to the input, instead of a slope of 1 rad/sec, has a slope of S rad/sec, E_{s} becomes:
and if, like in most practical cases, the ramp is caused by the frequency difference between the clock embedded in the CDR incoming pulse stream (f_{p}) and the freerunning frequency of its VCO (f_{fr}), the phase error in those type 1 systems is:
The frequency offset
This offset (of the drive signal at the node connected to the VCO input), depends on the type of the PLL:
 may not be a steady state signal because at some other node the signal would ramp until some nonlinearity of the loop limits it (and the loop loses its control ability  loops of type 0), or
 may be present at the other PLL nodes with a proportionality coefficient (loops of type 1, or
 may be compressed to zero at some other PLL nodes by some integration in the loop (loops of type 2).
Sampling time shifted from the best instant in type 1 PLLs
For the type 1 PLLs the dc offset that reconciles f_{p} and f_{fr} at the VCO input is also present with some coefficients of proportionality at the other nodes.
In particular this offset is present also between the two inputs of the phase comparator, has the value E_{s} seen above and represents a deviation of the sampling time from its best (=center) position.
The VCO centering is the limit to a very narrow jitter bandwidth
In the 2^{nd} order, type 1, loop, the VCO frequency mismatch f_{p} – f_{fr} becomes a sampling time error E_{s} according to:
For fixed open loop dc gain G and filter time constant τ_{f}, the jitter cutoff frequency ω_{n2} is:
It is easy to see that, for a 1st order type 1 loop: E_{s} = ((ω_{p} – ω_{fr}) / ω_{n1}
The same equation, rearranged, tells that the frequency mismatch and the maximum E_{s} define how tight the the loop jitter bandwidth can be:
It is easy to see that, for a 1st order type 1 loop: (ω_{n1}/ω_{p} ) = ((ω_{p} – ω_{fr}) /ω_{p}) / E_{s} )
For instance, if E_{s} is conservatively set as low as = 0.1 rad, then ω_{n2} can be : ω_{n2} ≃ 20 * (ω_{p} – ω_{fr}) .
As seen already about CDRs and parts per million of frequency mismatch, the free running frequency of a slave CDR may differ no more than 50 ppm from the frequency of its remote master (very low cost quartz crystal), or 10000 ppm (monolythic RC oscillator after EWS trimming), or even differ less than 1 ppm, still without big cost concerns (quartz for GPS receivers inside mobile phones). Less than 0.1 ppm is typical of professional equipment.
The four mentioned cases set a respective minimum for the design choice of ω_{n2} at: 0.001 ω_{p} , 0.2 ω_{p} , 2 e5 ω_{p} , 2 ppm ω_{p} .
Jitter tolerance[edit]
For the slave 2  1 loop, the jitter tolerance can be obtained as X(jω)_{Ε(jω) = Φleo}, which corresponds to the hypothesis that the tolerance is limited by (and only by) the lateral eye opening, see also the relevant page. (Φ_{leo} is the lateral eye opening expressed in radian).
In other words the mathematical function is obtained as if it was the range of the phase comparator that set the tolerance limit, but reduced to the lower value Φ_{leo}.
The comparator range corresponds to the ideal width of the received pulse left and right of its mid point ( ±π ).
The function that gives the ratio of the input to the error is:
Its magnitude in steady state (s = jω), that represents the magnitude of the sinusoidal input generating an error of magnitude 1 rad ( Ε(jω) = 1 rad ), is the normalized jitter tolerance function:
The magnitude of the jitter tolerance function (denormalized) is the same function but taken for E(jω) = Φ_{leo} :
The Bode magnitude plot is given in the following figure:
If another value better simulates the circuit tolerance limit, the curve plotted still applies provided it is translated vertically by the amount .
At low jitter frequencies there is very good tracking, even if the jitter has a large amplitude. The circuit has time to follow these large but slow variations. It takes an extremely large jitter amplitude to reach the limit of tolerance.
At very high jitter frequencies the circuit is unable to follow the jitter that varies too fast. The tolerance is in practice exactly the lateral eye opening (or the phase comparator range, whichever limit is reached first). In fact, the PLL is not able to track the jitter at all and the local clock stays unmoving with respect to it.
At intermediate jitter frequencies, just above ω_{n}, the circuit is tricked by the jitter into overreaching while the jitter is coming back to its zero value. In the range of such intermediate frequencies, at and above ω_{n}, the tolerance is correspondingly reduced below its asymptotic value, and especially so for low values of ζ.
It may be noted that the weak spot just above ω_{n} when ζ is low, corresponds to an asymptote towards low frequencies (20 dB/decade typical of all type 1 loops) that is correspondignly higher [translated vertically by 20log_{10}(2ζ) with respect to the asymptote going through (ω_{n} , Φ_{leo})].
This does not compensate, in CDR applications, the reduction of the tolerance margin in the critical frequency band, and the 2  1 loop should never be significantly underdamped.
The following table gives the values of the maximum tolerance reduction for different values of ζ:
Values of ζ between 1.0 and 1.5 are therefore an inevitable design choice. The designer shall pay attention to the fabrication tolerances of the CDR blocks (that may often be as large as ± 20 %) as well as to the dependence of them from operating conditions like the power supply variations or the density of transitions inside the incoming signal.
It is therefore important to check the behaviour of the CDR circuit (whatever its actual implemetation is, analog, digital or ..) in the frequency range around the transition from tracking (typical at low jitter frequencies) to inability to track (typical at very high jitter frequencies): an undershoot of the jitter tolerance may be present, and go unnoticed otherwise!.
The normalized jitter tolerance for all three important loop models used in (slave) CDRs is shown in the following figure.
The asintote towards low frequencies (in the loglog plot) has a slope of 20 dB/ decade for the type 1 systems, and of 40 dB/ decade for the type 2 system.
The rejection of generated (VCO) noise…..[edit]
Noise injected into the different nodes of the PLL loop reaches the output modified by the loop operation.
_{See also the page Clock and Data Recovery/Noise is shaped by the PLL structure}.
The description in the s domain of such modifications for a 2^{nd} order type 1 PLL is:
The noise generated by the filter N_{f} is modified by the transfer equation TF_{Nf} = (TF_{VCO}) / (1 + TF_{PhComp}*TF_{filter}_{*}TF_{VCO}))
The noise generated by the VCO N_{o} is modified by the transfer equation TF_{No} = 1/(1 + TF_{PhComp}*TF_{filter}_{*}TF_{VCO})
The 2  1 magnitude is: Y(jω)/N_{o}(jω) = 20log10(((ω^{2}τ_{z})^{2}+ω^{2})^{1/2} / ( (Gω^{2}τ_{z})^{2} + ω^{2} )^{1/2})
The 2  1 loop attenuates the VCO noise at all frequencies below , with a single slope (20 dB/decade) and with a gain overshoot that  whenever ζ > 0 , i.e. always  peaks at reaching a peak value that can represent a problem whenever ζ_{21} is lower than 0.5.
The 21 loop is normally used in regenerator applications (when is low): a low noise VCO must be used.
It also needs very good control of ζ_{21} that must be kept close to 1.0 (this rules out the use of blocks with hard nonlinearities and largely variable gain, like bangbang phase detectors).
Unit step response[edit]
The analysis in the frequency domain (jitter transfer, error function, jitter tolerance, noise transfer) models the circuit behavior in the "small signal" conditions.
The Unit Step Response is part of the same mathematical model, and gives a time domain perspective of the circuit,
that complements the frequency domain perspective offered by the jω functions.
The Unit Step Response can be obtained from the jitter transfer function, multiplying it by 1/s and inverse transforming.
In fact the (unit) step response shows the response of the PLL output phase to an abrupt variation of the input phase.
The (unit) step response is used primarily to see how the acquisition phase evolves towards phase lock.
The step response of this type of loop is slower than that of the 1^{st} order (and than that of the 2^{nd} order type 2), because the loop filter does attenuates the high frequencies (while there is no attenuation of high frequencies in the case of the other two loops).
At the beginning of an acquisition the signal pops up with some timing difference from the phase of the freerunning until that moment local oscillator, and this can be well represented by a step function, with a value of the step that may vary randomly, from acquisition to acquisition, in the range of π to +π rad.
It is however important to be cautious when using the step response to model the system in case of large abrupt variations of the input phase.
Care is necessary because the boundaries of linear operation of the system (the range of the phase comparator, the swing of the filter output, the control range of the VCO, ..) can easily be reached and exceeded during a (relatively) large transient.
The CDR will very likely still operate correctly but its performances may not be well described by this linear model during such transient.
The response when left freerunning[edit]
The unit step response of the loop filter can give some understanding also on the behavior of the CDR when the latter loses lock and becomes freerunning.
(The CDR is left freerunning, for instance, when the incoming signal has no level transitions for the phase comparator to detect its phase. At that moment the phase comparator output steps abruptly to its neutral i.e. no phase difference level.)
 In a 1^{st} order loop, the comparator output waveform is applied directly to the VCO input (apart from some flat amplification). The VCO abruptly changes its frequency to its freerunning frequency. The sampling point drifts from its lockin point following a linear (phase) ramp. The slope of the ramp is the frequency difference between the freerunning frequency of the local oscillator and the frequency of the remote transmit oscillator (Δf = f_{fr} f_{s}).
 In a 2^{nd} order type 1 loop, the loop filter smooths down the frequency step. The phase ramp does not start immediately, but gradually. The graduality corresponds to the time constant of the loop filter, τ.
This helps understand the difference in the architectural sense, but may be misleading in practice, because the two loops, for the same f_{p} , would be used in different applications with widely different values of G_{VCO}.
G_{VCO} would be much larger in a 1^{st} order loop, in consideration of the fast acquisition expected, and much smaller in the 2^{nd} order loop, in consideration of the tight jitter filtering expected.
The (1^{st} order type 1) loop drifts 1 rad exactly after a time equal to: f_{p} / f_{p} – f_{fr} periods of received pulses.
But errored bits might appear even before, if the lateral eye opening was less than 1 rad (1 rad is an improbable value, 2 rad is a more likely threshold for the onset of errored bits).
In the case of a 2^{nd} order type 1 loop, (for the property of the 1^{st} order USR of the filter inside the 2^{nd} order PLL that the area lost versus the unit step is exactly τ = 1/ω) :