Field of the Invention
The present invention relates to phase-lock loop (PLL) circuits and, in particular, to a PLL which has circuitry for performing frequency offset cancellation circuitry without decreasing the operating range of the PLL.
Background
A timing block in a communication system (e.g., a system for reading data from, and writing data to, a hard disk drive), typically employs a signal from a frequency synthesizer in transmitting data (e.g., in a disk drive system, for writing data to the disk). A phase lock loop (PLL) is typically used in receiving data (e.g., in a disk drive system, for reading data from the disk) to "lock on" to the received data. Thus, it is important that the synthesizer frequency and the PLL free-running frequency be equal.
FIG. 1 is a block diagram illustrating a conventional digital PLL 10. In a "data receive" mode of operation, PLL 10 receives an analog input data signal, DATA, via a multiplexor 12. An analog-to-digital converter (ADC) 14 uses a clock signal CLK to sample the analog input data signal and to generate digital data signal samples. The digital samples generated by ADC 14 may be received by a receiver (not shown).
A phase comparator 16 receives the digital data signal samples generated by ADC 14 and generates phase error signal samples, .phi..sub.e, which are representative of the phase error between a received digital data signal sample and a previously-received digital data signal.
A well-known proportional-integral-derivative (PID) filter 18 is coupled to filter the phase error signal samples, .phi..sub.e. PID filter 18 is shown in more detail in FIG. 2. The integral path 26 of PID filter 18, utilizing an adder element 28, accumulates successively received phase error signal samples .phi..sub.2 into an integral register 30. (The accumulated value, representing a frequency error in the analog input data signal DATA, is designated in FIG. 2 as D.sub.I.) The accumulated value D.sub.I is provided as a first input to an adder 32. The value from the derivative path 34 of the PID filter 18, which represents an instantaneous rate of change of phase error in the analog input data signal DATA, is provided as a second input to adder 32; and the value from the proportional path 36 of the PID filter 18, which represents the phase error in the analog input data signal DATA, is provided as a third input to adder 32. The values c.sub.d, c.sub.p, and c.sub.i are "multiplier coefficients" for adjusting the gain of the derivative path 34, the proportional path 36, and the integral path 26, respectively. Adder 32 adds together the values provided to its three inputs and provides the result, as a digital frequency error value, to a digital-to-analog converter (DAC) 20.
Referring back to FIG. 1, DAC 20 converts the digital frequency error value to an analog oscillator control signal and provides the analog oscillator control signal to a voltage-controlled oscillator (VCO) 22. The output of VCO 22 is the clock signal CLK which ADC 14 uses to sample the analog data signal DATA. (Clock signal CLK is also provided as a time base for use by other elements of PLL 10. For example, as shown in FIG. 1, clock signal CLK is also provided to phase comparator 16 and to PID filter 18.)
As discussed above, a frequency synthesizer 24 is typically used by a communication channel in transmitting data. Since, as discussed above, it is important that the synthesizer frequency and the PLL free-running frequency (used for receiving data) be equal, a "reference lock" mode is typically employed to lock PLL 10 to the synthesizer 24 frequency before PLL 10 is used for receiving data.
In particular, referring still to FIG. 1 in the reference lock mode, multiplexor 12 is controlled by a REF.sub.-- LOCK signal to provide a synthesizer 24 output signal SYNTH.sub.-- CLK (or, alternatively, a signal which has a frequency that is some predetermined fraction of the frequency of SYNTH.sub.-- CLK) to the ADC 14 in place of the incoming analog input data signal DATA. Once PLL 10 locks onto the frequency of SYNTH.sub.-- CLK, the accumulated frequency error value D.sub.I in integral register 30 is copied into an initial offset register 38. (The copied value is designated in FIG. 2 as C.sub.I-f) Then, when commencing a "data receive" mode, C.sub.I-f is copied into the integral register 30 as an initial value of D.sub.I.
A disadvantage of the conventional PLL architecture illustrated in FIGS. 1 and 2 is that some of the range of the DAC 20 must be used in "data receive" mode to correct for the difference between the synthesizer 24 frequency and the PLL 10 free-running frequency. In particular, if the difference between the synthesizer 24 frequency and the PLL 10 free-running frequency is large the DAC 20 may not have enough additional range to allow PLL 10 to lock onto the analog input data signal DATA. While the range of the DAC 20 could be increased, doing so would require increasing the accuracy of the DAC 20.
Summary of the Invention
The present invention provides a phase lock loop (PLL) circuit which can be locked on to a synthesizer frequency without increasing the range of the PLL DAC that is available for locking the PLL onto the incoming data signal.
In particular, the present invention provides a PLL which comprises an analog-to-digital converter (ADC) that receives an analog input signal and responds to a periodic clock signal by providing a corresponding digital output signal. A phase comparator is coupled to receive the ADC digital output signal and to provide a phase error signal which is representative of a phase error in the output signal. A filter accumulates the value of the phase error signal into a filter first register to generate a primary frequency error value. The filter further includes a filter second register for holding a secondary frequency error value (e.g., a value which corrects for an offset between a synthesizer frequency and the PLL free-running frequency). A primary digital-to-analog converter (DAC) converts a primary filter output value, which includes the primary frequency error value, to a corresponding primary analog output signal. A secondary DAC converts a secondary filter output value, which includes the secondary frequency error value from the filter second register, to a corresponding secondary analog output signal responsive to the secondary filter output value. The primary analog output signal and the secondary analog output signal are combined to provide a control signal to an oscillator that provides the clock signal to the ADC. The frequency of the clock signal is controlled by the control signal.
A better understanding of the features and advantages of the present invention will be obtained by reference to the following detailed description and accompanying drawings which set forth an illustrative embodiment in which the principles of the invention are utilized.
Brief Description of the Figures
FIG. 1 is a block diagram of a conventional phase-lock loop (PLL) circuit.
FIG. 2 is a block diagram of the PID filter of the PLL circuit of FIG. 1.
FIG. 3 is a block diagram of a PLL circuit in accordance with the present invention.
FIG. 4 is a block diagram of the PID filter of the PLL circuit of FIG. 3.
FIG. 5 is a block diagram of an alternate embodiment of a PLL circuit in accordance with the present invention.
Detailed Description
FIG. 3 is a block diagram illustrating a digital PLL 10' in accordance with the present invention. (Where the components are the same as those of FIG. 1, they are given the same reference designations. For example, the multiplexor 12 shown in FIG. 3 is identical to the multiplexor 12 shown in FIG. 1.) Like PLL 10 (FIGS. 1 and 2), in a "data receive" mode of operation, PLL 10' receives the analog input data signal, DATA, via a multiplexor 12. Analog-to-digital converter (ADC) 14 uses clock signal CLK to sample the analog input data signal and to generate digital data signal samples.
Phase comparator 16 receives the digital data signal samples generated by ADC 14 and generates a phase error signal which is representative of a phase error in the digital data signal samples.
A proportional-integral-derivative (PID) filter 18' is coupled to receive the phase error signal. PID filter 18' is shown in more detail in FIG. 4. (Where the components are the same as those of FIG. 2, they are given the same reference designations.) The integral path 26 of PID filter 18', utilizing adder element 28, accumulates successively received digital data signal samples into an integral register 30. (The accumulated value is designated in FIG. 4 as D.sub.I) The accumulated value D.sub.I is provided as a first input to an adder 32. The value from the derivative path 34 of PID filter 18' is provided as a second input to adder 32; and the value from the proportional path 36 of PID filter 18' is provided as a third input to adder 32. Adder 32 adds together the values provided to its three inputs and provides the result, as a digital frequency error value, to a primary digital-to-analog converter (DAC) 20. Referring back to FIG. 3, DAC 20 converts the digital frequency error value to an analog signal.
An offset value, C.sub.I-f, is provided from an offset register 38 to an offset DAC 40 (FIG. 3). Offset DAC 40 converts the offset value to an analog signal.
The analog signals from primary DAC 20 and offset DAC 40 are combined by a combiner 42 to generate an analog oscillator control signal. The analog oscillator control signal is provided to a voltage controlled oscillator (VCO) 22. The output of VCO 22 is the clock signal CLK which ADC 14 uses to sample the analog data signal DATA.
Thus, the offset value may be set during a "reference lock" mode as with conventional PLL 10 shown in FIGS. 1 and 2. However, rather than copying the offset value from initial offset register 38 into integral register 30 at commencement of "data receive" mode, the offset value would instead be retained in initial offset register 38 and provided to offset DAC 40 during "data receive" mode. Thus, the value D.sub.I in integral register 30 may be initialized to zero at commencement of "data receive" mode, leaving the full range of primary DAC 20 for locking onto the analog input DATA signal.
Also, referring again to FIG. 4, an external controller (not shown) may be utilized to load offset register 38 with a value other than that which would be determined during a "reference lock" mode. Furthermore, the external controller may be utilized to read the offset value C.sub.I-f, modify it, and write it back into offset register 38.
FIG. 5 is a block diagram of an alternate embodiment of a PLL circuit 10" in accordance with the present invention. (Again, where the components are the same as those of FIG. 1, they are given the same reference designations.) With the PLL circuit 10" of FIG. 5, rather than employing a "reference lock" mode, an offset value setting portion 49 (including a phase/frequency detector 50; a logic circuit 52; and a counter 54) is utilized to set the secondary frequency offset value provided to offset DAC 40.
In particular, phase/frequency detector 50 generates either UP output pulses or DOWN output pulses, depending on whether the SYNTH.sub.-- CLK output from frequency synthesizer 24 leads or lags clock signal CLK from VCO 22. Logic circuit 52 generates a phase error clock P.sub.-- CLK that is synchronized to the UP (or DOWN) output pulses. In addition, logic circuit 52 provides a direction output 53, the value of which is dependent on whether phase/frequency detector 50 is generating UP output pulses (direction output 53 is UP) or DOWN output pulses (direction output 53 is DN). With each rising edge of P.sub.-- CLK, an offset value held in counter 54 is either incremented or decremented, depending on whether direction output 53 is UP or DN. Thus, over time, counter 54 integrates the phase error in VCO 22 output CLK as compared with frequency synthesizer 24 output SYNTH.sub.-- CLK.
As with the FIG. 3 and 4 embodiment, offset DAC 40 of PLL 10" converts the secondary frequency offset value to an analog signal, and the analog signals from primary DAC 20 and offset DAC 40 are combined by a combiner 42 to generate an analog oscillator control signal. The offset value held in counter 54 may be reset under the control of the external controller (not shown).
While the present invention has been described in relationship to the embodiment described in the accompanying specification, other alternatives, embodiments, and modifications will be apparent to one skilled in the art. It is intended that the specification be only exemplary, and that true scope and spirit of the invention be indicated by the following claims.