Describe the function of a phase-locked loop in electronic circuits.
A phase-locked loop (PLL) is an electronic circuit that synchronizes an output oscillator signal with a reference signal in phase and frequency. It's widely used in telecommunications for frequency synthesis, modulation, demodulation, and signal recovery.