Recent from talks
Nothing was collected or created yet.
Phase-locked loop
View on WikipediaThis article includes a list of general references, but it lacks sufficient corresponding inline citations. (June 2022) |
A phase-locked loop or phase lock loop (PLL) is a control system that generates an output signal whose phase is fixed relative to the phase of an input signal. Keeping the input and output phase in lockstep also implies keeping the input and output frequencies the same, thus a phase-locked loop can also track an input frequency. Furthermore, by incorporating a frequency divider, a PLL can generate a stable frequency that is a multiple of the input frequency.
These properties are used for clock synchronization, demodulation, frequency synthesis, clock multipliers, and signal recovery from a noisy communication channel. Since 1969, a single integrated circuit can provide a complete PLL building block, and nowadays have output frequencies from a fraction of a hertz up to many gigahertz. Thus, PLLs are widely employed in radio, telecommunications, computers (e.g. to distribute precisely timed clock signals in microprocessors), grid-tie inverters (electronic power converters used to integrate DC renewable resources and storage elements such as photovoltaics and batteries with the power grid), and other electronic applications.
Simple example
[edit]
A simple analog PLL is an electronic circuit consisting of a variable frequency oscillator and a phase detector in a feedback loop (Figure 1). The oscillator generates a periodic signal Vo with frequency proportional to an applied voltage, hence the term voltage-controlled oscillator (VCO). The phase detector compares the phase of the VCO's output signal with the phase of periodic input reference signal Vi and outputs a voltage (stabilized by the filter) to adjust the oscillator's frequency to match the phase of Vo to the phase of Vi.
Clock analogy
[edit]Phase can be proportional to time,[a] so a phase difference can correspond to a time difference.
Left alone, different clocks will mark time at slightly different rates. A mechanical clock, for example, might be fast or slow by a few seconds per hour compared to a reference atomic clock (such as the NIST-F2). That time difference becomes substantial over time. Instead, the owner can synchronize their mechanical clock (with varying degrees of accuracy) by phase-locking it to a reference clock.
An inefficient synchronization method involves the owner resetting their clock to that more accurate clock's time every week. But, left alone, their clock will still continue to diverge from the reference clock at the same few seconds per hour rate.
A more efficient synchronization method (analogous to the simple PLL in Figure 1) utilizes the fast-slow timing adjust control (analogous to how the VCO's frequency can be adjusted) available on some clocks. Analogously to the phase comparator, the owner could notice their clock's misalignment and turn its timing adjust a small proportional amount to make their clock's frequency a little slower (if their clock was fast) or faster (if their clock was slow). If they don't overcompensate, then their clock will be more accurate than before. Over a series of such weekly adjustments, their clock's notion of a second would agree close enough with the reference clock, so they could be said to be locked both in frequency and phase.
An early electromechanical version of a phase-locked loop was used in 1921 in the Shortt-Synchronome clock.
History
[edit]Spontaneous synchronization of weakly coupled pendulum clocks was noted by the Dutch physicist Christiaan Huygens as early as 1673.[1] Around the turn of the 19th century, Lord Rayleigh observed synchronization of weakly coupled organ pipes and tuning forks.[2] In 1919, W. H. Eccles and J. H. Vincent found that two electronic oscillators that had been tuned to oscillate at slightly different frequencies but that were coupled to a resonant circuit would soon oscillate at the same frequency.[3] Automatic synchronization of electronic oscillators was described in 1923 by Edward Victor Appleton.[4]
In 1925, David Robertson, first professor of electrical engineering at the University of Bristol, introduced phase locking in his clock design to control the striking of the bell Great George in the new Wills Memorial Building. Robertson's clock incorporated an electromechanical device that could vary the rate of oscillation of the pendulum, and derived correction signals from a circuit that compared the pendulum phase with that of an incoming telegraph pulse from Greenwich Observatory every morning at 10:00 GMT. Including equivalents of every element of a modern electronic PLL, Robertson's system was notably ahead of its time in that its phase detector was a relay logic implementation of the transistor circuits for phase/frequency detectors not seen until the 1970s.
Robertson's work predated research towards what was later named the phase-lock loop in 1932, when British researchers developed an alternative to Edwin Armstrong's superheterodyne receiver, the Homodyne or direct-conversion receiver. In the homodyne or synchrodyne system, a local oscillator was tuned to the desired input frequency and multiplied with the input signal. The resulting output signal included the original modulation information. The intent was to develop an alternative receiver circuit that required fewer tuned circuits than the superheterodyne receiver. Since the local oscillator would rapidly drift in frequency, an automatic correction signal was applied to the oscillator, maintaining it in the same phase and frequency of the desired signal. The technique was described in 1932, in a paper by Henri de Bellescize, in the French journal L'Onde Électrique.[5][6][7]
In analog television receivers since at least the late 1930s, phase-locked-loop horizontal and vertical sweep circuits are locked to synchronization pulses in the broadcast signal.[8]

In 1969, Signetics introduced a line of low-cost monolithic integrated circuits like the NE565 using bipolar transistors, that were complete phase-locked loop systems on a chip,[9] and applications for the technique multiplied. A few years later, RCA introduced the CD4046 Micropower Phase-Locked Loop using CMOS, which also became a popular integrated circuit building block.
Structure and function
[edit]Phase-locked loop mechanisms may be implemented as either analog or digital circuits. Both implementations use the same basic structure.
Analog PLL circuits include four basic elements:
- Phase detector
- Low-pass filter
- Voltage controlled oscillator
- Feedback path, which may include a frequency divider
Variations
[edit]There are several variations of PLLs. Some terms that are used are "analog phase-locked loop" (APLL), also referred to as a linear phase-locked loop" (LPLL), "digital phase-locked loop" (DPLL), "all digital phase-locked loop" (ADPLL), and "software phase-locked loop" (SPLL).[10]
- Analog or linear PLL (APLL)
- Phase detector is an analog multiplier. Loop filter is active or passive. Uses a voltage-controlled oscillator (VCO). APLL is said to be a type II if its loop filter has transfer function with exactly one pole at the origin (see also Egan's conjecture on the pull-in range of type II APLL).
- Digital PLL (DPLL)
- An analog PLL with a digital phase detector (such as XOR, edge-triggered JK flip flop, phase frequency detector). May have digital divider in the loop.
- All digital PLL (ADPLL)
- Phase detector, filter and oscillator are digital. Uses a numerically controlled oscillator (NCO).
- Neuronal PLL (NPLL)
- Phase detector is implemented by neuronal non-linearity, oscillator by rate-controlled oscillating neurons.[11]
- Software PLL (SPLL)
- Functional blocks are implemented by software rather than specialized hardware.
- Charge-pump PLL (CP-PLL)
- CP-PLL is a modification of phase-locked loops with phase-frequency detector and square waveform signals. See also Gardner's conjecture on CP-PLL.
Performance parameters
[edit]- Type and order.
- Frequency ranges: hold-in range (tracking range), pull-in range (capture range, acquisition range), lock-in range.[12] See also Gardner's problem on the lock-in range, Egan's conjecture on the pull-in range of type II APLL, Viterbi's problem on the PLL ranges coincidence.
- Loop bandwidth: Defining the speed of the control loop.
- Transient response: Like overshoot and settling time to a certain accuracy (like 50 ppm).
- Steady-state errors: Like remaining phase or timing error.
- Output spectrum purity: Like sidebands generated from a certain VCO tuning voltage ripple.
- Phase-noise: Defined by noise energy in a certain frequency band (like 10 kHz offset from carrier). Highly dependent on VCO phase-noise, PLL bandwidth, etc.
- General parameters: Such as power consumption, supply voltage range, output amplitude, etc.
Applications
[edit]Phase-locked loops are widely used for synchronization purposes; in space communications for coherent demodulation and threshold extension, bit synchronization, and symbol synchronization. Phase-locked loops can also be used to demodulate frequency-modulated signals. In radio transmitters, a PLL is used to synthesize new frequencies which are a multiple of a reference frequency, with the same stability as the reference frequency.[13]
Other applications include:
- Demodulation of frequency modulation (FM): If PLL is locked to an FM signal, the VCO tracks the instantaneous frequency of the input signal. The filtered error voltage which controls the VCO and maintains lock with the input signal is demodulated FM output. The VCO transfer characteristics determine the linearity of the demodulated out. Since the VCO used in an integrated-circuit PLL is highly linear, it is possible to realize highly linear FM demodulators.
- Demodulation of frequency-shift keying (FSK): In digital data communication and computer peripherals, binary data is transmitted by means of a carrier frequency which is shifted between two preset frequencies.
- Recovery of small signals that otherwise would be lost in noise (lock-in amplifier to track the reference frequency)
- Recovery of clock timing information from a data stream such as from a disk drive
- Clock multipliers in microprocessors that allow internal processor elements to run faster than external connections, while maintaining precise timing relationships
- Demodulation of modems and other tone signals for telecommunications and remote control.
- DSP of video signals; Phase-locked loops are also used to synchronize phase and frequency to the input analog video signal so it can be sampled and digitally processed
- Atomic force microscopy in frequency modulation mode, to detect changes of the cantilever resonance frequency due to tip–surface interactions
- DC motor drive
Clock recovery
[edit]Some data streams, especially high-speed serial data streams (such as the raw stream of data from the magnetic head of a disk drive), are sent without an accompanying clock. The receiver generates a clock from an approximate frequency reference, and then uses a PLL to phase-align it to the data stream's signal edges. This process is referred to as clock recovery. For this scheme to work, the data stream must have edges frequently-enough to correct any drift in the PLL's oscillator. Thus a line code with a hard upper bound on the maximum time between edges (e.g. 8b/10b encoding) is typically used to encode the data.
Deskewing
[edit]If a clock is sent in parallel with data, that clock can be used to sample the data. Because the clock must be received and amplified before it can drive the flip-flops which sample the data, there will be a finite, and process-, temperature-, and voltage-dependent delay between the detected clock edge and the received data window. This delay limits the frequency at which data can be sent. One way of eliminating this delay is to include a deskew PLL on the receive side, so that the clock at each data flip-flop is phase-matched to the received clock. In that type of application, a special form of a PLL called a delay-locked loop (DLL) is frequently used.[14]
Clock generation
[edit]Many electronic systems include processors of various sorts that operate at hundreds of megahertz to gigahertz, well above the practical frequencies of crystal oscillators. Typically, the clocks supplied to these processors come from clock generator PLLs, which multiply a lower-frequency reference clock (usually 50 or 100 MHz) up to the operating frequency of the processor. The multiplication factor can be quite large in cases where the operating frequency is multiple gigahertz and the reference crystal is just tens or hundreds of megahertz.
Spread spectrum
[edit]All electronic systems emit some unwanted radio frequency energy. Various regulatory agencies (such as the FCC in the United States) put limits on the emitted energy and any interference caused by it. The emitted noise generally appears at sharp spectral peaks (usually at the operating frequency of the device, and a few harmonics). A system designer can use a spread-spectrum PLL to reduce interference with high-Q receivers by spreading the energy over a larger portion of the spectrum. For example, by changing the operating frequency up and down by a small amount (about 1%), a device running at hundreds of megahertz can spread its interference evenly over a few megahertz of spectrum, which drastically reduces the amount of noise seen on broadcast FM radio channels, which have a bandwidth of several tens of kilohertz.
Clock distribution
[edit]
Typically, the reference clock enters the chip and drives a phase locked loop (PLL), which then drives the system's clock distribution. The clock distribution is usually balanced so that the clock arrives at every endpoint simultaneously. One of those endpoints is the PLL's feedback input. The function of the PLL is to compare the distributed clock to the incoming reference clock, and vary the phase and frequency of its output until the reference and feedback clocks are phase and frequency matched.
PLLs are ubiquitous—they tune clocks in systems several feet across, as well as clocks in small portions of individual chips. Sometimes the reference clock may not actually be a pure clock at all, but rather a data stream with enough transitions that the PLL is able to recover a regular clock from that stream. Sometimes the reference clock is the same frequency as the clock driven through the clock distribution, other times the distributed clock may be some rational multiple of the reference.
AM detection
[edit]A PLL may be used to synchronously demodulate amplitude modulated (AM) signals. The PLL recovers the phase and frequency of the incoming AM signal's carrier. The recovered phase at the VCO differs from the carrier's by 90°, so it is shifted in phase to match, and then fed to a multiplier. The output of the multiplier contains both the sum and the difference frequency signals, and the demodulated output is obtained by low-pass filtering. Since the PLL responds only to the carrier frequencies which are very close to the VCO output, a PLL AM detector exhibits a high degree of selectivity and noise immunity which is not possible with conventional peak type AM demodulators. However, the loop may lose lock where AM signals have 100% modulation depth.[15]
Jitter and noise reduction
[edit]One desirable property of all PLLs is that the reference and feedback clock edges be brought into very close alignment. The average difference in time between the phases of the two signals when the PLL has achieved lock is called the static phase offset (also called the steady-state phase error). The variance between these phases is called tracking jitter. Ideally, the static phase offset should be zero, and the tracking jitter should be as low as possible.[dubious – discuss]
Phase noise is another type of jitter observed in PLLs, and is caused by the oscillator itself and by elements used in the oscillator's frequency control circuit. Some technologies are known to perform better than others in this regard. The best digital PLLs are constructed with emitter-coupled logic (ECL) elements, at the expense of high power consumption. To keep phase noise low in PLL circuits, it is best to avoid saturating logic families such as transistor-transistor logic (TTL) or CMOS.[16]
Another desirable property of all PLLs is that the phase and frequency of the generated clock be unaffected by rapid changes in the voltages of the power and ground supply lines, as well as the voltage of the substrate on which the PLL circuits are fabricated. This is called substrate and supply noise rejection. The higher the noise rejection, the better.
To further improve the phase noise of the output, an injection locked oscillator can be employed following the VCO in the PLL.
Frequency synthesis
[edit]In digital wireless communication systems (GSM, CDMA etc.), PLLs are used to provide the local oscillator up-conversion during transmission and down-conversion during reception. In most cellular handsets this function has been largely integrated into a single integrated circuit to reduce the cost and size of the handset. However, due to the high performance required of base station terminals, the transmission and reception circuits are built with discrete components to achieve the levels of performance required. GSM local oscillator modules are typically built with a frequency synthesizer integrated circuit and discrete resonator VCOs.[citation needed]
Phase angle reference
[edit]Grid-tie inverters based on voltage source inverters source or sink real power into the AC electric grid as a function of the phase angle of the voltage they generate relative to the grid's voltage phase angle, which is measured using a PLL. In photovoltaic applications, the more the sine wave produced leads the grid voltage wave, the more power is injected into the grid. For battery applications, the more the sine wave produced lags the grid voltage wave, the more the battery charges from the grid, and the more the sine wave produced leads the grid voltage wave, the more the battery discharges into the grid.[citation needed]
Block diagram
[edit]
The block diagram shown in the figure shows an input signal, FI, which is used to generate an output, FO. The input signal is often called the reference signal (also abbreviated FREF).[17]
At the input, a phase detector (shown as the Phase frequency detector and Charge pump blocks in the figure) compares two input signals, producing an error signal which is proportional to their phase difference. The error signal is then low-pass filtered and used to drive a VCO which creates an output phase. The output is fed through an optional divider back to the input of the system, producing a negative feedback loop. If the output phase drifts, the error signal will increase, driving the VCO phase in the opposite direction so as to reduce the error. Thus the output phase is locked to the phase of the input.
Analog phase locked loops are generally built with an analog phase detector, low-pass filter and VCO placed in a negative feedback configuration. A digital phase locked loop uses a digital phase detector; it may also have a divider in the feedback path or in the reference path, or both, in order to make the PLL's output signal frequency a rational multiple of the reference frequency. A non-integer multiple of the reference frequency can also be created by replacing the simple divide-by-N counter in the feedback path with a programmable pulse swallowing counter. This technique is usually referred to as a fractional-N synthesizer or fractional-N PLL.[dubious – discuss]
The oscillator generates a periodic output signal. Assume that initially the oscillator is at nearly the same frequency as the reference signal. If the phase from the oscillator falls behind that of the reference, the phase detector changes the control voltage of the oscillator so that it speeds up. Likewise, if the phase creeps ahead of the reference, the phase detector changes the control voltage to slow down the oscillator. Since initially the oscillator may be far from the reference frequency, practical phase detectors may also respond to frequency differences, so as to increase the lock-in range of allowable inputs. Depending on the application, either the output of the controlled oscillator, or the control signal to the oscillator, provides the useful output of the PLL system.[citation needed]
Elements
[edit]Phase detector
[edit]A phase detector (PD) generates a voltage, which represents the phase difference between two signals. In a PLL, the two inputs of the phase detector are the reference input and the feedback from the VCO. The PD output voltage is used to control the VCO such that the phase difference between the two inputs is held constant, making it a negative feedback system. [18]
Different types of phase detectors have different performance characteristics.
For instance, the frequency mixer produces harmonics that adds complexity in applications where spectral purity of the VCO signal is important. The resulting unwanted (spurious) sidebands, also called "reference spurs" can dominate the filter requirements and reduce the capture range well below or increase the lock time beyond the requirements. In these applications the more complex digital phase detectors are used which do not have as severe a reference spur component on their output. Also, when in lock, the steady-state phase difference at the inputs using this type of phase detector is near 90 degrees.[citation needed]
In PLL applications it is frequently required to know when the loop is out of lock. The more complex digital phase-frequency detectors usually have an output that allows a reliable indication of an out of lock condition.
An XOR gate is often used for digital PLLs as an effective yet simple phase detector. It can also be used in an analog sense with only slight modification to the circuitry.
Filter
[edit]The block commonly called the PLL loop filter (usually a low-pass filter) generally has two distinct functions.
The primary function is to determine loop dynamics, also called stability. This is how the loop responds to disturbances, such as changes in the reference frequency, changes of the feedback divider, or at startup. Common considerations are the range over which the loop can achieve lock (pull-in range, lock range or capture range), how fast the loop achieves lock (lock time, lock-up time or settling time) and damping behavior. Depending on the application, this may require one or more of the following: a simple proportion (gain or attenuation), an integral (low-pass filter) and/or derivative (high-pass filter). Loop parameters commonly examined for this are the loop's gain margin and phase margin. Common concepts in control theory including the PID controller are used to design this function.
The second common consideration is limiting the amount of reference frequency energy (ripple) appearing at the phase detector output that is then applied to the VCO control input. This frequency modulates the VCO and produces FM sidebands commonly called "reference spurs".
The design of this block can be dominated by either of these considerations, or can be a complex process juggling the interactions of the two. The typical trade-off of increasing the bandwidth is degraded stability. Conversely, the tradeoff of extra damping for better stability is reduced speed and increased settling time. Often the phase-noise is also affected.[13]
Oscillator
[edit]All phase-locked loops employ an oscillator element with variable frequency capability. This can be an analog VCO either driven by analog circuitry in the case of an APLL or driven digitally through the use of a digital-to-analog converter as is the case for some DPLL designs.[19] Ring oscillators are commonly used in CMOS technology for low-area applications , whereas cross-coupled LC oscillators are preferred in low-phase noise applications. [20] Pure digital oscillators such as a numerically controlled oscillator are used in ADPLLs.[citation needed]
Feedback path and optional divider
[edit]This section needs additional citations for verification. (June 2022) |

PLLs may include a divider between the oscillator and the feedback input to the phase detector to produce a frequency synthesizer. A programmable divider is particularly useful in radio transmitter applications and for computer clocking, since a large number of frequencies can be produced from a single stable, accurate, quartz crystal–controlled reference oscillator (which were expensive before commercial-scale hydrothermal synthesis provided cheap synthetic quartz).
Some PLLs also include a divider between the reference clock and the reference input to the phase detector. If the divider in the feedback path divides by and the reference input divider divides by , it allows the PLL to multiply the reference frequency by . It might seem simpler to just feed the PLL a lower frequency, but in some cases the reference frequency may be constrained by other issues, and then the reference divider is useful.
Frequency multiplication can also be attained by locking the VCO output to the Nth harmonic of the reference signal. Instead of a simple phase detector, the design uses a harmonic mixer (sampling mixer). The harmonic mixer turns the reference signal into an impulse train that is rich in harmonics.[b] The VCO output is coarse tuned to be close to one of those harmonics. Consequently, the desired harmonic mixer output (representing the difference between the N harmonic and the VCO output) falls within the loop filter passband.
It should also be noted that the feedback is not limited to a frequency divider. This element can be other elements such as a frequency multiplier, or a mixer. The multiplier will make the VCO output a sub-multiple (rather than a multiple) of the reference frequency. A mixer can translate the VCO frequency by a fixed offset. It may also be a combination of these. For example, a divider following a mixer allows the divider to operate at a much lower frequency than the VCO without a loss in loop gain.
Modeling
[edit]Time domain model of APLL
[edit]The equations governing a phase-locked loop with an analog multiplier as the phase detector and linear filter may be derived as follows. Let the input to the phase detector be and the output of the VCO is with phases and . The functions and describe waveforms of signals. Then the output of the phase detector is given by
The VCO frequency is usually taken as a function of the VCO input as
where is the sensitivity of the VCO and is expressed in Hz / V; is a free-running frequency of VCO.
The loop filter can be described by a system of linear differential equations
where is an input of the filter, is an output of the filter, is -by- matrix, . represents an initial state of the filter. The star symbol is a conjugate transpose.
Hence the following system describes PLL
where is an initial phase shift.
Phase domain model of APLL
[edit]Consider the input of PLL and VCO output are high frequency signals. Then for any piecewise differentiable -periodic functions and there is a function such that the output of Filter
in phase domain is asymptotically equal (the difference is small with respect to the frequencies) to the output of the Filter in time domain model. [21] [22] Here function is a phase detector characteristic.
Denote by the phase difference
Then the following dynamical system describes PLL behavior
Here ; is the frequency of a reference oscillator (we assume that is constant).
Example
[edit]Consider sinusoidal signals
and a simple one-pole RC circuit as a filter. The time-domain model takes the form
PD characteristics for this signals is equal[23] to
Hence the phase domain model takes the form
This system of equations is equivalent to the equation of mathematical pendulum
Linearized phase domain model
[edit]Phase locked loops can also be analyzed as control systems by applying the Laplace transform. The loop response can be written as
Where
- is the output phase in radians
- is the input phase in radians
- is the phase detector gain in volts per radian
- is the VCO gain in radians per volt-second
- is the loop filter transfer function (dimensionless)
The loop characteristics can be controlled by inserting different types of loop filters. The simplest filter is a one-pole RC circuit. The loop transfer function in this case is
The loop response becomes:
This is the form of a classic harmonic oscillator. The denominator can be related to that of a second order system:
where is the damping factor and is the natural frequency of the loop.
For the one-pole RC filter,
The loop natural frequency is a measure of the response time of the loop, and the damping factor is a measure of the overshoot and ringing. Ideally, the natural frequency should be high and the damping factor should be near 0.707 (critical damping). With a single pole filter, it is not possible to control the loop frequency and damping factor independently. For the case of critical damping,
A slightly more effective filter, the lag-lead filter includes one pole and one zero. This can be realized with two resistors and one capacitor. The transfer function for this filter is
This filter has two time constants
Substituting above yields the following natural frequency and damping factor
The loop filter components can be calculated independently for a given natural frequency and damping factor
Real world loop filter design can be much more complex e.g. using higher order filters to reduce various types or source of phase noise. (See the D Banerjee ref below)
Implementing a digital phase-locked loop in software
[edit]Digital phase locked loops can be implemented in hardware, using integrated circuits such as a CMOS 4046. However, with microcontrollers becoming faster, it may make sense to implement a phase locked loop in software for applications that do not require locking onto signals in the MHz range or faster, such as precisely controlling motor speeds. Software implementation has several advantages including easy customization of the feedback loop including changing the multiplication or division ratio between the signal being tracked and the output oscillator. Furthermore, a software implementation is useful to understand and experiment with. As an example of a phase-locked loop implemented using a phase frequency detector is presented in MATLAB, as this type of phase detector is robust and easy to implement.
% This example is written in MATLAB
% Initialize variables
vcofreq = zeros(1, numiterations);
ervec = zeros(1, numiterations);
% Keep track of last states of reference, signal, and error signal
qsig = 0; qref = 0; lref = 0; lsig = 0; lersig = 0;
phs = 0;
freq = 0;
% Loop filter constants (proportional and derivative)
% Currently powers of two to facilitate multiplication by shifts
prop = 1 / 128;
deriv = 64;
for it = 1:numiterations
% Simulate a local oscillator using a 16-bit counter
phs = mod(phs + floor(freq / 2 ^ 16), 2 ^ 16);
ref = phs < 32768;
% Get the next digital value (0 or 1) of the signal to track
sig = tracksig(it);
% Implement the phase-frequency detector
rst = ~ (qsig & qref); % Reset the "flip-flop" of the phase-frequency
% detector when both signal and reference are high
qsig = (qsig | (sig & ~ lsig)) & rst; % Trigger signal flip-flop and leading edge of signal
qref = (qref | (ref & ~ lref)) & rst; % Trigger reference flip-flop on leading edge of reference
lref = ref; lsig = sig; % Store these values for next iteration (for edge detection)
ersig = qref - qsig; % Compute the error signal (whether frequency should increase or decrease)
% Error signal is given by one or the other flip flop signal
% Implement a pole-zero filter by proportional and derivative input to frequency
filtered_ersig = ersig + (ersig - lersig) * deriv;
% Keep error signal for proportional output
lersig = ersig;
% Integrate VCO frequency using the error signal
freq = freq - 2 ^ 16 * filtered_ersig * prop;
% Frequency is tracked as a fixed-point binary fraction
% Store the current VCO frequency
vcofreq(1, it) = freq / 2 ^ 16;
% Store the error signal to show whether signal or reference is higher frequency
ervec(1, it) = ersig;
end
In this example, an array tracksig is assumed to contain a reference signal to be tracked. The oscillator is implemented by a counter, with the most significant bit of the counter indicating the on/off status of the oscillator. This code simulates the two D-type flip-flops that comprise a phase-frequency comparator. When either the reference or signal has a positive edge, the corresponding flip-flop switches high. Once both reference and signal is high, both flip-flops are reset. Which flip-flop is high determines at that instant whether the reference or signal leads the other. The error signal is the difference between these two flip-flop values. The pole-zero filter is implemented by adding the error signal and its derivative to the filtered error signal. This in turn is integrated to find the oscillator frequency.
In practice, one would likely insert other operations into the feedback of this phase-locked loop. For example, if the phase locked loop were to implement a frequency multiplier, the oscillator signal could be divided in frequency before it is compared to the reference signal.
See also
[edit]- Carrier recovery
- Charge-pump phase-locked loop
- Circle map – A simple mathematical model of the phase-locked loop showing both mode-locking and chaotic behavior.
- Costas loop
- Delay-locked loop (DLL)
- Direct conversion receiver
- Direct digital synthesizer
- Frequency-locked loop
- Kalman filter
- PLL multibit
- Shortt–Synchronome clock – Slave pendulum phase-locked to master (ca 1921)
Notes
[edit]- ^ If the frequency is constant and the initial phase is zero, then the phase of a sinusoid is proportional to time.
- ^ Typically, the reference sinewave drives a step recovery diode circuit to make this impulse train. The resulting impulse train drives a sample gate.
References
[edit]- ^ Christiaan Huygens, Horologium Oscillatorium … (Paris, France: F. Muguet, 1673), pages 18–19. From page 18: " … illudque accidit memoratu dignum, … brevi tempore reduceret." ( … and it is worth mentioning, since with two clocks constructed in this form and which we suspend in like manner, truly the cross beam is assigned two fulcrums [i.e., two pendulum clocks were suspended from the same wooden beam]; the motions of the pendulums thus share the opposite swings between the two [clocks], since the two clocks at no time move even a small distance, and the sound of both can be heard clearly together always: for if the innermost part [of one of the clocks] is disturbed with a little help, it will have been restored in a short time by the clocks themselves.) English translation provided by Ian Bruce's translation of Horologium Oscillatorium … , pages 16–17.
- ^ See:
- Lord Rayleigh, The Theory of Sound (London, England: Macmillan, 1896), vol. 2. The synchronization of organ pipes in opposed phase is mentioned in §322c, pages 221–222.
- Lord Rayleigh (1907) "Acoustical notes — VII", Philosophical Magazine, 6th series, 13 : 316–333. See "Tuning-forks with slight mutual influence", pages 322–323.
- ^ See:
- Vincent (1919) "On some experiments in which two neighbouring maintained oscillatory circuits affect a resonating circuit", Proceedings of the Physical Society of London, 32, pt. 2, 84–91.
- W. H. Eccles and J. H. Vincent, British Patent Specifications, 163 : 462 (17 Feb. 1920).
- ^ E. V. Appleton (1923) "The automatic synchronization of triode oscillators", Proceedings of the Cambridge Philosophical Society, 21 (Part III): 231–248. Available on-line at: Internet Archive.
- ^ Henri de Bellescize, "La réception synchrone", L'Onde Électrique (later: Revue de l'Electricité et de l'Electronique), vol. 11, pages 230–240 (June 1932).
- ^ See also: French patent no. 635,451 (filed: 6 October 1931; issued: 29 September 1932); and U.S. patent "Synchronizing system", no. 1,990,428 (filed: 29 September 1932; issued: 5 February 1935).
- ^ Notes for a University of Guelph course describing the PLL and early history, including an IC PLL tutorial Archived 2009-02-24 at the Wayback Machine
- ^ "National Television Systems Committee Video Display Signal IO". Sxlist.com. Retrieved 2010-10-14.
- ^ Grebene, A.; Camenzind, H. (1969). "Phase locking as a new approach for tuned integrated circuits". 1969 IEEE International Solid-State Circuits Conference. Digest of Technical Papers. Vol. XII. pp. 100–101. doi:10.1109/ISSCC.1969.1154749 – via IEEE Xplore.
- ^ Roland E. Best (2007). Phase Locked Loops 6/e : Design, Simulation, and Applications: Design, Simulation, and Applications. McGraw Hill Professional. ISBN 978-0-07-149375-8.
- ^ Ahissar, E. Neuronal phase-locked loops. U.S. Patent No. 6,581,046 (2003).
- ^ Leonov, G. A.; Kuznetsov, N. V.; Yuldashev, M. V.; Yuldashev, R. V. (2015). "Hold-in, pull-in, and lock-in ranges of PLL circuits: rigorous mathematical definitions and limitations of classical theory". IEEE Transactions on Circuits and Systems I: Regular Papers. 62 (10). IEEE: 2454–2464. arXiv:1505.04262. doi:10.1109/TCSI.2015.2476295. S2CID 12292968.
- ^ a b Khalili Dermani, M.; Baghaei, M. S.; Colas, Frédéric; Rioual, Michel; Guillaud, Xavier; Retiere, Nicolas (2022). "Non-linear stability analysis of the electrical vehicle chargers power stage connected to the weak grid". CIRED Porto Workshop 2022: E-mobility and power distribution systems. Institution of Engineering and Technology. pp. 955–959. doi:10.1049/icp.2022.0855. ISBN 978-1-83953-705-9. S2CID 251122708.
- ^ M Horowitz; C. Yang; S. Sidiropoulos (1998-01-01). "High-speed electrical signaling: overview and limitations" (PDF). IEEE Micro. Archived from the original (PDF) on 2006-02-21.
- ^ Dixon, Robert (1998), Radio Receiver Design, CRC Press, p. 215, ISBN 0824701615
- ^ Basab Bijoy Purkayastha; Kandarpa Kumar Sarma (2015). A Digital Phase Locked Loop based Signal and Symbol Recovery System for Wireless Channel. India: Springer (India) Pvt. Ltd. (Part of Springer Science+Business Media). p. 5. ISBN 978-81-322-2040-4.
- ^ Collins, Ian (July 2018). "Phase-Locked Loop (PLL) Fundamentals". Analog Dialogue. 52. Archived from the original on 2018-07-14.
- ^ Basab Bijoy Purkayastha; Kandarpa Kumar Sarma (2015). A Digital Phase Locked Loop based Signal and Symbol Recovery System for Wireless Channel. India: Springer (India) Pvt. Ltd. (Part of Springer Scinece+Business Media). p. 94. ISBN 978-81-322-2040-4.
- ^ Dartizio, Simone M.; Tesolin, Francesco; Castoro, Giacomo; Buccoleri, Francesco; Rossoni, Michele; Cherniak, Dmytro; Samori, Carlo; Lacaita, Andrea L.; Levantino, Salvatore (December 2023). "A Low-Spur and Low-Jitter Fractional- N Digital PLL Based on an Inverse-Constant-Slope DTC and FCW Subtractive Dithering". IEEE Journal of Solid-State Circuits. 58 (12): 3320–3337. Bibcode:2023IJSSC..58.3320D. doi:10.1109/JSSC.2023.3311681. hdl:11311/1259046. ISSN 0018-9200.
- ^ Razavi, Behzad (Fall 2019). "The Ring Oscillator [A Circuit for All Seasons]". IEEE Solid-State Circuits Magazine. 11 (4): 10–81. doi:10.1109/MSSC.2019.2939771. ISSN 1943-0582.
- ^ G. A. Leonov, N. V. Kuznetsov, M. V. Yuldashev, R. V. Yuldashev; Kuznetsov; Yuldashev; Yuldashev (2012). "Analytical method for computation of phase-detector characteristic" (PDF). IEEE Transactions on Circuits and Systems II: Express Briefs. 59 (10): 633–637. doi:10.1109/TCSII.2012.2213362. S2CID 2405056. Archived (PDF) from the original on 2022-10-09.
{{cite journal}}: CS1 maint: multiple names: authors list (link) - ^ N.V. Kuznetsov, G.A. Leonov, M.V. Yuldashev, R.V. Yuldashev; Leonov; Yuldashev; Yuldashev (2011). "Analytical methods for computation of phase-detector characteristics and PLL design". ISSCS 2011 - International Symposium on Signals, Circuits and Systems. pp. 7–10. doi:10.1109/ISSCS.2011.5978639. ISBN 978-1-61284-944-7. S2CID 30208667.
{{cite book}}: CS1 maint: multiple names: authors list (link) - ^ A. J. Viterbi, Principles of Coherent Communication, McGraw-Hill, New York, 1966
Further reading
[edit]- Banerjee, Dean (2006), PLL Performance, Simulation and Design Handbook (4th ed.), National Semiconductor, archived from the original on 2012-09-02, retrieved 2012-12-04.
- Best, R. E. (2003), Phase-locked Loops: Design, Simulation and Applications, McGraw-Hill, ISBN 0-07-141201-8
- de Bellescize, Henri (June 1932), "La réception Synchrone", L'Onde Electrique, 11: 230–240
- Dorf, Richard C. (1993), The Electrical Engineering Handbook, Boca Raton: CRC Press, Bibcode:1993eeh..book.....D, ISBN 0-8493-0185-8
- Egan, William F. (1998), Phase-Lock Basics, John Wiley & Sons. (provides useful Matlab scripts for simulation)
- Egan, William F. (2000), Frequency Synthesis by Phase Lock (2nd ed.), John Wiley and Sons. (provides useful Matlab scripts for simulation)
- Gardner, Floyd M. (2005), Phaselock Techniques (3rd ed.), Wiley-Interscience, ISBN 978-0-471-43063-6
- Klapper, J.; Frankle, J. T. (1972), Phase-Locked and Frequency-Feedback Systems, Academic Press. (FM Demodulation)
- Kundert, Ken (August 2006), Predicting the Phase Noise and Jitter of PLL-Based Frequency Synthesizers (PDF) (4g ed.), Designer's Guide Consulting, Inc.
- Liu, Mingliang (February 21, 2006), Build a 1.5-V 2.4-GHz CMOS PLL, Wireless Net Design Line, archived from the original on July 1, 2010. An article on designing a standard PLL IC for Bluetooth applications.
- Wolaver, Dan H. (1991), Phase-Locked Loop Circuit Design, Prentice Hall, ISBN 0-13-662743-9
External links
[edit]- Phase locked loop primer – Includes embedded video
- Excel Unusual hosts an animated PLL model and the tutorials to code such a model.
Phase-locked loop
View on GrokipediaOverview and Basics
Definition and Principle
A phase-locked loop (PLL) is a closed-loop feedback control system that generates an output signal whose phase is related to the phase of an input reference signal.[8] It functions as a nonlinear feedback mechanism to synchronize both the phase and frequency of a locally generated signal with an external reference, commonly used in applications requiring precise timing or frequency control.[9] The basic principle relies on continuous comparison between the input reference signal and a feedback signal from the output oscillator via a phase detector, which generates an error voltage proportional to their phase difference. This error is processed through a loop filter to control the oscillator's frequency, iteratively adjusting it until the phases align and the system achieves synchronization, or "lock."[9] The phase error is mathematically expressed as , where represents the instantaneous phase of the input signal and the phase of the output signal.[10] The PLL operates in distinct states relative to synchronization: in the free-running (unlocked) state, the oscillator runs at its inherent frequency independent of the input; upon locking, it transitions to a tracking state where the output faithfully follows input phase variations.[11] The hold-in range defines the maximum input frequency deviation over which the PLL can statically maintain this locked tracking without losing synchronization, determined by the loop's gain characteristics.[12] In contrast, the pull-in range is the range of frequency offsets from the unlocked state within which the PLL can dynamically acquire lock, typically narrower than the hold-in range, often involving transient behaviors like beat-frequency pulling.[12]Simple Analogy
Imagine two people trying to clap in unison at a steady rhythm. One person establishes the reference rhythm by clapping at a consistent pace, representing the input signal in a phase-locked loop. The other person, starting with their own slightly different timing akin to an uncontrolled oscillator, listens carefully to the claps and adjusts their speed—speeding up if they hear they are lagging behind or slowing down if they are ahead—to align their claps with the leader's. This listening and adjustment process mirrors the phase detector's role in detecting timing differences and providing feedback to fine-tune the output. Initially, the second person's claps may fall out of sync, creating noticeable mismatches or phase errors that become evident through the echoes or overlaps in sound. As they repeatedly sense these discrepancies and incrementally modify their rhythm based on the feedback, the errors diminish gradually. Over successive cycles, the adjustments lead to perfect synchronization, where both sets of claps occur simultaneously without any perceptible delay. This everyday scenario illustrates the core principle of phase alignment in a phase-locked loop, where continuous feedback ensures the output stays locked to the reference. It emphasizes the system's inherent stability, its ability to track variations in the reference rhythm, and its mechanism for error correction, all without requiring perfect initial alignment.[2]Historical Development
Invention and Early Applications
The phase-locked loop (PLL) was invented by French engineer Henri de Bellescize in 1932, who described the concept in his publication "La réception synchrone" in the journal L'Onde Électrique.[13] De Bellescize's work focused on radio frequency applications, particularly for achieving synchronous reception in radio receivers by controlling the phase of a local oscillator relative to an incoming signal.[14] De Bellescize filed a French patent on 6 October 1931 (issued as FR 635,451 on 29 September 1932), which detailed the use of a PLL for frequency modulation (FM) demodulation through phase synchronization between a heterodyne oscillator and the received signal using a beat-frequency detector. This patent, later granted in the United States as US 1,990,428 in 1935, outlined the basic feedback mechanism to lock the oscillator's phase, enabling precise demodulation without traditional discriminator circuits. Following World War II, PLL technology gained practical adoption in the 1950s for synchronization in early television systems and radio receivers. In television, PLLs were employed to align horizontal and vertical sweep oscillators with incoming sync pulses, improving picture stability in analog sets; for instance, they facilitated color subcarrier recovery in NTSC broadcasts as described by researchers like Donald Richman in 1954.[15] In radio receivers, PLLs enhanced FM demodulation performance by providing robust phase tracking amid noise, marking a shift from theoretical to commercial analog implementations.[16] Key contributions to early analog PLL designs came from engineers like Floyd M. Gardner, whose work in the 1950s and 1960s on loop stability and noise reduction laid foundational principles for practical circuits, as later compiled in his seminal 1966 book Phaselock Techniques.[17]Key Milestones and Evolution
In the 1960s, the phase-locked loop transitioned from discrete component implementations to integrated circuits, enabling broader accessibility and cost-effectiveness for consumer applications. Signetics pioneered this shift by introducing the NE565, a monolithic bipolar PLL integrated circuit in 1969, which integrated the phase detector, amplifier, and voltage-controlled oscillator on a single chip, facilitating its use in early consumer electronics such as FM demodulators and tone decoders.[18] The 1970s and 1980s saw PLLs achieve widespread adoption in everyday technologies, driven by their reliability in synchronization tasks. They became integral to FM radios for stereo decoding and signal recovery, color televisions for horizontal and vertical synchronization to maintain image stability, and early computers for clock generation and data recovery. Concurrently, the development of charge-pump PLLs addressed limitations in traditional analog designs by using a charge pump to generate a more linear control voltage, improving phase detector performance and reducing reference spurs; this architecture, analyzed in detail by Floyd M. Gardner in 1980, gained prominence in the 1980s for high-frequency synthesis in communication systems.[19] From the 1990s to the 2000s, the evolution accelerated with the emergence of all-digital PLLs (ADPLLs), which replaced analog components with digital signal processing (DSP) elements like time-to-digital converters and digitally controlled oscillators, enhancing scalability and integration in system-on-chips. This shift was particularly impactful for mobile communications, where ADPLLs enabled compact, low-power frequency synthesis for standards like GSM and Bluetooth; a seminal implementation by Texas Instruments in 2004 demonstrated an ADPLL achieving 130-nm CMOS integration with discrete-time processing for wireless transceivers, supporting multi-standard operation.[20] In the 2010s and 2020s, focus turned to low-power and high-efficiency designs to meet demands of emerging technologies like 5G networks, Internet of Things (IoT) devices, and software-defined radios, where PLLs must operate under stringent power budgets while maintaining jitter performance. Advances included optimized fractional-N synthesis, which employs sigma-delta modulators to achieve sub-Hz frequency resolution by dithering the divider ratio, allowing finer control without sacrificing loop bandwidth; this technique, refined in modern low-power contexts, enabled PLLs consuming under 10 mW for 5G sub-6 GHz bands. For instance, a 2019 Tokyo Institute of Technology design demonstrated an ultra-low-power fractional-N PLL for IoT, reducing consumption to microwatts while supporting multi-band operation.[21][22] Post-2020 research has extended PLL principles into quantum regimes for ultra-precise atomic clocks, leveraging quantum entanglement to surpass the standard quantum limit in phase locking. These quantum-enhanced PLLs lock interrogation lasers to atomic transitions using squeezed states or entangled ensembles, improving frequency stability by factors of up to 10; JILA's 2025 demonstration of entanglement-based locking in optical clocks achieved sub-attosecond precision, paving the way for applications in fundamental physics and navigation.[23]Core Components
Phase Detector
The phase detector (PD) in a phase-locked loop (PLL) serves as the primary component responsible for comparing the phase of the input reference signal with that of the feedback signal from the voltage-controlled oscillator, generating an output error voltage proportional to their phase difference to drive the loop toward synchronization. This error signal, denoted as , can be expressed mathematically as , where is the phase detector gain (in volts per radian), is the phase of the input signal, is the phase of the output signal, and is the frequency divider ratio in the feedback path. The gain quantifies the sensitivity of the PD to phase variations and is crucial for determining the overall loop dynamics. Phase detectors are categorized into several types based on their implementation and signal handling. Analog multipliers, often using four-quadrant designs, perform phase comparison by multiplying the input and feedback signals, producing a low-frequency output component proportional to the cosine of the phase difference; these are suitable for sinusoidal signals in linear PLLs.[24] In digital contexts, exclusive-OR (XOR) gates serve as simple phase detectors for square-wave signals, yielding an output pulse width proportional to the phase error within a limited range of , beyond which the response becomes nonlinear.[9] More advanced phase-frequency detectors (PFDs) incorporate frequency detection capability alongside phase comparison, employing tri-state logic to output high, low, or high-impedance states based on the relative timing of rising edges from the input and feedback signals, enabling wider capture ranges in integer-N PLLs.[25] Key characteristics of phase detectors influence PLL performance, including the linear operating range, dead zone, and high-frequency limitations. The linear range defines the phase error span over which the output is directly proportional to the input difference; for example, analog multipliers exhibit a full range but with sinusoidal nonlinearity, while conventional PFDs approach linearity, though mismatches can reduce this.[25] A dead zone occurs in PFDs as a narrow region (typically on the order of picoseconds wide) around zero phase error where output pulses are absent due to timing delays or reset mechanisms, leading to increased jitter and potential locking instability.[26] High-frequency limitations arise from propagation delays in digital logic and aperture uncertainties, constraining PFD operation to below several GHz in standard CMOS implementations and introducing phase errors at elevated speeds.[27] To address these issues, modern edge-triggered PFD designs, such as double-edge-triggered variants, utilize both rising and falling edges for detection to minimize dead zones and jitter; for instance, a 0.35-μm CMOS implementation achieves a 15 ps dead zone and operates up to 1.5 GHz with reduced phase errors compared to single-edge designs.[28] These advancements enhance PLL suitability for high-speed applications like clock generation in communications systems.[28]Loop Filter
The loop filter in a phase-locked loop (PLL) serves as a low-pass filter that processes the phase error signal from the phase detector, generating a smoothed control voltage to adjust the voltage-controlled oscillator (VCO). By attenuating high-frequency components, it suppresses noise and spurious signals while allowing low-frequency variations to pass through, thereby stabilizing the loop's frequency and phase tracking. This filtering action is essential for maintaining loop integrity against reference signal jitter and environmental disturbances.[2] Loop filters are categorized into passive, active, and digital types, each suited to different PLL implementations. Passive filters, typically consisting of resistors and capacitors (RC networks), provide a simple, cost-effective solution without requiring power supplies, but they offer limited gain and may introduce loading effects on the phase detector. Active filters incorporate operational amplifiers to achieve higher gain, better impedance control, and more precise shaping of the frequency response, making them ideal for applications demanding low noise and fast settling. In digital PLLs, loop filters are realized as infinite impulse response (IIR) or finite impulse response (FIR) structures in software or hardware, enabling programmable characteristics and adaptability in software-defined radios or DSP-based systems.[5][29] A basic first-order passive loop filter has the transfer function , where is the time constant determined by the RC product, providing a single pole for noise attenuation but limited stability in higher-order loops.[30] Design considerations for the loop filter center on selecting the bandwidth to balance stability and response speed: a narrower bandwidth enhances phase noise suppression and reduces output jitter but prolongs lock acquisition time, while a wider bandwidth accelerates locking at the cost of increased sensitivity to high-frequency noise. Second-order filters, often formed by adding a zero via an additional RC branch, introduce damping to prevent oscillations and improve transient response; the damping factor is tuned (typically 0.7 for critical damping) to optimize settling time without overshoot.[2][29] The loop filter's characteristics directly influence overall PLL performance, determining lock time through its bandwidth and pole placement—first-order filters yield exponential settling with time constant , while second-order designs can achieve faster acquisition via underdamped responses. Additionally, it governs phase noise suppression by shaping the loop's closed-loop transfer function, where effective filtering at offsets beyond the loop bandwidth minimizes VCO phase error contributions to the output spectrum. In high-performance applications like wireless transceivers, careful filter design can reduce integrated phase noise by orders of magnitude, ensuring compliance with spectral masks.[31][32]Voltage-Controlled Oscillator
The voltage-controlled oscillator (VCO) serves as the tunable frequency source in a phase-locked loop (PLL), generating an output signal—typically sinusoidal for analog applications or square-wave for digital ones—whose frequency is modulated by a control voltage derived from the loop filter. This component enables the PLL to synchronize its output to a reference signal by adjusting the oscillation frequency in response to phase errors, forming the core of the feedback mechanism. The fundamental operation of the VCO is described by the linear model relating its output angular frequency to the input control voltage: where denotes the free-running angular frequency (with zero control voltage), and is the VCO gain or sensitivity, quantified in radians per second per volt (rad/s/V). This equation approximates the VCO behavior near the operating point, assuming small-signal linearity.[33] Essential characteristics of a VCO include its tuning range, typically expressed as the fractional bandwidth ((f_max - f_min)/f_center × 100%; often 10–20% for RF designs), which determines the PLL's capture and lock capabilities, and the phase noise spectrum, which measures the power spectral density of random fluctuations around the carrier frequency, critical for signal integrity in communication systems. The sensitivity influences loop dynamics, with typical values ranging from 100 MHz/V to several GHz/V in integrated circuits, balancing trade-offs between bandwidth and stability. VCO implementations vary by performance requirements and integration level. LC-tank oscillators, employing inductors, capacitors, and voltage-variable capacitors (varactors) for tuning, excel in low phase noise and high-frequency operation up to tens of GHz, making them standard in RF synthesizers. Ring oscillators, constructed from delay stages in CMOS logic gates, offer compact integration and broad tuning ranges (up to 100% or more) but suffer from higher phase noise, suitable for clock generation in processors. Crystal-stabilized VCOs, which use a quartz resonator for the tank circuit with auxiliary varactor tuning, provide exceptional long-term stability and low noise for precision applications like atomic clocks. Design challenges for VCOs encompass nonlinearity in the - transfer function, which introduces distortion and can degrade PLL linearity, often mitigated by predistortion or wide-linear-range varactors. Temperature sensitivity affects both and , with drifts up to several ppm/°C requiring compensation via on-chip thermistors or stable materials like silicon-on-insulator. In contemporary GHz-range implementations, such as those in 5G transceivers, LC-VCOs in advanced nodes (e.g., 28 nm CMOS or SiGe) address these issues through careful electromagnetic modeling to minimize parasitics and achieve phase noise below -120 dBc/Hz at 1 MHz offset.Operational Principles
Locking Mechanism
The locking mechanism of a phase-locked loop (PLL) unfolds through distinct stages that enable the system to achieve and maintain phase synchronization between an input signal and the output of a voltage-controlled oscillator (VCO). Initially, the PLL operates in the free-running stage, where the VCO generates a signal at its nominal center frequency, unaffected by the input, as the loop is open or the input is absent.[1] Upon application of the input signal, the system transitions to the acquisition stage, also known as pull-in, during which the phase detector identifies the phase error between the input and VCO output, prompting frequency adjustments via the loop filter to bring the VCO closer to the input frequency.[34] If the initial frequency offset exceeds the capture range, the pull-in process involves cycle slipping, where the phase error advances or retards by multiples of radians per cycle, effectively allowing the PLL to "catch up" through repeated slips rather than continuous adjustment.[35] This slipping manifests dynamically as a beat frequency—the difference between the input and VCO frequencies—causing the phase error to oscillate periodically until the frequencies align sufficiently for capture.[36] The capture stage follows, where the frequency difference falls within the lock range (typically denoted as lock range, with as the phase error), enabling the PLL to lock without further slips and reduce the error to near zero.[2] Once locked, the PLL enters the tracking stage, continuously monitoring and correcting minor phase drifts to sustain synchronization, with the VCO output phase fixed relative to the input.[36] Qualitatively, the phase error trajectory begins with large, sawtooth-like excursions at the beat frequency during pull-in, gradually damping as frequencies converge, followed by a smooth convergence to a steady-state value near zero during capture and tracking, with the overall settling time representing the duration from input application to stable lock.[35] The loop bandwidth plays a critical role, as a wider bandwidth accelerates acquisition and reduces settling time but may compromise stability by amplifying noise, while a narrower bandwidth enhances stability at the cost of slower locking.[9]Feedback Path and Divider
The feedback path in a phase-locked loop (PLL) serves to close the control loop by directing the output signal from the voltage-controlled oscillator (VCO) back to the phase detector, where it is compared against the reference signal to generate a corrective error signal. This path often incorporates a frequency divider to reduce the high VCO output frequency to a level comparable to the reference frequency, allowing the PLL to achieve lock at subharmonics of the VCO frequency and enabling precise frequency control.[5] The divider's primary role is to scale the VCO signal, facilitating synchronization and frequency adjustment within the loop.[4] In integer-N configurations, the feedback divider employs a fixed integer division ratio , producing a feedback frequency , where is the VCO output frequency. Upon locking, this relationship ensures , where is the reference frequency, thereby achieving frequency multiplication by integer multiples of the reference.[5] In the phase domain, the feedback phase is given by , where is the VCO output phase, which aligns the divided feedback phase with the reference phase through loop dynamics.[37] This setup benefits frequency synthesis by generating stable outputs at harmonics of the reference, though it restricts resolution to steps of .[38] Fractional-N dividers extend this capability by realizing an effective non-integer division ratio through time-varying integer divisions, often controlled by a digital modulator to achieve fine frequency steps smaller than .[39] Dithering techniques in these dividers randomize the division sequence to approximate fractional ratios, enabling output frequencies like , where .[5] A key benefit is enhanced frequency resolution for synthesis applications, allowing agile tuning without requiring a very low .[38] However, fractional-N operation can generate spurious spectral tones (spurs) from the periodic division pattern, which degrade spectral purity.[39] To mitigate spurs and noise, modern fractional-N PLLs integrate sigma-delta modulators, which shape quantization noise to higher frequencies beyond the loop bandwidth, where the loop filter can attenuate it effectively.[5] Despite these advances, a notable drawback of feedback dividers is noise amplification: phase noise from the divider or VCO is injected into the loop, and high division ratios can exacerbate in-band noise, potentially limiting the PLL's overall phase noise performance to levels around -100 dBc/Hz at 100 kHz offset in practical implementations.[37] The feedback path briefly interfaces with the phase detector by supplying the divided signal for direct phase comparison, ensuring error detection accuracy.[4]Modeling Approaches
Time-Domain Model
The time-domain model of a phase-locked loop (PLL) treats the system as a nonlinear dynamical process, emphasizing the evolution of the output phase over time during transients such as acquisition or disturbance recovery. The core governing equation is the first-order nonlinear differential equation for the instantaneous output phase : where is the VCO's free-running angular frequency, is the VCO sensitivity (in rad/s per volt), and denotes the nonlinear characteristic function of the phase detector, often piecewise or periodic with period . This formulation arises from integrating the VCO's frequency response with the feedback error signal processed through the loop filter, capturing the full nonlinear behavior without small-signal assumptions.[40] Transient analysis in the time domain relies heavily on numerical simulations to solve this differential equation, as analytical solutions are generally intractable due to the nonlinearity of . Tools such as SPICE enable circuit-level simulations of analog PLLs, modeling components like the VCO and phase detector with their actual nonlinearities, while MATLAB or Simulink facilitates higher-level behavioral simulations by discretizing the equation via methods like Runge-Kutta integration. A typical simulation scenario involves applying a step change to the input frequency , observing the output frequency as it ramps, overshoots, and settles, which reveals the loop's acquisition time and stability margins.[4] Key nonlinear phenomena emerge prominently in time-domain simulations. Cycle slipping occurs when the phase error exceeds radians persistently, causing the output to "slip" by full cycles (multiples of ) before relocking, which prolongs acquisition for large frequency offsets. In the locked state, limit cycles—small-amplitude periodic oscillations in —can arise, particularly in type-I loops or with quantizing phase detectors, leading to residual phase jitter even without external noise. These effects are exacerbated in higher-order loops where the filter introduces additional states, making simulations essential for predicting pull-in range and false locking risks. As an illustrative example, consider a second-order PLL subjected to an input frequency jump of . Time-domain simulation shows the output frequency initially following the VCO's slew rate limit, then overshooting by up to 20% beyond the target before damping out over 10-50 loop bandwidth cycles, with cycle slips manifesting as 1-2 full phase wraps if the jump exceeds the hold-in range. Such responses highlight the trade-offs in loop filter design for minimizing settling time while avoiding instability.Phase-Domain Model
The phase-domain model represents the phase-locked loop (PLL) as a nonlinear feedback system where the state variable is the phase error ε between the input reference signal and the feedback signal from the voltage-controlled oscillator (VCO). This approach treats frequency as the time derivative of phase, enabling analysis of synchronization dynamics without considering signal amplitudes, which are assumed constant. The model is especially suited for investigating steady-state locking conditions and the effects of frequency detuning in continuous-time systems with a sinusoidal phase detector, such as those using analog multipliers.[41] The governing equation for the phase error dynamics in a basic first-order PLL with a sinusoidal phase detector is derived from the phase detector output, loop filter integration, and VCO response. For a system with feedback divider ratio N, the differential equation is where Δω denotes the initial frequency detuning between the reference and VCO free-running frequency, and K is the overall loop gain (K = K_PD × K_F × K_VCO, with K_PD the phase detector gain in V/rad, K_F the filter DC gain, and K_VCO the VCO sensitivity in rad/s/V). This equation captures the nonlinear coupling introduced by the sinusoidal characteristic of the phase detector, which outputs a signal proportional to sin(ε) for inputs near quadrature.[41] In steady-state, the PLL achieves lock when the phase error is constant, so dε/dt = 0, yielding sin(ε_ss) = (N Δω)/K. The static phase error ε_ss thus satisfies ε_ss = arcsin[(N Δω)/K], provided |(N Δω)/K| ≤ 1; otherwise, the loop cannot lock without additional mechanisms like frequency acquisition aids. This nonzero ε_ss compensates for detuning in type-I loops, highlighting the trade-off between tracking accuracy and loop bandwidth. The model assumes small-signal approximations for higher harmonics are negligible and operates in continuous time, without discretization effects.[41] As an illustrative example, for a PLL with K = 2π × 10 rad/s, N = 10, and Δω = 2π × 0.5 rad/s, the steady-state phase error is ε_ss = arcsin(0.5) ≈ π/6 rad (30°). This error shifts the VCO control voltage to adjust its frequency by Δω, maintaining synchronization despite the detuning. Such calculations aid in designing loop gain for desired lock range and phase accuracy in applications like frequency synthesis.[41]Linearized Approximation
The linearized approximation simplifies the analysis of the phase-locked loop (PLL) by assuming small phase errors between the input reference and the divided output signals, enabling the application of classical linear control theory. This model is particularly useful for evaluating stability, transient response, and frequency-domain characteristics under locked or near-locked conditions. The approximation holds when the phase error ε satisfies |ε| ≪ π/2 radians, transforming the inherently nonlinear PLL into a linear time-invariant system.[3] Derivation begins with the base phase-domain model, where the phase detector characteristic is typically nonlinear, such as K_d \sin(\varepsilon) for a sinusoidal multiplier detector, with ε = \phi_{in} - \phi_{out}/N representing the phase difference (N is the frequency divider ratio in the feedback path). For small ε, the small-angle approximation \sin(\varepsilon) \approx \varepsilon is applied, linearizing the detector gain to K_d (in V/rad or A/rad). The loop filter transfer function is F(s), and the voltage-controlled oscillator (VCO) integrates the control voltage to produce phase via K_v / s (where K_v is the VCO gain in rad/s/V). The resulting open-loop transfer function is then G(s) = \frac{K_d K_v F(s)}{N s}, with overall loop gain K = K_d K_v / N. Closing the loop yields the phase transfer function from input to output.[17][3] For a common second-order configuration using an active or passive loop filter F(s) = \frac{1 + \tau_2 s}{\tau_1 s} (a type-II system providing zero steady-state phase error to frequency steps), the closed-loop transfer function simplifies to the standard second-order form: where \omega_n = \sqrt{\frac{K}{\tau_1}} is the natural frequency (in rad/s), and \zeta = \frac{\omega_n \tau_2}{2} is the damping factor. These parameters determine the system's oscillatory behavior: \zeta > 1 yields overdamped response (slow but stable), \zeta = 0.707 provides critical damping for optimal settling, and \zeta < 1 introduces underdamped ringing.[17][29] This linear model facilitates frequency-domain analysis via Bode plots of the open-loop gain G(j\omega), revealing gain and phase margins for stability assessment—typically targeting 45–60° phase margin to avoid oscillations. The loop bandwidth \omega_L, defined as the -3 dB point of |H(j\omega)|, approximates \omega_L \approx K / N for low-order systems and establishes the PLL's noise filtering and tracking speed; narrower bandwidth reduces reference noise ingress but slows acquisition. In practice, lock time (time to achieve phase error within 1 radian) is estimated as approximately 4 / \omega_L, guiding filter design for applications requiring fast synchronization.[17][29]Variations and Types
Analog PLLs
Analog phase-locked loops (PLLs) are traditionally implemented using continuous-time analog components, either in discrete form or as integrated circuits (ICs), forming a feedback system that synchronizes an output signal to a reference input. The core design includes an analog multiplier serving as the phase detector (PD), which generates a DC voltage proportional to the sine of the phase difference between the reference and feedback signals; an RC low-pass filter acting as the loop filter to smooth the PD output and control loop dynamics; and a voltage-controlled oscillator (VCO) typically tuned with varactors to adjust its output frequency in response to the filtered control voltage.[42][4] These components enable the PLL to track frequency and phase variations, with the multiplier PD often realized using Gilbert cells or diode-based mixers for high linearity.[5] A key advantage of analog PLLs lies in their simplicity and low cost, making them suitable for applications in the low to medium frequency ranges, such as up to several hundred MHz. For instance, the NE565 (or LM565) IC exemplifies an early monolithic analog PLL, integrating the PD, VCO, and amplifier on a single chip, operable from 0.001 Hz to 500 kHz with a supply voltage of ±5 to ±12 V, and offering stable center frequency performance for FM demodulation and synchronization tasks.[43][44] Modern analog ICs extend this to GHz ranges, such as 30 GHz output frequencies in synthesizer applications, while maintaining compact footprints compared to fully custom discrete builds.[38] However, analog PLLs suffer from limitations inherent to their continuous-time nature, including poor noise immunity where reference phase noise is multiplied and amplified through the loop, leading to degraded output jitter. Component drift due to temperature variations (e.g., -40°C to 125°C) and aging can cause the center frequency to shift by 5-10%, necessitating compensation techniques, while manufacturing tolerances further exacerbate stability issues.[45][37] Additionally, their maximum operating frequency is practically limited to around several GHz due to parasitics in analog components and VCO tuning challenges.[46][2] Tuning the free-running frequency of the VCO in analog PLLs is typically achieved manually via external resistors and capacitors to set the nominal oscillation point or through varactor diodes biased by a control voltage for fine adjustment; automatic tuning can employ acquisition aids like sweep generators to align the VCO range with the input signal during initial lock.[31][47] This contrasts briefly with digital PLLs, which provide greater precision through programmable elements but at higher complexity.[48]Digital and Software PLLs
Digital phase-locked loops (DPLLs) integrate digital components for phase detection, filtering, and oscillation, enabling precise synchronization in discrete-time domains and seamless integration with digital circuits. A standard DPLL employs a digital phase detector to compute phase errors from sampled signals, a digital loop filter—often a proportional-integral-derivative (PID) structure—to generate control signals, and a numerically controlled oscillator (NCO) to produce the phase-aligned output waveform. This architecture supports applications requiring programmable bandwidth and robustness to environmental variations.[49][37] All-digital phase-locked loops (ADPLLs) extend this by replacing any residual analog elements with fully digital blocks, using a time-to-digital converter (TDC) for high-resolution phase detection. The TDC measures the fine time difference between reference and feedback clock edges, quantizing it into digital bits that feed into a digital filter controlling a digitally controlled oscillator (DCO). This design excels in scaled CMOS technologies, offering reduced sensitivity to process, voltage, and temperature (PVT) variations compared to mixed-signal counterparts.[50][51] Software PLLs realize these functions through algorithmic execution on digital signal processors (DSPs) or firmware, providing cost-effective alternatives for non-real-time or embedded synchronization tasks. Phase detection in software implementations commonly utilizes the arctangent function to derive the error from in-phase and quadrature signal components, yielding an estimate of the phase misalignment. This error is then refined by a PID filter, which computes corrective adjustments to the NCO parameters for loop stability and tracking.[49][52] The NCO, central to both hardware and software DPLLs, operates as a phase accumulator for generating sinusoidal outputs at controlled frequencies. A basic update rule in pseudocode form is:θ_out[n] = (θ_out[n-1] + ω_out * T_s) mod 2π
θ_out[n] = (θ_out[n-1] + ω_out * T_s) mod 2π
Performance Characteristics
Key Parameters
The loop gain of a phase-locked loop (PLL) is a fundamental parameter that quantifies the overall gain in the feedback path, defined as , where is the phase detector gain (typically in volts per radian or amperes per radian), is the voltage-controlled oscillator (VCO) gain (in radians per second per volt), and is the feedback divider ratio (unitless).[56] This parameter determines the tracking capability and stability of the loop, with higher values enabling faster synchronization but potentially reducing phase margin if not properly compensated.[9] The lock range , also known as the hold-in or tracking range, represents the maximum frequency offset from the reference over which the PLL can maintain phase lock once acquired, approximated as for high-gain linear models.[9] In contrast, the capture range , or pull-in range, is the frequency interval around the VCO center frequency within which the PLL can initially acquire lock from an unlocked state, often narrower than the lock range and dependent on the loop filter characteristics and phase detector type.[9] These ranges are extracted from nonlinear simulations or empirical measurements, as exact values require solving the PLL's differential equations beyond linear approximations.[57] The closed-loop bandwidth characterizes the frequency response of the PLL, influencing both the settling time and noise rejection; it is typically defined as the -3 dB point of the magnitude of the closed-loop transfer function , where for a second-order system, with natural frequency and damping factor .[30] A wider bandwidth reduces response time but increases sensitivity to high-frequency noise, while a narrower bandwidth enhances filtering at the cost of slower acquisition.[2] Static and dynamic performance metrics include phase margin and settling time. Phase margin , a measure of stability, is the difference between -180° and the phase of the open-loop transfer function at the unity-gain crossover frequency , where ; values around 45° to 60° ensure adequate damping without excessive overshoot.[58] Settling time , the duration for the output phase error to remain within a specified tolerance (e.g., 1%) of the final value after a step input, is derived from the inverse Laplace transform of the closed-loop step response and approximates for second-order systems with 2% criterion.[3] These figures of merit are obtained via Bode or Nyquist analysis of the transfer functions, often using tools like ADIsimPLL for simulation-based extraction.[2]Jitter and Noise Analysis
Phase noise in phase-locked loops (PLLs) arises from random fluctuations in the signal's phase, primarily due to thermal, flicker, and shot noise in circuit components, leading to timing uncertainties in the output waveform. Jitter, the time-domain equivalent, quantifies deviations in edge timings and is directly related to phase noise through the carrier frequency. Key noise sources include the reference clock's inherent phase noise, the voltage-controlled oscillator (VCO) phase noise from its active devices and tank circuit, and spurs from frequency dividers caused by periodic charge injection and switching transients. Phase detector noise, often modeled as additive white noise, and loop filter thermal noise also contribute, though typically at lower levels in well-designed systems.[59] The phase noise spectrum , expressed in rad²/Hz, describes the power density of phase fluctuations at offset frequency from the carrier; it typically exhibits a 1/f³ region near the carrier due to flicker noise, transitioning to a flat white noise floor at higher offsets. The root-mean-square (RMS) phase jitter integrates this spectrum over a bandwidth of interest, such as from 10 Hz to the loop bandwidth or Nyquist frequency: Time-domain RMS jitter follows as , where is the output frequency; values below 1 ps are common targets for high-speed applications. For assessing long-term stability against drifting noise processes like random walk, the Allan variance is used, defined as the mean-square difference in fractional frequency averages over adjacent intervals of length , providing a metric less sensitive to short-term flicker than simple variance.[60][61] Noise propagation in PLLs is governed by linear transfer functions in the phase domain. Reference noise transfers through a low-pass filter with near-unity gain within the loop bandwidth (in-band) and high-frequency roll-off (e.g., -20 dB/decade for a first-order loop), allowing close tracking of low-frequency reference fluctuations. Conversely, VCO noise experiences a complementary high-pass transfer function, with strong attenuation in-band (suppressing VCO instabilities) and unity gain out-of-band, where it dominates the output spectrum. Divider noise, often cyclostationary, injects at multiples of the division ratio and is shaped similarly to VCO noise. Optimal jitter minimization balances these via loop bandwidth selection: wider bandwidths (>1 MHz typical) reduce VCO and divider contributions but pass more reference noise, while narrower bandwidths filter reference spurs at the cost of higher VCO impact.[62][63] Recent PLL designs for AI accelerators emphasize sub-100 fs RMS jitter to support terabit-per-second interconnects and low-latency processing. For instance, a 2024 multireference PLL architecture mitigates reference noise limitations, achieving 16.1 fs RMS integrated jitter in 65-nm CMOS, enabling reliable clocking in high-performance computing environments.[64]Applications
Frequency Synthesis and Clock Generation
Phase-locked loops (PLLs) are widely employed in frequency synthesis to generate stable output frequencies that are precise multiples of a stable reference frequency, enabling the creation of programmable oscillators for various electronic systems. In the integer-N configuration, the PLL achieves this through a feedback loop where a programmable integer divider divides the voltage-controlled oscillator (VCO) output frequency by an integer value N, locking the VCO such that the divided signal matches the phase and frequency of the reference signal f_ref. Consequently, the output frequency is exactly f_out = N × f_ref, allowing synthesis in steps equal to f_ref but limiting resolution to relatively coarse increments unless f_ref is reduced, which narrows the loop bandwidth and worsens phase noise performance.[5] This approach is straightforward and effective for applications requiring high output frequencies with minimal spurs, such as basic clock multiplication.[2] To overcome the resolution limitations of integer-N PLLs, fractional-N architectures introduce non-integer division ratios by dynamically varying the divider modulus between adjacent integers, typically N and N+1, under control of a digital modulator. The average division ratio becomes N + α, where 0 ≤ α < 1 is the fractional component determined by the modulator, yielding f_out = (N + α) × f_ref with finer frequency steps approaching f_ref / 2^M for an M-bit modulator. This enables wider loop bandwidths for better reference noise rejection while maintaining low in-band phase noise, as the quantization noise from modulus switching is shaped away from the band of interest.[5] A key enabler is the delta-sigma (ΔΣ) modulator, which generates a high-frequency bitstream that averages to α, pushing quantization errors to higher frequencies via noise shaping, where the PLL's low-pass loop filter attenuates them effectively.[39] Fractional-N PLLs face challenges from spurious tones (spurs) generated by deterministic patterns in the ΔΣ modulator output, which manifest as discrete spectral lines at offsets related to the modulation rate and can compromise signal integrity in sensitive applications. These spurs arise primarily from the periodic nature of low-order modulators and nonlinearities in the loop components, such as charge pump mismatches. Higher-order ΔΣ modulators (e.g., second- or third-order) and techniques like dithering address this by randomizing the bitstream, spreading spur energy into broadband noise that is subsequently filtered, achieving spur suppression below -70 dBc in many designs while preserving the noise-shaping benefits.[65] For example, multi-stage noise-shaping (MASH) architectures cascade modulators to enhance shaping order without stability issues, significantly reducing in-band artifacts.[65] A prominent application of PLL-based frequency synthesis is in CPU clock generation, where a low-frequency external reference, such as 100 MHz, is multiplied to GHz-range internal clocks to drive high-performance cores while ensuring timing alignment. For instance, a 36× multiplication factor on a 100 MHz reference produces a 3.6 GHz clock, supporting rapid data processing with low jitter critical for pipeline efficiency.[66] In contemporary system-on-chip (SoC) designs, multi-output PLLs extend this capability by deriving multiple synchronized clocks from a single reference and VCO, distributing frequencies tailored to diverse blocks like ARM cores at 2 GHz, DDR memory at 1.6 GHz, and peripherals at lower rates, thereby minimizing die area, power consumption, and clock distribution complexity.[67]Synchronization and Recovery
Phase-locked loops (PLLs) play a crucial role in synchronization and recovery by extracting embedded timing information from incoming data streams or signals, enabling the alignment of local oscillators with remote references to ensure reliable data reception and processing. In clock recovery applications, PLLs detect phase differences between the received signal and a local clock, adjusting the latter to minimize jitter and maintain bit synchronization. This process is essential in communication systems where no separate clock signal is transmitted, such as serial data links.[68] Clock recovery using PLLs is particularly effective for encoded signals like Manchester and non-return-to-zero (NRZ). In Manchester encoding, which embeds clock transitions within each bit period, the phase detector in the PLL relies on edge detection to identify these mid-bit transitions, allowing rapid phase alignment even in burst-mode transmissions. For instance, a digital PLL (DPLL) recovers the clock from Manchester-encoded data in MIL-STD-1553B bus protocols by processing the biphase transitions to regenerate the timing signal at the receiver. Similarly, for NRZ signals, which lack guaranteed transitions during long sequences of identical bits, PLL-based circuits employ edge detectors to capture sporadic data edges, filtering out low-frequency wander while tracking phase variations. A CMOS implementation of such a PLL uses an input edge detector stage to enhance locking speed and reduce bit error rates in high-speed serial links.[69][70] Deskewing multiple clock sources is another key application, where PLLs align phases across parallel lanes in serializer/deserializer (SerDes) systems to compensate for propagation delays and skew introduced by interconnects. In multi-lane SerDes transceivers, a shared PLL generates synchronized clocks for transmit and receive pairs, ensuring data integrity by deskewing bit-level timing across channels operating at rates up to 6.4 Gb/s. This alignment prevents inter-symbol interference and supports aggregated bandwidth in backplane communications.[71] Practical examples highlight the versatility of PLLs in synchronization. In optical communications, clock and data recovery (CDR) circuits based on PLLs extract timing from high-speed NRZ or PAM-4 signals in fiber-optic receivers, achieving low jitter at 40 Gb/s by integrating limiting amplifiers and voltage-controlled oscillators. For GPS signal tracking, PLLs in the carrier recovery loop estimate and correct phase errors in the received pseudorandom noise code, enabling precise navigation even under dynamic conditions; a second-order PLL with a loop bandwidth of around 10 Hz maintains lock on L1-band signals. Additionally, bang-bang phase detectors (BBPDs) in digital PLLs are widely adopted for high-speed data recovery due to their nonlinear operation, which provides high gain near zero phase error and robustness to input jitter in serial links exceeding 10 Gb/s. These detectors output binary early/late signals, simplifying implementation in CMOS while minimizing power and area compared to linear alternatives.[72][73][74] PLLs recovered clocks can also be distributed for system-wide synchronization after initial recovery.Demodulation and Signal Processing
Phase-locked loops (PLLs) play a crucial role in demodulating frequency-modulated (FM) and amplitude-modulated (AM) signals by tracking the carrier and extracting the modulating information from phase or frequency variations. In FM demodulation, the PLL's voltage-controlled oscillator (VCO) adjusts to follow the instantaneous carrier frequency deviations caused by the modulating signal, resulting in an error voltage from the phase detector that is directly proportional to the frequency deviation Δf. This error signal, after passing through the loop filter, serves as the demodulated output proportional to the original message signal m(t). For effective operation, the loop gain K must be sufficiently high to keep phase errors small, ensuring linearity; typical implementations achieve distortion levels below 1% for deviation ratios up to 5.[75] In AM demodulation, the PLL locks to the suppressed or residual carrier, enabling synchronous detection where the input signal is multiplied by the VCO output to recover the amplitude variations while rejecting noise.[75] In spread spectrum communications, particularly code-division multiple access (CDMA) systems, PLLs facilitate carrier recovery essential for coherent demodulation and despreading. During acquisition, a wideband PLL or acquisition loop rapidly aligns the local oscillator phase with the incoming carrier despite initial offsets and multipath effects, often using pilot symbols for reference. Once locked, the tracking PLL maintains synchronization by minimizing phase errors in the presence of Doppler shifts and fading, with loop bandwidths typically set to 1-10% of the chip rate to balance tracking accuracy and noise rejection; simulations show phase error standard deviations below 5 degrees in AWGN channels at SNR > 10 dB. For code synchronization in CDMA, while delay-locked loops (DLLs) handle pseudonoise (PN) code alignment, the carrier PLL provides the phase reference necessary for quadrature despreading, ensuring efficient signal recovery in multi-user environments.[76] Beyond demodulation, PLLs contribute to signal processing tasks such as jitter attenuation in clock cleaning circuits and providing phase references for beamforming arrays. In clock cleaners, the PLL functions as a high-pass filter for the input clock's phase noise while low-pass filtering the VCO, attenuating high-frequency jitter components (e.g., > loop bandwidth) by 20-40 dB, which is critical for reducing bit error rates in high-speed serial links operating above 10 Gbps.[46] For beamforming in phased-array antennas, PLLs generate synchronized local oscillators across elements, maintaining phase alignment within 2-5 degrees to achieve beam gains of 10-20 dB; distributed PLL architectures further mitigate phase drifts from cable lengths or temperature variations.[77] A key design consideration for FM demodulation using PLLs is the relationship between the modulation index β and the phase error variance, which determines linearity and distortion. For a first-order PLL tracking a tone-modulated FM signal with deviation ratio β = Δf / f_m, the phase error θ_e(t) ≈ Δω(t) / K, where K is the loop gain in rad/s per rad and Δω(t) = β ω_m cos(ω_m t). The resulting variance of the phase error is highlighting that β must be limited (typically β < 0.3 for σ_θ < 15° rms) to avoid nonlinear distortion from the phase detector's sin(θ_e) characteristic.Implementation Considerations
Block Diagram
The standard block diagram of a phase-locked loop (PLL) illustrates its core feedback mechanism, consisting of four primary components interconnected in a closed loop: a phase detector (PD), a loop filter, a voltage-controlled oscillator (VCO), and an optional frequency divider. The reference input signal, typically a stable waveform with frequency and phase , enters the PD, where it is compared against the feedback signal from the VCO output (or the divided VCO output if present). The PD generates an error signal, often a voltage proportional to the phase difference between the reference and feedback phases, which drives the loop toward synchronization.[2][57] This error voltage passes through the loop filter, a low-pass component that attenuates high-frequency noise while producing a smoothed control voltage to adjust the VCO's output frequency and phase . The VCO, the heart of the loop, converts into an oscillating output signal whose frequency tracks in lock, with the output taken directly from the VCO for unity gain or after the optional divider for frequency multiplication (where the divider reduces by an integer before feeding back to the PD, enabling ). The feedback path closes the loop, ensuring the VCO phase aligns with the reference over time.[2][78] In digital and software implementations, the block diagram retains the same topology but substitutes analog elements with digital equivalents: for instance, the VCO may be replaced by a numerically controlled oscillator (NCO) that generates digital phase increments based on a digital control word from the filter, while the PD could use digital logic for phase comparison. This structure serves as a foundational reference for understanding signal flows and interconnections in PLL systems, highlighting how phase error propagates and corrects through the loop to achieve locking.[79][80]Software and Digital Realization
Software implementations of phase-locked loops (PLLs) enable flexible simulation and real-time processing on general-purpose processors or DSPs, typically involving a phase detector (PD), digital loop filter, and numerically controlled oscillator (NCO). In MATLAB/Simulink environments, the PD can be realized using a multiplier that computes the dot product-like correlation between the input signal and a locally generated reference to estimate phase error.[81] The loop filter is often a digital low-pass filter, such as a Chebyshev type II design with specified numerator and denominator coefficients, to smooth the phase error and generate the control signal for the NCO.[81] The NCO integrates this control by adjusting its phase increment, producing a discrete-time sinusoidal output with a quiescent frequency matching the expected input carrier, initial phase of zero radians, and sensitivity in Hz per unit control voltage.[81] In C or similar languages for embedded software PLLs (SPLLs), the PD may employ arctangent-based phase extraction or simple sign-bit comparison for binary signals, followed by proportional-integral (PI) filtering to update the NCO phase accumulator.[82] The NCO is implemented as a phase accumulator that adds a frequency word to a register on each clock cycle, with the output derived from a lookup table (LUT) for sine/cosine values, enabling precise frequency synthesis without analog components.[83] Integration occurs by feeding the filtered phase error into the NCO's tuning word, allowing the loop to track input variations in applications like grid synchronization.[84] For digital hardware realizations on field-programmable gate arrays (FPGAs), PLLs are described in hardware description languages like Verilog or VHDL, partitioning the PD, filter, and NCO into synthesizable modules.[85] A time-to-digital converter (TDC) serves as the PD for fine phase resolution, quantizing the time difference between reference and feedback edges into a digital code, often using delay-line or Vernier architectures to achieve sub-picosecond accuracy.[86] The digital filter, typically a fixed-point infinite impulse response (IIR) structure, processes this code to drive a digital controlled oscillator (DCO) or NCO, which may use a delta-sigma modulator for fractional frequency control in FPGA fabrics.[87] Implementation steps begin with initializing the NCO in free-running mode at the nominal input frequency, followed by iterative error correction: sample the input, compute phase error via PD/TDC, apply the digital filter to update the NCO tuning, and generate the output signal.[83] Key considerations include selecting a sampling rate at least twice the loop bandwidth to avoid aliasing and ensure stable tracking, as lower rates can degrade pull-in range and increase jitter.[88] Quantization noise from TDC and NCO introduces phase error spurs, dominating the in-band noise floor and potentially elevating output phase noise by 20 log10(1/√12) dB for uniform quantization, necessitating higher resolution (e.g., 4-6 bits for TDC) or noise-shaping techniques.[89] A simple digital PLL pseudocode example in a software context, adapted for iterative processing, illustrates the loop operation:initialize nco_phase = 0; // Free-run initial phase
initialize nco_freq = nominal_frequency; // Expected input freq
loop_filter_state = 0; // PI filter integrator
while (running) {
input_sample = sample_input(); // At rate > 2 * bandwidth
ref_sample = sin(2 * pi * nco_freq * t + nco_phase); // NCO output
phase_error = atan2(input_sample * cos(...) - ref_sample * sin(...), ...); // Multiplier-based PD approximation
filtered_error = Kp * phase_error + Ki * loop_filter_state; // Digital PI filter
loop_filter_state += phase_error;
nco_freq += filtered_error * sensitivity; // Update NCO
nco_phase += 2 * pi * nco_freq / sample_rate; // Accumulate phase
output = sin(nco_phase); // Generate locked signal
}
initialize nco_phase = 0; // Free-run initial phase
initialize nco_freq = nominal_frequency; // Expected input freq
loop_filter_state = 0; // PI filter integrator
while (running) {
input_sample = sample_input(); // At rate > 2 * bandwidth
ref_sample = sin(2 * pi * nco_freq * t + nco_phase); // NCO output
phase_error = atan2(input_sample * cos(...) - ref_sample * sin(...), ...); // Multiplier-based PD approximation
filtered_error = Kp * phase_error + Ki * loop_filter_state; // Digital PI filter
loop_filter_state += phase_error;
nco_freq += filtered_error * sensitivity; // Update NCO
nco_phase += 2 * pi * nco_freq / sample_rate; // Accumulate phase
output = sin(nco_phase); // Generate locked signal
}
