A phase-locked loop or phase lock loop (PLL) is a
control system
A control system manages, commands, directs, or regulates the behavior of other devices or systems using control loops. It can range from a single home heating controller using a thermostat controlling a domestic boiler to large industrial ...
that generates an output
signal
A signal is both the process and the result of transmission of data over some media accomplished by embedding some variation. Signals are important in multiple subject fields including signal processing, information theory and biology.
In ...
whose
phase
Phase or phases may refer to:
Science
*State of matter, or phase, one of the distinct forms in which matter can exist
*Phase (matter), a region of space throughout which all physical properties are essentially uniform
*Phase space, a mathematica ...
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
Frequency is the number of occurrences of a repeating event per unit of time. Frequency is an important parameter used in science and engineering to specify the rate of oscillatory and vibratory phenomena, such as mechanical vibrations, audio ...
, a PLL can generate a stable frequency that is a multiple of the input frequency.
These properties are used for clock synchronization,
demodulation
Demodulation is the process of extracting the original information-bearing signal from a carrier wave. A demodulator is an electronic circuit (or computer program in a software-defined radio) that is used to recover the information content fro ...
,
frequency synthesis,
clock multipliers, and signal recovery from a noisy communication channel. Since 1969, a single
integrated circuit
An integrated circuit (IC), also known as a microchip or simply chip, is a set of electronic circuits, consisting of various electronic components (such as transistors, resistors, and capacitors) and their interconnections. These components a ...
can provide a complete PLL building block, and nowadays have output frequencies from a fraction of a
hertz
The hertz (symbol: Hz) is the unit of frequency in the International System of Units (SI), often described as being equivalent to one event (or Cycle per second, cycle) per second. The hertz is an SI derived unit whose formal expression in ter ...
up to many
gigahertz
The hertz (symbol: Hz) is the unit of frequency in the International System of Units (SI), often described as being equivalent to one event (or cycle) per second. The hertz is an SI derived unit whose formal expression in terms of SI base un ...
. Thus, PLLs are widely employed in
radio
Radio is the technology of communicating using radio waves. Radio waves are electromagnetic waves of frequency between 3 hertz (Hz) and 300 gigahertz (GHz). They are generated by an electronic device called a transmitter connec ...
,
telecommunications
Telecommunication, often used in its plural form or abbreviated as telecom, is the transmission of information over a distance using electronic means, typically through cables, radio waves, or other communication technologies. These means of ...
,
computer
A computer is a machine that can be Computer programming, programmed to automatically Execution (computing), carry out sequences of arithmetic or logical operations (''computation''). Modern digital electronic computers can perform generic set ...
s (e.g. to distribute precisely timed
clock signal
In electronics and especially synchronous digital circuits, a clock signal (historically also known as ''logic beat'') is an electronic logic signal (voltage or current) which oscillates between a high and a low state at a constant frequency and ...
s in
microprocessor
A microprocessor is a computer processor (computing), processor for which the data processing logic and control is included on a single integrated circuit (IC), or a small number of ICs. The microprocessor contains the arithmetic, logic, a ...
s),
grid-tie inverters (electronic power converters used to integrate
DC renewable resources and storage elements such as
photovoltaics
Photovoltaics (PV) is the conversion of light into electricity using semiconducting materials that exhibit the photovoltaic effect, a phenomenon studied in physics, photochemistry, and electrochemistry. The photovoltaic effect is commerciall ...
and
batteries with the power grid), and other electronic applications.
Simple example

A simple
analog PLL is an
electronic circuit
An electronic circuit is composed of individual electronic components, such as resistors, transistors, capacitors, inductors and diodes, connected by conductive wires or Conductive trace, traces through which electric current can flow. It is a t ...
consisting of a
variable frequency oscillator
A variable frequency oscillator (VFO) in electronics is an oscillator whose frequency can be tuned (i.e., varied) over some range. It is a necessary component in any tunable radio transmitter and in receivers that work by the superheterodyne p ...
and a
phase detector
A phase detector or phase comparator is a frequency mixer, analog multiplier or Digital logic, logic circuit that generates a signal which represents the difference in phase between two signal inputs.
The phase detector is an essential elemen ...
in a
feedback loop
Feedback occurs when outputs of a system are routed back as inputs as part of a chain of cause and effect that forms a circuit or loop. The system can then be said to ''feed back'' into itself. The notion of cause-and-effect has to be handle ...
(Figure 1). The oscillator generates a periodic signal with frequency proportional to an applied voltage, hence the term
voltage-controlled oscillator
A voltage-controlled oscillator (VCO) is an electronic oscillator whose oscillation frequency is controlled by a voltage input. The applied input voltage determines the instantaneous oscillation frequency. Consequently, a VCO can be used for fre ...
(VCO). The phase detector compares the phase of the VCO's output signal with the phase of periodic input reference signal and outputs a voltage (stabilized by the filter) to adjust the oscillator's frequency to match the phase of to the phase of .
Clock analogy
Phase can be proportional to
time
Time is the continuous progression of existence that occurs in an apparently irreversible process, irreversible succession from the past, through the present, and into the future. It is a component quantity of various measurements used to sequ ...
, so a phase difference can correspond to a time difference.
Left alone, different clocks will mark time at slightly different rates. A
mechanical clock
A clock or chronometer is a device that measures and displays time. The clock is one of the oldest human inventions, meeting the need to measure intervals of time shorter than the natural units such as the day, the lunar month, and the ye ...
, for example, might be fast or slow by a few seconds per hour compared to a reference
atomic clock
An atomic clock is a clock that measures time by monitoring the resonant frequency of atoms. It is based on atoms having different energy levels. Electron states in an atom are associated with different energy levels, and in transitions betwee ...
(such as the
NIST-F2
NIST-F2 is a caesium fountain atomic clock that, along with NIST-F1, serves as the United States' primary time and frequency standard. NIST-F2 was brought online on 3 April 2014.
Accuracy
NIST-F1, a cesium fountain atomic clock used since 1999 ...
). 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
Electromechanics combine processes and procedures drawn from electrical engineering and mechanical engineering. Electromechanics focus on the interaction of electrical and mechanical systems as a whole and how the two systems interact with each ...
version of a phase-locked loop was used in 1921 in the
Shortt-Synchronome clock.
History
Spontaneous synchronization of weakly coupled
pendulum clock
A pendulum clock is a clock that uses a pendulum, a swinging weight, as its timekeeping element. The advantage of a pendulum for timekeeping is that it is an approximate harmonic oscillator: It swings back and forth in a precise time interval dep ...
s was noted by the Dutch physicist
Christiaan Huygens
Christiaan Huygens, Halen, Lord of Zeelhem, ( , ; ; also spelled Huyghens; ; 14 April 1629 – 8 July 1695) was a Dutch mathematician, physicist, engineer, astronomer, and inventor who is regarded as a key figure in the Scientific Revolution ...
as early as 1673. Around the turn of the 19th century,
Lord Rayleigh
John William Strutt, 3rd Baron Rayleigh ( ; 12 November 1842 – 30 June 1919), was an English physicist who received the Nobel Prize in Physics in 1904 "for his investigations of the densities of the most important gases and for his discovery ...
observed synchronization of weakly coupled organ pipes and
tuning fork
A tuning fork is an acoustic resonator in the form of a two-pronged fork with the prongs ( ''tines'') formed from a U-shaped bar of elastic metal (usually steel). It resonates at a specific constant pitch when set vibrating by striking it ag ...
s. 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. Automatic synchronization of electronic oscillators was described in 1923 by
Edward Victor Appleton.
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
Telegraphy is the long-distance transmission of messages where the sender uses symbolic codes, known to the recipient, rather than a physical exchange of an object bearing the message. Thus flag semaphore is a method of telegraphy, whereas ...
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
Relay logic is a method of implementing combinational logic in electrical control circuits by using several electrical relays wired in a particular configuration.
Ladder logic
The schematic diagrams for relay logic circuits are often called ...
implementation of the
transistor
A transistor is a semiconductor device used to Electronic amplifier, amplify or electronic switch, switch electrical signals and electric power, power. It is one of the basic building blocks of modern electronics. It is composed of semicondu ...
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
Edwin Howard Armstrong (December 18, 1890 – February 1, 1954) was an American electrical engineer and inventor who developed FM (frequency modulation) radio and the superheterodyne receiver system.
He held 42 patents and received numerous aw ...
's
superheterodyne receiver
A superheterodyne receiver, often shortened to superhet, is a type of radio receiver that uses frequency mixing to convert a received signal to a fixed intermediate frequency (IF) which can be more conveniently processed than the original car ...
, the
Homodyne or
direct-conversion receiver. In the homodyne or synchrodyne system, a
local oscillator
In electronics, the term local oscillator (LO) refers to an electronic oscillator when used in conjunction with a Frequency mixer, mixer to change the frequency of a signal. This frequency conversion process, also called Heterodyne, heterodyning ...
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''.
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.

In 1969,
Signetics
Signetics Corporation was an American electronics manufacturer specifically established to make integrated circuits. Founded in 1961, they went on to develop a number of early microprocessors and support chips, as well as the widely used 555 time ...
introduced a line of low-cost monolithic
integrated circuits
An integrated circuit (IC), also known as a microchip or simply chip, is a set of electronic circuits, consisting of various electronic components (such as transistors, resistors, and capacitors) and their interconnections. These components a ...
like the NE565 using
bipolar transistors
A bipolar junction transistor (BJT) is a type of transistor that uses both electrons and electron holes as charge carriers. In contrast, a unipolar transistor, such as a field-effect transistor (FET), uses only one kind of charge carrier. A ...
, that were complete phase-locked loop systems on a chip, and applications for the technique multiplied. A few years later,
RCA
RCA Corporation was a major American electronics company, which was founded in 1919 as the Radio Corporation of America. It was initially a patent pool, patent trust owned by General Electric (GE), Westinghouse Electric Corporation, Westinghou ...
introduced the
CD4046 Micropower Phase-Locked Loop using
CMOS
Complementary metal–oxide–semiconductor (CMOS, pronounced "sea-moss
", , ) is a type of MOSFET, metal–oxide–semiconductor field-effect transistor (MOSFET) semiconductor device fabrication, fabrication process that uses complementary an ...
, which also became a popular integrated circuit building block.
Structure and function
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
A phase detector or phase comparator is a frequency mixer, analog multiplier or Digital logic, logic circuit that generates a signal which represents the difference in phase between two signal inputs.
The phase detector is an essential elemen ...
*
Low-pass filter
A low-pass filter is a filter that passes signals with a frequency lower than a selected cutoff frequency and attenuates signals with frequencies higher than the cutoff frequency. The exact frequency response of the filter depends on the filt ...
*
Voltage controlled oscillator
*
Feedback
Feedback occurs when outputs of a system are routed back as inputs as part of a chain of cause and effect that forms a circuit or loop. The system can then be said to ''feed back'' into itself. The notion of cause-and-effect has to be handle ...
path, which may include a
frequency divider
Frequency is the number of occurrences of a repeating event per unit of time. Frequency is an important parameter used in science and engineering to specify the rate of oscillatory and vibratory phenomena, such as mechanical vibrations, audio ...
Variations
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).
; Analog or linear PLL (APLL):Phase detector is an
analog multiplier. Loop filter is
active or
passive
Passive may refer to:
* Passive voice, a grammatical voice common in many languages, see also Pseudopassive
* Passive language, a language from which an interpreter works
* Passivity (behavior), the condition of submitting to the influence of ...
. Uses a
voltage-controlled oscillator
A voltage-controlled oscillator (VCO) is an electronic oscillator whose oscillation frequency is controlled by a voltage input. The applied input voltage determines the instantaneous oscillation frequency. Consequently, a VCO can be used for fre ...
(VCO). APLL is said to be a ''type II'' if its loop filter has
transfer function
In engineering, a transfer function (also known as system function or network function) of a system, sub-system, or component is a function (mathematics), mathematical function that mathematical model, models the system's output for each possible ...
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.
[Ahissar, E. Neuronal phase-locked loops. U.S. Patent No. 6,581,046 (2003).]
; 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
*Type and order.
*
Frequency ranges: hold-in range (tracking range), pull-in range (capture range, acquisition range), lock-in range.
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
Phase-locked loops are widely used for
synchronization
Synchronization is the coordination of events to operate a system in unison. For example, the Conductor (music), conductor of an orchestra keeps the orchestra synchronized or ''in time''. Systems that operate with all parts in synchrony are sa ...
purposes; in space
communications
Communication is commonly defined as the transmission of information. Its precise definition is disputed and there are disagreements about whether Intention, unintentional or failed transmissions are included and whether communication not onl ...
for
coherent demodulation and
threshold extension,
bit synchronization
In coding theory, especially in telecommunications, a self-synchronizing code is a uniquely decodable code in which the symbol (data), symbol stream formed by a portion of one Code word (communication), code word, or by the overlapped portion ...
, and symbol synchronization. Phase-locked loops can also be used to
demodulate
Demodulation is the process of extracting the original information-bearing signal from a carrier wave. A demodulator is an electronic circuit (or computer program in a software-defined radio) that is used to recover the information content from ...
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.
Other applications include:
*
Demodulation
Demodulation is the process of extracting the original information-bearing signal from a carrier wave. A demodulator is an electronic circuit (or computer program in a software-defined radio) that is used to recover the information content fro ...
of
frequency modulation
Frequency modulation (FM) is a signal modulation technique used in electronic communication, originally for transmitting messages with a radio wave. In frequency modulation a carrier wave is varied in its instantaneous frequency in proporti ...
(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
Frequency-shift keying (FSK) is a frequency modulation scheme in which digital information is encoded on a carrier signal by periodically shifting the frequency of the carrier between several discrete frequencies. The technology is used fo ...
(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
Disc or disk may refer to:
* Disk (mathematics), a two dimensional shape, the interior of a circle
* Disk storage
* Optical disc
* Floppy disk
Music
* Disc (band), an American experimental music band
* ''Disk'' (album), a 1995 EP by Moby
Other ...
*
Clock multipliers in
microprocessors
A microprocessor is a computer processor for which the data processing logic and control is included on a single integrated circuit (IC), or a small number of ICs. The microprocessor contains the arithmetic, logic, and control circuitry r ...
that allow internal processor elements to run faster than external connections, while maintaining precise timing relationships
* Demodulation of
modem
The Democratic Movement (, ; MoDem ) is a centre to centre-right political party in France, whose main ideological trends are liberalism and Christian democracy, and that is characterised by a strong pro-Europeanist stance. MoDem was establis ...
s and other tone signals for
telecommunications
Telecommunication, often used in its plural form or abbreviated as telecom, is the transmission of information over a distance using electronic means, typically through cables, radio waves, or other communication technologies. These means of ...
and
remote control
A remote control, also known colloquially as a remote or clicker, is an consumer electronics, electronic device used to operate another device from a distance, usually wirelessly. In consumer electronics, a remote control can be used to operat ...
.
*
DSP of
video
Video is an Electronics, electronic medium for the recording, copying, playback, broadcasting, and display of moving picture, moving image, visual Media (communication), media. Video was first developed for mechanical television systems, whi ...
signals; Phase-locked loops are also used to synchronize phase and frequency to the input
analog video
Video is an Electronics, electronic medium for the recording, copying, playback, broadcasting, and display of moving picture, moving image, visual Media (communication), media. Video was first developed for mechanical television systems, whi ...
signal so it can be
sampled and digitally processed
*
Atomic force microscopy
Atomic force microscopy (AFM) or scanning force microscopy (SFM) is a very-high-resolution type of scanning probe microscopy (SPM), with demonstrated resolution on the order of fractions of a nanometer, more than 1000 times better than the opti ...
in
frequency modulation
Frequency modulation (FM) is a signal modulation technique used in electronic communication, originally for transmitting messages with a radio wave. In frequency modulation a carrier wave is varied in its instantaneous frequency in proporti ...
mode, to detect changes of the cantilever resonance frequency due to tip–surface interactions
*
DC motor drive
Clock recovery
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 edge
In electronics, a signal edge is a transition of a digital signal from low to high or from high to low:
* A rising edge (or positive edge) is the low-to-high transition.
* A falling edge (or negative edge) is the high-to-low transition.
In t ...
s. This process is referred to as
clock recovery
Clock recovery is a process in serial communication used to extract timing information from a stream of serial data being sent in order to accurately determine payload sequence without separate clock information. It is widely used in data communi ...
. 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
In telecommunications, a line code is a pattern of voltage, current, or photons used to represent digital data transmission (telecommunications), transmitted down a communication channel or written to a storage medium. This repertoire of signal ...
with a hard upper bound on the maximum time between edges (e.g.
8b/10b encoding
In telecommunications, 8b/10b is a line code that maps 8-bit words to 10-bit symbols to achieve DC balance and bounded disparity, and at the same time provide enough state changes to allow reasonable clock recovery. This means that the di ...
) is typically used to encode the data.
Deskewing
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.
Clock generation
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
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
FM broadcasting is a method of radio broadcasting that uses frequency modulation (FM) of the radio broadcast carrier wave. Invented in 1933 by American engineer Edwin Armstrong, wide-band FM is used worldwide to transmit high fidelity, high-f ...
channels, which have a bandwidth of several tens of kilohertz.
Clock distribution

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
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.
Jitter and noise reduction
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
In electronics and telecommunications, jitter is the deviation from true periodicity of a presumably periodic signal, often in relation to a reference clock signal. In clock recovery applications it is called timing jitter. Jitter is a signifi ...
. Ideally, the static phase offset should be zero, and the tracking jitter should be as low as possible.
Phase noise
In signal processing, phase noise is the frequency-domain representation of random fluctuations in the phase of a waveform, corresponding to time-domain deviations from perfect periodicity (jitter). Generally speaking, radio-frequency enginee ...
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
Complementary metal–oxide–semiconductor (CMOS, pronounced "sea-moss
", , ) is a type of MOSFET, metal–oxide–semiconductor field-effect transistor (MOSFET) semiconductor device fabrication, fabrication process that uses complementary an ...
.
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
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
A frequency synthesizer is an electronic circuit that generates a range of frequencies from a single reference frequency. Frequency synthesizers are used in devices such as radio receivers, televisions, mobile telephones, radiotelephones, walkie ...
integrated circuit and discrete resonator VCOs.
Phase angle reference
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
Photovoltaics (PV) is the conversion of light into electricity using semiconducting materials that exhibit the photovoltaic effect, a phenomenon studied in physics, photochemistry, and electrochemistry. The photovoltaic effect is commercially ...
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.
Block diagram

The block diagram shown in the figure shows an input signal, ''F''
''I'', which is used to generate an output, ''F''
''O''. The input signal is often called the ''reference signal'' (also abbreviated ''F''
''REF'').
At the input, a phase detector (shown as the
Phase frequency detector and
Charge pump
A charge pump is a kind of DC-to-DC converter that uses capacitors for energetic charge storage to raise or lower voltage. Charge-pump circuits are capable of high efficiencies, sometimes as high as 90–95%, while being electrically simple ...
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
Negative feedback (or balancing feedback) occurs when some function (Mathematics), function of the output of a system, process, or mechanism is feedback, fed back in a manner that tends to reduce the fluctuations in the output, whether caused ...
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
Rationality is the quality of being guided by or based on reason. In this regard, a person acts rationally if they have a good reason for what they do, or a belief is rational if it is based on strong evidence. This quality can apply to an ...
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.
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.
Elements
Phase detector
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.
Different types of phase detectors have different performance characteristics.
For instance, the
frequency mixer
In electronics, a mixer, or frequency mixer, is an electrical circuit that creates new frequencies from two signals applied to it. In its most common application, two signals are applied to a mixer, and it produces new signals at the sum and di ...
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.
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
XOR gate (sometimes EOR, or EXOR and pronounced as Exclusive OR) is a digital logic gate that gives a true (1 or HIGH) output when the number of true inputs is odd. An XOR gate implements an exclusive disjunction, exclusive or (\nleftrightarrow) ...
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
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
Stability may refer to:
Mathematics
*Stability theory, the study of the stability of solutions to differential equations and dynamical systems
** Asymptotic stability
** Exponential stability
** Linear stability
**Lyapunov stability
** Marginal s ...
. 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
In control theory the settling time of a dynamical system such as an amplifier or other output device is the time elapsed from the application of an ideal instantaneous step input to the time at which the amplifier output has entered and remained ...
) and
damping behavior. Depending on the application, this may require one or more of the following: a simple proportion (gain or attenuation), an
integral
In mathematics, an integral is the continuous analog of a Summation, sum, which is used to calculate area, areas, volume, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental oper ...
(low-pass filter) and/or
derivative
In mathematics, the derivative is a fundamental tool that quantifies the sensitivity to change of a function's output with respect to its input. The derivative of a function of a single variable at a chosen input value, when it exists, is t ...
(
high-pass filter
A high-pass filter (HPF) is an electronic filter that passes signals with a frequency higher than a certain cutoff frequency and attenuates signals with frequencies lower than the cutoff frequency. The amount of attenuation for each frequency ...
). Loop parameters commonly examined for this are the loop's
gain margin and
phase margin
In electronic amplifiers, the phase margin (PM) is the difference between the phase (waves), phase lag (< 0) and -180°, for an amplifier's output signal (relative to its input) at zero dB gain - i.e. unity gain, or that the output signal has the ...
. Common concepts in
control theory
Control theory is a field of control engineering and applied mathematics that deals with the control system, control of dynamical systems in engineered processes and machines. The objective is to develop a model or algorithm governing the applic ...
including the
PID controller
PID or Pid may refer to:
Medicine
* Pelvic inflammatory disease or pelvic inflammatory disorder, an infection of the upper part of the female reproductive system
* Primary immune deficiency, disorders in which part of the body's immune system is ...
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.
Oscillator
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
In electronics, a digital-to-analog converter (DAC, D/A, D2A, or D-to-A) is a system that converts a digital signal into an analog signal. An analog-to-digital converter (ADC) performs the reverse function.
DACs are commonly used in musi ...
as is the case for some DPLL designs. Pure digital oscillators such as a numerically controlled oscillator are used in ADPLLs.
Feedback path and optional divider

PLLs may include a divider between the oscillator and the feedback input to the phase detector to produce a
frequency synthesizer
A frequency synthesizer is an electronic circuit that generates a range of frequencies from a single reference frequency. Frequency synthesizers are used in devices such as radio receivers, televisions, mobile telephones, radiotelephones, walkie ...
. 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
Hydrothermal synthesis includes the various techniques of synthesizing substances from high-temperature aqueous solutions at high pressures; also termed "hydrothermal method". The term "hydrothermal" is of geologic origin. Geochemists and mine ...
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 ''N''th 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. 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
Time domain model of APLL
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
In electronics, acoustics, and related fields, the waveform of a signal is the shape of its graph as a function of time, independent of its time and magnitude scales and of any displacement in time.David Crecraft, David Gorham, ''Electroni ...
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
In mathematics, the conjugate transpose, also known as the Hermitian transpose, of an m \times n complex matrix \mathbf is an n \times m matrix obtained by transposing \mathbf and applying complex conjugation to each entry (the complex conjugate ...
.
Hence the following system describes PLL
:
where
is an initial phase shift.
Phase domain model of APLL
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.
Here function
is a
phase detector characteristic.
Denote by
the phase difference
:
Then the following
dynamical system
In mathematics, a dynamical system is a system in which a Function (mathematics), function describes the time dependence of a Point (geometry), point in an ambient space, such as in a parametric curve. Examples include the mathematical models ...
describes PLL behavior
:
Here
;
is the frequency of a reference oscillator (we assume that
is constant).
Example
Consider sinusoidal signals
:
and a simple one-pole
RC circuit
A resistor–capacitor circuit (RC circuit), or RC filter or RC network, is an electric circuit composed of resistors and capacitors. It may be driven by a voltage source, voltage or current source and these will produce different responses. A fi ...
as a filter. The time-domain model takes the form
:
PD characteristics for this signals is equal
[A. J. Viterbi, ''Principles of Coherent Communication'', McGraw-Hill, New York, 1966] 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
Phase locked loops can also be analyzed as control systems by applying the
Laplace transform
In mathematics, the Laplace transform, named after Pierre-Simon Laplace (), is an integral transform that converts a Function (mathematics), function of a Real number, real Variable (mathematics), variable (usually t, in the ''time domain'') to a f ...
. The loop response can be written as
:
Where
*
is the output phase in
radian
The radian, denoted by the symbol rad, is the unit of angle in the International System of Units (SI) and is the standard unit of angular measure used in many areas of mathematics. It is defined such that one radian is the angle subtended at ...
s
*
is the input phase in radians
*
is the phase detector gain in
volt
The volt (symbol: V) is the unit of electric potential, Voltage#Galvani potential vs. electrochemical potential, electric potential difference (voltage), and electromotive force in the International System of Units, International System of Uni ...
s per radian
*
is the VCO gain in radians per volt-
second
The second (symbol: s) is a unit of time derived from the division of the day first into 24 hours, then to 60 minutes, and finally to 60 seconds each (24 × 60 × 60 = 86400). The current and formal definition in the International System of U ...
*
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
A resistor–capacitor circuit (RC circuit), or RC filter or RC network, is an electric circuit composed of resistors and capacitors. It may be driven by a voltage source, voltage or current source and these will produce different responses. A fi ...
. The loop transfer function in this case is
:
The loop response becomes:
:
This is the form of a classic
harmonic oscillator
In classical mechanics, a harmonic oscillator is a system that, when displaced from its equilibrium position, experiences a restoring force ''F'' proportional to the displacement ''x'':
\vec F = -k \vec x,
where ''k'' is a positive const ...
. 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
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
Flip-flops are a type of light sandal-like shoe, typically worn as a form of casual footwear. They consist of a flat sole held loosely on the foot by a Y-shaped strap known as a toe thong that passes between the first and second toes and around ...
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
*
Carrier recovery
*
Charge-pump phase-locked loop
*
Circle map
In mathematics, particularly in dynamical systems, Arnold tongues (named after Vladimir Arnold) Section 12 in page 78 has a figure showing Arnold tongues. are a pictorial phenomenon that occur when visualizing how the rotation number of a dynamic ...
– 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
Direct may refer to:
Mathematics
* Directed set, in order theory
* Direct limit of (pre), sheaves
* Direct sum of modules, a construction in abstract algebra which combines several vector spaces
Computing
* Direct access (disambiguation), ...
*
Frequency-locked loop
*
Kalman filter
In statistics and control theory, Kalman filtering (also known as linear quadratic estimation) is an algorithm that uses a series of measurements observed over time, including statistical noise and other inaccuracies, to produce estimates of unk ...
*
PLL multibit
*
Shortt–Synchronome clock – Slave pendulum phase-locked to master (ca 1921)
Notes
References
Further reading
*.
*
*
*
*. (provides useful Matlab scripts for simulation)
*. (provides useful Matlab scripts for simulation)
*
*. (FM Demodulation)
*
*. An article on designing a standard PLL IC for Bluetooth applications.
*
External links
Phase locked loop primer– Includes embedded video
Excel Unusual hosts an animated PLL modeland the tutorial
to code such a model
{{Authority control
Articles with example MATLAB/Octave code
Communication circuits
Electronic design
Electronic oscillators
Radio electronics