Explain the operation of a phase-locked loop (PLL).
A phase-locked loop (PLL) is a control system that generates an output signal whose phase is related to the phase of an input signal. It consists of three main components: a phase detector, a loop filter, and a voltage-controlled.