skeptic2 said:
You understand how op amps work don't you? A PLL is similar to an op amp except that it works with frequencies instead of voltages.
the one thing that needs to be mentioned is that the op-amp has this thing called a "differential amplifier" which, essentially, measures the difference between voltages. and then the op-amp circuit with negative feedback will do something to drive that voltage difference to zero.
this concept of using negative feedback to force to zero some
"error signal", which is the difference between what you have and what you want (what your target is), that whole idea is essentially what
control systems or
control theory is all about. so really understanding a PLL requires understanding something about control theory and feedback loops.
a PLL must have a component called a
phase discriminator that measures the difference between the phases of two waveforms of virtually the same frequency. and the PLL needs something called a
voltage-controlled oscillator (or VCO) to convert a voltage into a frequency. then remember frequency is the derivative of the changing phase. that means there is an added integrator that goes into the control loop.
conceptually, especially of the waveforms are sinusoids, the phase discriminator need only be a simple multiplier with a low-pass filter. nowadays, people write software PLLs in a few different applications of DSP.