A voltage-controlled oscillator frequency range detector is disclosed that detects when the voltage-controlled oscillator frequency within a phase-locked loop is out of range and indicates the required direction of the frequency adjustment. The voltage-controlled oscillator frequency range detector includes a comparator circuit, which receives a voltage-controlled oscillator control voltage signal, and a frequency detector circuit, which receives a reference clock signal and a voltage-controlled oscillator clock signal. Decision logic circuitry, coupled to the comparator circuit and to the frequency detector circuit, receives at least one output from the comparator circuit and an output from the frequency detector circuit and indicates whether an adjustment to a voltage-controlled oscillator frequency is required and its direction.
A frequency detector circuit is arranged to detect a frequency difference between a clock signal and a reference clock signal. The frequency detector circuit includes four flip-flop circuits and a clear logic circuit. The clear logic circuit is arranged to clear selected flip-flop circuits. Two of the flip-flop circuits are arranged to detect two consecutive transitions in the clock signal without a clearing signal to provide a DOWN signal. The other two flip-flop circuits are arranged to detect two consecutive transitions in the reference clock signal without a clearing signal to provide an UP signal. The average of the UP and DOWN signals over a time interval corresponds to the difference in frequency between the clock signal and the reference clock signal. The UP and DOWN signals provide signals that may be employed by a charge pump circuit in a phase-locked-loop system to adjust the frequency of a VCO.
A voltage controlled oscillator (VCO) is provided which includes a threshold level setting circuit operable to set a lower variable threshold level and to set an upper variable threshold level. The VCO includes a frequency band selection unit operable to adjust a frequency band setting of the VCO to one of a plurality of frequency band settings. The VCO further includes a comparator operable to determine whether a control voltage of the VCO falls between the lower threshold level and the upper threshold level. The VCO further includes a threshold adjustment and calibration circuit operable to maintain the frequency band setting when the control voltage falls between the lower and upper threshold levels. Otherwise, when the control voltage lies below the lower threshold level, the lower threshold level is adjusted downward and the upper threshold level is adjusted upward, and when the control voltage lies above the upper threshold level, the frequency band selection is increased to a next higher frequency band.