Control of phase locked loop during change of synchronisation source

Abstract
The invention concerns a function taking place in a digital phase lock, when it is desired to exchange a synchronization signal supplied to the phase lock for another synchronization signal. Using a cut-off circuit, the phase difference between a selected reference signal and a signal formed by dividing from an oscillator signal is set with time constant accuracy at the setting value for the phase difference. The method according to the invention, then uses as phase setting value the current value of the phase difference obtained by cut-off connection. Thus, the method according to the invention begins using a reference signal-specific setting value instead of a fixed setting value. Since the setting value is determined adaptively in accordance with the signal of the synchronization source used at each time, no phase transfer will occur during the change.
Description


FIELD OF THE INVENTION

[0001] This invention concerns a function taking place in a digital phase lock, when it is desired to exchange a synchronisation signal supplied to the phase lock for another synchronisation signal.



TECHNICAL BACKGROUND

[0002] In telecommunication systems, node equipment transmits and receives data from each other through a transmission network connecting the nodes. Data cannot be received correctly unless the clock of the receiving circuit is synchronised with the frequency and phase of the incoming data. Almost without exception, the clock frequency of the receiving circuit is formed by a PLL (Phase Locked Loop).


[0003] The purpose of the phase lock is to remove jitter, migration and other interfering components occurring in the synchronisation signal. A long transmission distance will affect signal quality, and a distorted input signal makes great demands on the clock signal regeneration block.


[0004] If a trouble situation occurs on the route of the synchronisation signal, another synchronisation source may have to be used, whereby the phase lock will exchange the synchronisation source, which worked as reference, for another synchronisation source. Also during a change of the network structure and during network element updates such a situation may occur, when the phase lock of the receiving equipment must change the synchronisation source. The phase lock must be able to cope also with such situations.


[0005] A typical phase lock structure is shown in FIG. 1. The phase difference meter 13 compares the phase difference between signal P1 selected as reference signal and signal P2 formed by dividing from oscillator signal P3 by calculating, how many pulses of oscillator signal P3 can be accommodated between the rising or falling edges of the signals to be compared. For example, the frequency of signal P2 may be two times the frequency of signal P1. The frequency of signal P3 is considerably higher than the frequencies of signals P1 and P2.


[0006] Microcomputer 14 must form a control word for the D/A converter. The control word is obtained from the results of measurements performed by phase difference meter 13. From measurements obtained during a certain measuring period, the microcomputer calculates an average, which together with an average calculated earlier is used for forming the control word.


[0007] D/A converter 15 converts the control word from digital form into analog form, which after the conversion is supplied to crystal oscillator 16. The crystal oscillator generates signal P3, which is used for generating signal P2 for use in the phase difference measurement.


[0008] Divider 18 receives signal P3 from cut-off circuit 17 of the oscillator signal. The cut-off circuit is intended to control the exchange of synchronisation signal sources. If for some reason it is desired in selection circuit 12 to exchange the signal of synchronisation source 10 for the signal of another synchronisation source 11, then the microcomputer 14 of the phase lock will with signal CUTC prevent the oscillator signal from having access to the divider forming signal P2 for a time T at a time. After the cut-off, the phase of signal P2 seen by the phase difference meter will transfer by time constant T compared with the phase of signal P1. By performing a suitable number of signal cut-off operations and by reading the value of the phase difference meter after each cut-off, it is possible to set the phase difference of signals P1 and P2, whose phases are compared, with an accuracy of time constant T at the average SETM of the phase meter. Thus, the phase difference is transferred by successive cut-offs as close as possible to the above-mentioned average.


[0009]
FIG. 1 shows the structure of a typical state-of-the-art phase lock. It is obvious that the structure can also be of another kind. For example, divider 18 and the signal cut-off function 17 may be functionally connected between selection circuit 12 of the synchronisation input and phase difference meter 13. Hereby the microcomputer will give a cut-off command CUTC to cut off signal P1. There may be a divider and a cut-off circuit also in both the places mentioned.


[0010] In FIG. 2 a dashed line illustrates a situation, where a cut-off operation taking place during a change of synchronisation signal has allocated the phase of signal P2 at a desired value with a precision of time constant T. The selected setting value is an average SETM of the maximum possible number of pulses between the above-mentioned rising or falling edges. Signal P2 shown by a solid line shows the desired relative location of phases.


[0011]
FIG. 3 shows a time slot of the calculation to be performed in the phase difference meter. In this example, the calculation starts from the rising edge of signal P1 and ends at the following rising edge of signal P2.


[0012] The phase lock is started after the phase setting described above, whereby the phase difference will set at setting value SETM within a certain setting time. During the setting time, such an undesirable phase transfer occurs in the output signal of the phase lock, which may cause transfer errors or e.g. buffer overflows.


[0013]
FIG. 4 illustrates in flow chart form a state-of-the-art method for changing the synchronisation source in a phase lock. When a decision on exchange of synchronisation signal is desired in the system (step 48), a change measure is taken (step 41). If a change of synchronisation signal is not desired, the phase lock continues to maintain the phase difference at its setting value SETM (step 47).


[0014] After the change of synchronisation signal, the phase difference meter measures the phase difference SETC (step 42). The measurement value of the phase difference meter is compared with the phase difference setting value (step 43). If the absolute value of their difference is higher than the value of time constant T, an oscillator signal cut-off operation is performed (step 44) by giving a CUTC command. But if the said absolute value is lower than or equal to the value of time constant T, then the adjustment algorithm of the phase lock is started in step 45. The adjustment algorithm aims at adjusting the phase difference at its setting value SETM (step 46). When the setting value is reached, the adjustment algorithm will aim at maintaining the phase difference at its setting value (step 47).


[0015] The phase transfer occurring in the change of synchronisation source is a problem with the state of the art described in the foregoing. This phase error is seen in the output signal, and it may cause trouble situations, such as e.g. transfer errors or buffer overflows.


[0016] The present invention aims at avoiding the described state-of-the-art problem. This aim is achieved in the manner described in the independent claims.



BRIEF SUMMARY OF THE INVENTION

[0017] The method in accordance with the invention at first works in the same manner as described above during a change of synchronisation source. The phase difference between the selected reference signal and the signal formed by dividing from the oscillator signal is set with the aid of cut-off circuit at the setting value of the phase difference with time constant accuracy.


[0018] Thereupon, in the method according to the invention, the current value of phase difference obtained by cut-off circuit is in fact used as a steady state setting value, instead of the average value of the phase difference meter or any other predetermined fixed value. Thus, the method according to the invention begins using a reference signal-specific current value as the setting value. Since the setting value is thus adaptively determined according to the signal of the current synchronisation source, no phase transfer will occur during the change.







LIST OF FIGURES

[0019] In the following, the invention will be described in greater detail with reference to the examples in FIGS. 2 . . . 6 shown in the appended drawings, wherein


[0020]
FIG. 1 shows a state-of-the-art phase lock circuit,


[0021]
FIG. 2 shows allocation by cut-off circuit of signals, whose phases are to be compared,


[0022]
FIG. 3 shows calculation performed by a phase difference meter between rising edges,


[0023]
FIG. 4 illustrates in flow chart form the operation of a state-of-the-art phase lock during a change of synchronisation source,


[0024]
FIG. 5 shows phase value setting in accordance with the invention, and


[0025]
FIG. 6 illustrates in flow chart form the operation of a phase lock according to the invention, during a change of synchronisation source.







DESCRIPTION OF THE INVENTION IN DETAIL

[0026] The adjusting function of the phase lock can be divided into two parts: into a normal adjustment mode and into a reference signal exchange mode taking place during a change of synchronisation source. In the normal adjustment mode, the phase lock aims at keeping the crystal oscillator frequency as close as possible to the reference source frequency, while in the exchange mode the phase lock aims at setting the crystal oscillator frequency as close as possible to the reference source frequency.


[0027] It should be noted, that during the change of synchronisation source the adjustment algorithm thus works in two different modes of operation: first in the exchange mode, and thereupon in the normal mode, which adjusts the oscillator signal into the final desired phase.


[0028]
FIG. 3 shows calculation taking place in the phase difference meter. The phase comparator calculates, how many pulses of signal P3 can be accommodated between the rising edge of signal P1 and the rising edge of signal P2. The adjustment algorithm of the microcomputer has a setting value for a number of pulses, by which the phase lock attempts to keep the phasing in place.


[0029] The normal mode of the phase lock tries to keep the phasing at this desired setting value. However, during a change of reference signal, the phase difference of signals P1 and P2 may be so great, that the desired phasing with a certain accuracy is achieved in a shorter time with the cut-off operation of the oscillator signal described in the foregoing.


[0030] The SETM setting value is an originally fixed value already programmed at the factory into the phase lock's microcomputer. As was described above, successive cut-off steps can be taken to allocate signal P2 at the SETM setting value with an accuracy of time constant T. SETC is the current value of the phase difference obtained as the result of the phase difference measurement after the last cut-off. FIG. 5 shows the SETC value thus obtained in relation to signals P1 and P2. By setting SETC as the desired phase difference value instead of SETM, the fixed phase difference value, no such phase transfer will occur, which is shown in FIG. 2, but the phase lock is directly at its desired value after the cut-off connection taking place during the change of synchronisation signal. The normal mode of adjustment may begin operating from an ideal situation. Signal P2 shown in FIG. 5 by a solid line depicts a signal stage, where the phase lock is going over to the normal mode. The signal drawn with a dashed line illustrates a situation, into which signal P2 ought to set in the phase lock's normal mode, if the SETM value would be used as the setting value.


[0031] The method according to the invention, is shown as a flow chart in FIG. 6. In other respects the function is similar to the known method described above, but differences will occur after signal P1 or P2 is directed by successive cut-off steps close to the setting value of the phase difference (step 63). Before going over to the normal mode of the phase lock, the phase lock's adjustment algorithm is given SETC, the phase difference current value obtained from the phase difference measurement as the result of transfer of signal P1 or P2, as a new setting value of the phase value (step 65). Only thereafter the phase lock's adjustment algorithm is started (step 66). Thus, the state-of-the-art adjustment of the phase difference at its setting value as shown in FIG. 4 (step 46) is left out.


[0032] Thus, the method according to the invention moves on from the use of a fixed setting value of the phase difference to a synchronisation signal-specific measurement value of the phase difference. The change of setting value takes place in the exchange mode of the synchronisation source, when it is noticed that the phase difference is sufficiently close to a certain fixed value. For this reason, the change of synchronisation signal will not cause any phase transfer in the output signal of the phase lock.


[0033] Although the invention was described above with reference to the examples shown in the appended drawings, it is self-evident to professionals in the branch that the invention can be modified within the scope of the inventive idea described above and in the appended claims. The solution can be applied in different operating environments and applications. For example, phase transfer of the signal to be compared can also happen in other ways than by cutting off the signal.


Claims
  • 1. Method for controlling a phase locked loop during change of synchronisation source, in which method the synchronisation signal is changed from a first synchronisation to a second synchronisation signal, the phase difference between the said second synchronisation signal (P1) and a signal (P2) formed from the phase lock's oscillator is measured, the phase difference between the second synchronisation signal and the signal formed from the phase lock's oscillator is changed, if the measured phase difference is greater than a predetermined limit value, whereupon the phase difference between the said second synchronisation signal and the signal formed from the phase lock's oscillator is again measured, the phase locked loop's normal adjustment function is started, when the measured phase difference is less than or equal to the said limit value, characterized in that in response to the finding, that the said phase difference is less than or equal to the said limit value, the measured phase difference is set as the setting value for the phase difference for the normal adjustment function of the phase locked loop, whereupon the adjustment function is started.
  • 2. Method as defined in claim 1, characterized in that phase transfer of the second synchronisation signal is carried out by preventing for a certain time access of the signal formed from the phase lock's oscillator to the component measuring the phase difference of the phase locked loop.
  • 3. Method as defined in claim 2, characterized in that preventing takes place by cutting off the functional route of the signal formed from the oscillator to the component measuring the phase difference of the phase locked loop.
  • 4. Method as defined in claim 2, characterized in that preventing takes place by cutting off the functional route of the second synchronisation signal to the component measuring the phase difference of the phase locked loop.
  • 5. Digital phase lock arrangement, which includes, selection components (12,14) for selecting the desired synchronisation source from a set of at least two different synchronisation sources, a phase comparator (13), which has a first and a second input and which is used for generating an output signal dependent on the phase difference between the signals supplied to the inputs, controllers (14) for forming a control word in response to the said output signal which is dependent on the phase difference, and an oscillator (16), which is controlled with the aid of the said control word, characterized in that the said controllers (14) also include setting components for setting the measured phase difference as a setting value for the normal adjustment function of the phase lock.
  • 6. Arrangement as defined in claim 4, which includes starting components for starting the normal adjustment function of the loop, characterized in that the said starting components respond to the setting components in order to start the adjustment function in response to the setting of a setting value.
Priority Claims (1)
Number Date Country Kind
991507 Jul 1999 FI
Continuations (1)
Number Date Country
Parent PCT/FI00/00557 Jun 2000 US
Child 10017888 Dec 2001 US