What PLL means in electronics
In electronics, PLL stands for phase-locked loop. It is a feedback circuit that locks an oscillator’s phase and frequency to a reference signal. Once locked, the oscillator’s output follows the reference, so it can be used for frequency generation, clock recovery and demodulation. For the full explanation of how the loop works, see what is a phase-locked loop.
The three core parts
A phase-locked loop needs three core parts:
- A phase detector, which compares the reference with the oscillator’s output and produces an error signal.
- A loop filter, usually a low-pass RC or RC-style network, which turns the error signal into a steady control voltage.
- A voltage-controlled oscillator (VCO), whose frequency follows that control voltage.
Many designs also include a frequency divider in the feedback path, so the loop can lock to a multiple of the reference.
What the 566 does
The 566 is a voltage-controlled oscillator integrated circuit. Its output frequency is set mainly by an external timing resistor and capacitor, and a control voltage applied to one pin shifts the frequency up or down from that set point. The chip produces square and triangle waveforms, which makes it useful for simple function generators and frequency-shift keying (FSK) generators as well as PLLs.
The datasheet gives the formula for the free-running frequency and the recommended component ranges. Use those values for a design, rather than rules of thumb from forum posts. Several manufacturers publish 566 datasheets as PDFs. Search for the part number followed by “datasheet” to find the current version.
565 vs 566: keep them straight
- The 565 is a complete PLL. It includes its own phase detector and VCO, and you add an external loop filter.
- The 566 is a VCO only. To make a PLL from it, you must add your own phase detector and loop filter.
This difference matters when you buy parts or follow a circuit. A circuit that calls for a 565 will not work the same way with a 566 unless you add the missing blocks.
Building a PLL from a 566 and a phase detector
A simple loop has this structure:
- The 566 output goes to an optional divider, then to one input of the phase detector.
- The reference signal goes to the other input of the phase detector.
- The phase detector output goes through an RC loop filter to the 566 control input.
An XOR gate is a simple phase detector for square-wave signals. When the loop locks with a 50% duty cycle reference, the XOR’s average output settles at a level that corresponds to a 90° phase difference. The loop filter sets how fast the loop locks and how much ripple reaches the VCO. Our analog filter design article covers the RC filter basics.
Setting the frequency
The free-running frequency depends on the timing components and the control voltage. For planning, calculate the value from the datasheet’s formula, then measure it on the bench. Component tolerances and supply voltage will shift the real frequency, so expect the measured value to differ from the calculated one by a noticeable margin.
Practical notes
- Use a stable supply and place decoupling capacitors close to the chip.
- Choose timing components with tolerances that suit your application, and expect the frequency to vary with them.
- If the output hunts, wobbles or fails to lock, reduce the loop bandwidth by increasing the loop filter’s time constant, then test again.
- Check the datasheet for the allowed supply range before you power the circuit.
- Start on a breadboard and measure both the reference and the VCO output with a scope.