Field of the Invention
The present invention refers to a digital phase locked loop (DPLL) which has a linear type phase characteristic.
Background of the Invention
Phase locked loops are mainly used in transmission systems of the syncronous type in order to generate a sequence of timing pulses the frequency of which is locked at the frequency of a reference signal. In the past this type of loop (circuit) was made mainly by adopting analogical type solutions which, over the last few years have become destined to be substituted by digital type solutions, due especially to the fact that the first sort tend to have problems of calibration, thermal drift, ageing of components and linearity, which are not to be found in the digital type solutions.
Therefore, digital phase locked loops have been studied and developed which mostly have a phase characteristic of a sinusoidal type.
This type of loop however, has the inconveniency that the phase error picked up by them is a function, not only of the phase shift between the reference signal and the signal generated locally, but also of the power of the reference signal (input signal). As a consequence, the value of said phase error may appear erroneously altered when the level of the input signal is susceptible to variations. In order to minimize the entity of said variations, the said solutions of the type already well known, include the use of a gain controlling amplifier (see Holly C. Osborne--IEEE Transaction on Communication--Vol. Com. 28 No. 8 August 1980--pages 1343-1363) which makes the said reference signal available on the output with a level of a predetermined entity and in any case without the aforementioned fluctuations. Said gain controlling amplifier is however an analogical type circuit which has the same calibration and drift problems as those illustrated above, and therefore makes the advantages gained from the presence of digital type solutions in the phase locked loop itself, all in vain.
In the IEEE magazine Transaction on Communication--Vol. Com. 30 No. 10 October 1982--pages 2398-2411, a digital phase locked loop is illustrated which is therein indicated with the title "Digital Tanlock Loop", which has a phase characteristic of linear type in order to make the loop's operation insensitive to variations in the level of the input signal. However, the loop therein described has a linearity field of a limited entity (from -.pi. to +.pi.=2.pi.) and its implementation requires the use of sampling circuits or loops and of an analog-digital converter, which in turn have the inconveniencies described above with reference to analogical systems and phase locked loops with sinusoidal type phase characteristics. Furthermore, said type of unit limits the operational speed of the phase locked loop as it is not possible to operate with high frequency signals.
Object of the Invention
The aim of the present invention is to produce a digital phase locked loop having a linear phase characteristic in a much wider field (-2.pi. to +2.pi.=4.pi.), without having to use components which present the typical inconveniencies of analog components or which introduce limits in operational speed. A further aim is to individuate solutions to make the loop's hardware particularly simple as well as being implementable in an integrated form.
Summary of the Invention
For this purpose the phase locked loop, object of this invention, includes the presence in combination of the following characteristic elements:
a phase comparator designed to compare the phase of a first signal (reference signal) with the phase of a second signal (signal generated locally), and also to make available on a first output a signal expressing the sign of the frequency shift and on a second output a signal expressing the entity of the phase shift;
counting means, connected to the first and second output of the phase comparator and fed by a sequence of timing pulses at high frequency (with respect to the frequency of said first signal), designed to convert the duration of each of the pulses present on the second output of the phase comparator into digital form;
digital filtering means, designed to receive on their input the first and the second output of the phase comparator, as well as the output of the counting means, and also designed to make available on their output a binary configuration expressing the control signal for a digital control oscillator;
a digital control oscillator constituted by a computer designed to receive on its present inputs the said control signal provided by the filtering means and on its counting input the said sequence of timing pulses, and furthermore, designed to output the said second signal.
All the means listed above may be implemented with purely digital units and do not have limits in operational speed, excepting those imposed by the type of technology adopted. Furthermore, thanks to the use of a phase comparator designed to output both the entity and the sign of the shifting, the hardware of the counting means and the filtering means is noticeably simplified with respect to the corresponding units used in other solutions of known types.
Brief Description of the Drawing
These and other characteristics of the invention will be made clearer by the following description which refers to a non-limiting example and is complete with the attached diagrams in which:
FIG. 1 shows the block diagram of the phase locked loop made according to the invention;
FIG. 2 shows wave forms referring to FIG. 1;
FIG. 3 shows the basic diagram of the digital filter DLF in FIG. 1;
FIG. 4 shows one way of making the counters CN.sub.1 or CN.sub.2 in FIG. 1;
FIG. 5 shows another version of the DLF unit in FIG. 1;
FIG. 6 shows the same diagram as FIG. 3 but modified in accordance with the presence of the MR means in FIG. 1.
Specific Description
The block diagram shown in FIG. 1 includes a phase detector PD which receives on its first input a signal F.sub.1 constituting the reference signal, and on its second input a signal F.sub.2 constituting the signal generated locally. Said signals reach the timing input of their respective D type bistable circuit FF.sub.1 and FF.sub.2 which have their data input continuously connected to a reference potential.
The outputs from the units FF.sub.1 and FF.sub.2 are input into an exclusive logical sum unit EX, as well as being input into a logical product unit P. This latter unit has its output connected to the reset input of the FF.sub.1 and FF.sub.2 units. The output from the FF.sub.1 unit also comes onto the data input of another D type bistable circuit FF.sub.3, which receives the output of the FF.sub.2 unit on its timing input.
In FIG. 2, diagrams 1 and 2, the said signals F.sub.1 and F.sub.2 are illustrated, and in particular in FIG. 2a the signal F.sub.1 leading on the signal F.sub.2 is illustrated, whilst in FIG. 2b the opposite solution is taken into consideration.
In diagrams 3 and 4, on the other hand, the waveforms corrisponding to the output from the FF.sub.1 and FF.sub.2 units are illustrated, whilst in diagram 5 and 6 the waveforms corrisponding respectively to the outputs from the FF.sub.3 and EX units are illustrated.
From an examination of the waveforms shown in FIG. 2a and FIG. 2b it becomes evident that a sequence of pulses the duration of which expresses the entity of the phase shift between the sequence F.sub.1 and the sequence F.sub.2 corrisponds with the output from the EX unit (diagram 6). Whilst a logical level "0" in the case of the opposite situation occuring (diagram 5b): therefore, the logical level of the FF.sub.2 output expresses the sign of the phase shift.
It is to be noted that the presence of the bistable circuit FF.sub.3 can be considered superfluous in the great majority of cases in as much as the information concerning the sign S of the phase shift can be picked up on the output from the FF.sub.1 unit.
The presence of the FF.sub.3 unit is necessary solely when the circuits that follow after have a very high operational speed, and in any case that is high enough to pick up the presence of the pulses (very narrow) illustrated in diagram 3 of FIG. 2b.
The output from the phase comparator PD is input into counting means CM designed to convert into numerical form each of the pulses of sequence 6 which corrisponds to the output from the EX unit. Thanks to the adoption of a phase comparator PD that provides both the sign and the entity of the phase shift the said counting means can be implemented by means of a simple up-down counter CN.sub.1 ; this latter unit receives on its counting input C a sequence of timing pulses CK at very high frequency (in relationship to the frequency of the input signal F.sub.1), on its reset input R the output of the EX unit (CN.sub.1 starts counting, or else is reset, when the output from the EX unit is active, or else non-active), and on its counting direction control input U/D the output from the FF.sub.3 unit (or FF.sub.1 if FF.sub.3 is missing).
In correspondence with each phase comparison carried out by the PD unit, the CN.sub.1 unit outputs a binary configuration expressing the entity of the phase shift measured. Said configuration is input into the digital filter of the ring DLF which utilizes a particularly simple and economical storage unit. In fact, in order to carry out the aforesaid filtering, it is necessary to store the results from the phase measurements carried out previously, before the one actually being carried out, as well as the algebraical sum of the entity measured against the stored entity. Thanks to the use of the said PD unit designed to output the phase shift sign, the function described above can easily be implemented by means of a further up-down counter CN.sub.2. In the already known sorts of unit, on the other hand, implementation of this function necessitates the use of memory organs and of an arithmetical and logical unit ALU which carry out the aforementioned adding and storage functions. The CN.sub.2 unit (on the contraty to the CN.sub.1 unit), is never reset in as much as the output from the EX unit in this case is input into the start counting qualification input EN; therefore, the CN.sub.2 unit counts either up, or down, (in relationship to the logical level of the signal S), the pulses of the CK sequence, during the instants in which the pulses output from the EX unit qualify it to start counting. Furthermore, the digital filter also includes the presence of an adder circuit FA designed to receive on its input the numbers available on the outputs of the CN.sub.1 and CN.sub.2 units, as well as to sum said number and input the result to a register RG; this latter memorizes the output of the digital filter during the instants in which disactivation of the EX unit's output is registered. A digital word is available on the output of the RG unit which tends to modify the phase of the locally generated signal unit it coincides with that of the reference signal. In fact, the output from the digital filter DLF is input into a digitally controlled oscillator DCO which receives the said sequence of pulses CK and outputs the F.sub.2 signal.
The DCO unit can be implemented by means of a presettable counter which after each phase comparison receives the output signal of the digital filter DLF, automatically presetting itself at the end of each count. As a consequence of this, the DCO unit modifies the phase of the signal corresponding to its own output, in as much as the instant in which its own counting cycle finishes is modified.
The structure of the DLF unit described above is designed for the implementation of a second order filter, the basic diagram of which is represented in FIG. 3. In this diagram the input signal i(n) reaches the storage organ of the filter, therein represented by an adder circuit and a memory element D, and implemented in FIG. 1 by means of the unit CN.sub.2. The signal i(n) also reaches an element K.sub.0 designed to effect a multiplication function that is necessary in order to effect the filtering function. A second multiplication element is indicated with K.sub.1 and is connected to the output of the accumulator; the outputs of the elements K.sub.0 and K.sub.1 are input into an adder which is implemented in FIG. 1 by means of the unit FA. It must be noted that the invention makes it possible to carry out a further simplification in respect to loops of the known type, in as much as the elements K.sub.0 and K.sub.1 are implemented through the counters CN.sub.1 and CN.sub.2 ; these latter are really made up of just as many counting chains, one of which is shown in the diagram in FIG. 4. Said structure is designed to carry out the multiplication function mentioned above in as much as it includes a first section CN' with N outputs, K of which referring to the least significant bit are neglected. Another section CN" with K outputs is cascade connected to the section CN'. It can be shown that the number K of the neglected least significant bits defines the multiplication factor of the filter and in the end the cutoff frequency of the filter. The most significant N-K outputs of the section CN' together with the K outputs of the section CN" are input into the adder circuit FA.
Implementation of a first order filter is noticeably simplified with respect to the structure described above in as much as it does not require the units CN.sub.2 and FA to be present, and consequently the CN.sub.1 unit is connected directly in input to the RG unit. Therefore the invention allows implementation of the multiplication function by means of counting chains which are much simpler and more economical than the multiplication circuits used in the known types of system. On the basis of a further form of realization of the invention, the digital filter DLF can be implemented by means of a microprocessor system .mu.P as is shown in FIG. 5. The unit .mu.P carries out a cycle of operations after each phase measurement carried out by the unit PD (pulses illustrated in diagram 6 of FIG. 2). Said cycle includes the processing of the binary configuration available on the output of the unit CN.sub.2 (or CN.sub.1, and in this case .mu.P carries out the storage function usually carried out by CN.sub.2 within itself), in order to make the numerical (digital) control signal of the DCO unit available.
Delaying means MR are also shown in FIG. 1 which are not absolutely essential to the circuit's operation although their presence is in some case advantageous in as much as it gives greater operational stability to the circuit. The presence of said means MR is however particularly useful when the DPLL loop is used to make a sequence of timing pulses available that is phase locked to an input signal F.sub.1 modulated for example according to a code of the two-phase type; said coding forsees sending into the line levels 0-1 when the binary signal has a logical level .0., and sending on levels 1-0 when the binary signal has a logical level 1. In the known types of DPLL loops the abovementioned stability problems are resolved by inserting a multiplier circuit into the ring (see Holly C. Osborne in the aforementioned document--page 1359). However said unit is not easily implemented so the invention includes the presence of means designed to delay the signal F.sub.2 by means of using particularly simple and economical circuital solutions which are also designed to easily vary the entity of the delay.
According to this invention the delay of the signal F.sub.2 may easily be obtained by acting on the filtering unit DLF, and in particular on its storage organ which in this case is constituted by the CN.sub.2 unit. The said delaying means MR are made up basically by a dividing organ DV (for example of the programmable type), which at the end of each phase comparison decreases the entity accumulated by CN.sub.2 by a predetermined number of steps which is in any case linked to the entity of delay desired to be obtained. By using a DV unit of the programmable type it is possible to obtain a delay, for example of .pi./2, which if required can easily be varied by modifying the programming of the DV unit; furthermore the programmed entity remains constant even with the varying of the frequency of the input signal. The MR means also include the presence of a D type bistable circuit FF.sub.4 which receives on its timing input the said signal E inverted and has its data input constantly connected to a reference potential. Operation of the DLF unit remains unaltered as far as the carrying out of each phase measurement is concerned (said measurement is taken during each pulse of the sequence E). The decreasing operation described above is started as from the transition "1".fwdarw."0" of each pulse of the sequence E, in as much as said transition determines the switching of the FF.sub.4 unit, which in turn qualifies the DV unit to carry out the division of the CK sequence.
A logical level .0. corresponds to the inverted output of the FF.sub.4 unit, which through a first logical sum unit O.sub.1, determines qualification for counting of the CN.sub.2 unit (EN signal); furthermore, this latter unit receives on its counting direction control input (U/D signal) the level forseen for counting backwards, through a logical sum unit O.sub.2.
Therefore the CN.sub.2 unit decreases its own contents by an entity determined by the DV unit; in fact activation of the output of said unit causes the reset of the FF.sub.4 unit which, by means of the O.sub.2 unit, qualifies the CN.sub.2 unit during the time in which the output of the EX unit is not active. It can be shown that by decreasing the entity accumulated by CN.sub.2 by a predetermined number of steps, we can obtain the effect of delaying the signal F.sub.2 by an entity linked to the aforesaid number of steps.
By completing the phase locked loop with the delaying means described above, the basic diagram of the digital filter DLF in FIG. 3 is modified as illustrated in FIG. 6. In said figure the size .epsilon. indicates the entity by which the contents of the accumulator are decreased and in the end the entity of the delay shown by the signal F.sub.2 in respect to F.sub.1. Following up all that has been described above, it soon becomes evident that the loop of this invention is implementable with particularly simple and economical units which do not create any limits in operational speed, excepting those that are typical of the type of technology with which said units have been produced. If the said units are made in ECL technology, the loop is suitable to operate at frequencies in the order of about a hundred MHz. It must be kept in mind that the value of the operating frequency affects the degree of definition of the measurements carried out. In fact the loop is designed to measure phase shifts of an entity that is not less that the period of the said CK sequence and consequently, the higher the operating frequency is, the higher is the degree of definition. Therefore, by producing the loop with a technology that makes it possible to reach high operation speeds it is possible to carry out measurements with a particularly high degree of definition. It must also be borne in mind that the value of said operational frequency, also influences the jitter associated to the signal F.sub.2, as well as the abovementioned degree of definition. The pulses of the sequence F.sub.2 are infact subject to jitter, the entity of which is a function of the relationship between the frequency of the said CK sequence and the frequency of the input signal (see D'Andrea and Russo--IEEE Transaction on Communication--Vol. Com. 26--No. 9, September 1978--pages 1355-1364). For example, by adopting a CK signal with a frequency of 1024 KHz and an input signal with a frequency of 4 KHz, the result is that the jitter associated to the pulses of the F.sub.2 sequence is of about 2.8 degrees. Therefore by adopting an operating frequency of a high value it is possible to obtain a jitter of the entity described above, the negative effects of which may be considered negligible. Furthermore, the loop has a linear phase characteristic in a particularly wide field (from +2.pi. to +2.pi.=4.pi.), in accordance with the established purpose of the invention.
It is possible, without overstepping the limits of the invention, to connect a digital analog convertor to the output of the DLF unit (not illustrated), and substitute the DCO unit with a voltage controlled unit. This latter implementation can be useful when the F.sub.2 signal must have a high frequency.