METHOD AND APPARATUS FOR RESTORING DATA

Abstract: The invention relates to a method and apparatus for restoring at least one data signal (DATAIN) with the aid of a clock signal (CL). In the method at least two signal delay means (1,3) are arranged with time delay adjustable in time steps such that their time steps are given substantially the same responsiveness to at least one ambience factor, e.g. temperature. The first signal is delayed with the aid of a first one of the signal delay means. A first restored data signal (DATAOUT) is created by sensing the delayed first signal at given first times determined by the clock signal. The results of sensing at different sensing times are compared and the delay of the first signal by the first signal delay means is varied stepwise by varying the number of time steps in response to the comparison. The second signal delay means is used for relating a plurality of time steps to the clock signal period time. The magnitude of time steps in both the first and second signal delay means is controlled synchronously in response to the relating process to that the magnitude of a time step is in a given relationship to the clock signal period time. An apparatus in accordance with the invention inlcudes, apart from the signal delay means, first and second sensing, comparison and control means (2,4) connected to the signal delay means.

Description: TECHNICAL FIELD The present invention relates to the field of signal processing. More specifically, the invention relates to a method and apparatus for regenerating or restoring a data signal with the aid of an available, periodic clock signal. BACKGROUND ART Data signals which have been generated with a certain shape tend to become distorted during propagation in electrical circuits. After having passed through one or more electrical circuits, the data signal is given a time sequence which more ore less deviates from the time sequence it was given when it was generated. For binary data signals it is usual that the distortion appears, inter alia, in the form of pulse ratio changes and jitter. Distorsion in data signals can be caused by band limitations, crosstalk, reflections and other physical imperfections or limitations in electrical equipment. In systems where data signals are to propagate via a plurality of circuits and in certain other connections, the distortion can be so great that at one or more places it is necessary to restore the data signals so as not to risk that their capacity for carrying information shall be lost. There are several known methods and apparatus for more or less reconstructing or restoring data signals, particularly binary signals with data timing corresponding to a clock signal frequency. An automatic phase correction circuit for phasing in a data signal relative a clock signal is sumarily described in the article "BROADBAND SWITCHING NETWORK AND TV SWITCHING NETWORK FOR 70 MBIT/S" by K.D Langer, F. Lukanek, I. Vathke och and G. Walf, Heinrich-Hertz-Institut für Nachrichtentechnik Berlin GmbH, 1000 Berlin, Federal Republic of Germany. The phase correction circuit includes a signal delay means, sensing means and a phase detector. The phase correction circuit is said to function in principle so that it switches in and switches out delay elements. Apparatus for restoring a data signal and phasing it in relative a clock signal is described in "HIGH SPEED (140 MBIT/S) SWITCHING TECHNIQUES FOR BROADBAND COMMUNICATION", by D. Boettle and M. Klein, Standard Electric Lorenz AG (SEL), Research Center 7000 Stuttgart, Federal Republic of Germany. The apparatus includes an adjustable delay circuit connected for receiving and delaying the data signal which is to be restored. The apparatus also includes a phase detector connected for receiving the clock signal and the delayed data signal. In addition, the apparatus includes control logic connected to the phase detector and delay line. The phase detector senses the delayed signal at three or five sensing times determined by the clock signal. The control logic changes the delay of the delay line stepwise in response to the result of this sensing. Each step is approximately 1nS and the maximum delay of the delay line is approximately 7nS, which approximately corresponds to one period of the clock signal at the frequency of 140 Mbit/s. DISCLOSURE OF INVENTION A problem in certain known methods and apparatus for restoring or regenerating a data signal is that they are not adaptive or readily adjustable to different data speeds. Another problem in certain known methods and apparatus for regenerating or restoring a data signal is that they are sensitive to temperature and voltage variations as well as scatter in parameters in the manufacture of required means. A further problem in certain known methods and apparatus for regenerating or restoring a data signal is that they have certain difficulties in following dynamic phase alterations in the data signal without information being lost. Yet another problem in certain known methods and apparatus for restoring or regenerating several data signals with the aid of the same clock signal is that they have certain difficulties in coordinating certain operations in the restoration such that restoration or regeneration is made more efficient, with lower cost per data signal as a result. The invention has the object of solving these problems and enabling a method and apparatus for restoring or regenerating at least a first data signal with the aid of a clock signal. What is distinguishing for a method and apparatus in accordance with the invention, and particularly preferred embodiments thereof is disclosed in the independent and dependent claims. Somewhat simplified, it could be said that in a method in accordance with the invention at least two signal delay means are arranged with time delay having adjustable time steps so that their time steps are given substantially the same response to at least one ambience factor, e.g. temperature. The first signal is delayed with the aid of a first of the signal delay means. A first restored signal is created by sensing the delayed first signal at certain first times determined by the clock signal. The results of sensing at different sensing times is compared, and the delay of the first signal by the first signal delay means is varied stepwise by variation of the number of time steps in response to the comparison. The second signal delay means is used for relating a plurality of time steps to the period time of the clock signal. The time step magnitude of both the first and the second signal delay means is controlled synchronously in response to the relation so that the magnitude of one time step is in a given relationship to the clock signal period time. In the relating procedure there are preferably created two relating signals from the clock signal so that they are given a period time and a mutual pahse position in response to the clock signal period time. One relating signal is delayed a given number of time steps in relation to the other signal. The phase positions of the two relating signals after the delay are compared and the magnitude of a time step is controlled in response to their mutual phase position. For the mutual delay of the relating signals, two delay devices can be optionally utilized in the second signal delay means. In this case, the delay devices are arranged such that their time steps are given substantially the same amplitude and response to ambience as the first signal delay means. A method in accordance with the invention can be preferably utilized for also restoring a second data signal and to phase also the second data signal in relation to the available clock signal. In such a case the second signal is delayed with the aid of a third signal delay means. A second restored signal is created by sensing the delayed second data signal at certain second sensing times determined by the clock signal. The results of sensing the second data signal at different second sensing times are compared with each other. Finally, the delay of the second signal by the third signal delay means is varied stepwise by varying the number of time steps in response to the result of the comparison. Somewhat simplified, it could be said that an apparatus in accordance with the invention includes at least two signal delay means with signal time delays adjustable in equally as great time steps of controllable magnitude. The first of the signal delay means is connected for receiving and delaying the first data signal. A first sensing means is connected for receiving the first data signal delayed by the signal delay means, and the first signal comparison means senses the delayed first data signal at given first sensing times determined by the first clock signal. A first comparison or control means is connected for comparing the results of the sensing of the delayed first data signal and for controlling the number of time steps in the delay of the first data signal by the first signal delay means in response to the result of the sensing. A second signal delay means in the apparatus is arranged such that its time steps are given substantially the same response to an ambience factor as the first signal delay means. The apparatus also includes a second comparison and control means coupled to the first and the second signal delay means. The second comparison and control means relates a first magnitude representing the magnitude of the clock signal period time or a part of it to a second magnitude representing the magnitude of a plurality of time steps in the second signal delay means. In addition, the second comparison and control means controls the magnitude of the time steps in the signal delay means synchronously so that they are in a given relationship to the clock signal period time. The first and second magnitudes preferably constitute the phase difference between two relating signals. An apparatus in accordance with the invention preferably includes means for creating from the clock signal first and second relating signals which have a period time and a mutual phase position depending on the clock signal period time. The second signal delay means is then connected for achieving that one of the relating signals will be delayed by a given number of time steps in relation to the other relating signal. In the relation the second comparison and control means then compares the phase position of the two relating signals after the delay with each other and controls the magnitude of the time steps in the signal delay means in response to the result of the phase comparison. The second signal delay means preferably include two delay devices of a similar type as in the first signal delay means, arranged so that their time steps are given substantially the same magnitude and response to at least one ambience factor as the time steps of first signal delay means. The apparatus then includes means for creating from the clock signal a first and a second relating signal, these signals having a period time and a mutual phase position depending upon to the clock signal period time. Here, the two delay devices are connected for delaying their respective relating signal by different delay times differing by a given number of time steps. In the relation process, the second comparison and control means then compares the phases of the two relating signals after the delays and controls the magnitude of the time steps in the signal delay means in response to the result of the phase comparison. The signal delay means are preferably manufactured in the form of an integrated circuit, and are supplied with energy from a common voltage source. An inventive apparatus is preferably formed for also restoring a second data signal and phasing in this second data signal relative the available clock signal. A third signal delay means is then connected in the apparatus for receiving and delaying the second signal. In addition, a third sensing means is connected for receiving the clock signal and the second data signal delayed by the third signal delay means, the latter sensing the delayed second signal at given second sensing times determined by the available clock signal. A third comparison and control means is connected for comparing the results of the sensing and is also connected to the third signal delay means for controlling the number of time steps in the delay of the second signal by the third signal delaying means in response to the results of sensing the second data signal. Finally, the second comparison and control means is connected for also controlling the magnitude of the time steps in the third signal delaying means synchronously with the time steps in the first and second signal delay means. A method and apparatus in accordance with the invention and particularly preferred embodiments thereof primarily has the following advantages, which are accentuated in the preferred embodiments. The restoration functions well, and adjusts itself automatically to, different data speeds and clock frequencies within certain limits. Within certain limits the restoration will be more or less insensitive for scatter in parameters, temperature and voltage variations of the means used. It is possible to follow dynamic phase alterations in the data signal without data being lost. Resolution between the different sensing times can be automatically constant relative the clock signal period time. Further advantages will be understood by one skilled in the art after having studied the following description of preferred embodiments. BRIEF DESCRIPTION OF DRAWINGS Figure 1 illustrates, heavily simplified, an embodiment of an apparatus for carrying out restoration of a data signal in accordance with the invention, Figures 2-4 illustrate embodiments of means which can be included in an apparatus according to Figure 1, Figures 5-6 illustrate sensing data signals with the pulse ratio one and which are delayed equally as much, Figures 7-8 illustrate sensing data signals having different pulse ratios, Figures 9-10 illustrate sensing data signals having a pulse ratio which deviates heavily from one and which are differently delayed, Figure 11 illustrates an apparatus for carrying out restoration of several data signals in accordance with the invention. BEST MODES FOR CARRYING OUT THE INVENTION In Figure 1 there is illustrated, heavily simplified, an apparatus in accordance with the invention for restoring a data signal and phasing it in relative a periodical clock signal CL. The apparatus includes first signal delay means 1, first sensing, comparison and control means 2, second signal delay means 3 and second comparison and control means 4. The first signal delay means 1 has in Figure 1 a signal input, a signal output and control inputs. The first signal delay means is connected and implemented for receving a data signal DATA IN, which is to be restored, and to send this data signal to the means 2 with a given signal delay. The magnitude of the signal delay can be altered stepwise in substantially equally as great time steps via a first control input. The common magnitude of the time steps is controllable via a second control input. Means 2 are connected for receiving the clock signal CL and include sensing means connected and implemented for receiving the delayed data signal. The sensing means senses the delayed data signal at given first sensing times determined by the clock signal. Means 2 also include first comparison and control means connected and implemented for comparing the results of sensing the delayed data signal at given sensing times. The first comparison and control means has a control output connected to the first control input of the means 1 and is implemented for controlling the number of time steps in the signal delay of the first signal delay means in response to the results of the sensing. As with the first signal delay means the second signal delay means 3 has in Figure 1 a signal input, a signal output and control inputs. The signal input of means 3 is connected to the means 4 for receiving signals from means 4. The signal output of means 3 is connected to means 4 for resending to means 4 received signals with a given signal delay. The magnitude of the signal delay can be changed stepwise in substantially equally as great time steps via a first control input. The common magnitude of the time steps is controllable. The second signal delay means are arranged such that the time steps have substantially the same response to ambient temperature, feed voltage and other ambience factors as the time steps of the first signal delaying means. The comparison and control means 4 is connected for receiving the clock signal CL and for receiving delayed signals from the second signal delay means 3. In addition, the means 4, has one control output connected to the first control input of the second signal delay means and another control output connected to the second control inputs of both the first and the second signal delaying means. The second comparison and control means 4 relates a first magnitude representing the magnitude of the clock signal period time or a part thereof to a second magnitude representing the magnitude of a selected number of time steps in the second signal delay means. In response to the relation, the second comparison and control means controls the magnitude of the time steps in both signal delaying means synchronously so that they are in a definite relationship to the clock signal period time. In Figure 2 there is illustrated a first embodiment of second signal delay means and associated comparison and control means. The means include a pulse shaper 10, a first series-connected group of delaying elements 11-18 constituting a first delay device, a second series-connected group of delaying elements 21-28 constituting a second delay device, a phase detector 19 and a control signal circuit 20. The pulse shaper has an input connected for receiving the clock signal CL, a first output connected to a signal input of the delaying element 11 and a second output connected to a signal input on the delaying element 21. The delaying elements are mutually alike. Each element has a signal input and a signal output, a binary control input for time steps and an analogue control input for step magnitude. Each dealying element has a signal delay which can be altered by one time step by changing a binary signal on its binary control input. The magnitude of this time step can be controlled analogously with an analogue control signal a on its analogue control input. In Figure 2, all delaying elements in both groups (both devices) are fed with the same analogue control signal a on their analogue control inputs. All delaying elements therefore have the same step magnitude. The eight delaying elements 11-18 of the first device are fed with a binary control signal with the logical value 0 on their binary control inputs, while the eight delaying elements 21-28 of the second device are fed with a binary signal with the logical value 1 on their binary control inputs. Together, the eight delaying elements 11-18 in the first group therefore achieve a delay of signals from the pulse shaper to the phase detector which differ by eight time steps from the delay which the delaying elements 21-28 together achieve with signals from the pulse shaper to the phase detector. The pulse shaper generates on its first output a pulse train comprising pulses with an equivalent width corresponding to the clock signal period time T and with equivalent mutual spacing corresponding to a plurality of period times nT of the clock signal, preferably at least just as many period times as the number of delaying elements in a device. On its second output the pulse former generates a pulse train which is time-shifted but otherwise in agreement with the pulse train on the first output of the pulse former. The time shift between the pulse trains on the pulse former outputs corresponds to a period time T of the clock signal. The phase detector 19 has a first input connected to the signal output of the delaying element 18 and the second input connected to the signal output of the delaying element 28. The detector generates on its output an output signal representing the time shift between pulses received on the first input and corresponding pulses received on the second input. The group of delaying elements 21-28 which have a signal delay eight time steps shorter than the delay of the other group is connected to the output of the pulse former which sends the pulse train which is time-shifted a clock pulse period after the pulse train on the other output. The first delaying element 11 in the group which has a longer delaying time therefore receives a pulse from the pulse former 10 one clock signal period before the first delaying element 21 in the group which has a shorter delaying time receives the corresponding pulse from the pulse former. With respect to the arrival time to the phase detector, the time shift between the pulse trains on the pulse shaper outputs therefore counteracts the difference in time delay between the groups of delaying elements in the devices. If the time shift between the pulse trains on the pulse shaper outputs agrees with the difference between the signal delays of the first and second devices (groups) then corresponding pulses arrive simultaneously to the phase detector inputs. The control circuit 20 receives the output signal from the phase detector and generates in response to this signal an analogue control signal a for controlling the step magnitude of all delaying elements in both groups. The same analogue control singal also controls the step magnitude in the first signal delay means 1 in Figure 1. The signal from the phase detector indicates which of its inputs receives the pulses first and which of the inputs receives pulses last. With the analogue control signal a the control signal circuit strives to control the step magnitudes so that corresponding pulses arrive simultaneously to the phase detector inputs, which will be the case when the clock signal period time agrees with eight time steps. The control signal circuit therefore functions in co-action with the phase detector as a regulator for regulating the step magnitude according to the clock signal period time. The control signal circuit preferably has a proportional and integrating regulating function. In an apparatus according to Figure 1, the whole of the combination of signal delay means and comparison and control means illustrated in Figure 2 has the task of controlling the step magnitude in the first signal delay means so that it is in a given relationship to the clock signal period time. Figure 3 illustrates an alternative embodiment of a combination of signal delay means and comparison and control means having the same task. The means in Figure 3 include a pulse former 10' of the same type as in Figure 2, a switch 29, a group of eight series-connected delaying elements 11-18 of the same type as in Figure 2 constituting a delay device, a phase detector 19', a control signal circuit 20' with the same task as the control circuit in Figure 2, and a counter 30. The counter 30 has an output for a binary control signal connected to a control input on the switch 29, a control input on the phase detector 19' and to the binary control inputs on the delaying elements 11-18. The counter 30 receives the clock signal and counts its periods, as well as regularly changing the logical binary value of its binary control signal after a given number of clock signal periods. The pulse shaper 10' generates on its outputs mutually time displaced pulse trains with period times corresponding to the changes in the logical binary value of the counter's binary control signal. The switch 29 transfers pulses from one input of the pulse shaper to the delaying element 11 when the binary control signal has a given logical value and from the pulse shaper's second input to the delaying element 11 when the binary control signal has the opposite logical value. The delaying element 11 will therefore alternatingly receive pulses from one and the other output on the pulse shaper. Depending on the value of the binary signal, each delaying element 11-18 will delay a pulse either with a short or a longer time delay. The difference between the short and the longer delay in a delaying element is one time step. The changes in the binary control signal are adjusted to the pulse trains on the pulse former outputs so that pulses from one output of the pulse shaper to the phase detector are delayed by the delaying elements 11-18 eight time steps more than pulses from the other output of the pulse shaper to the phase detector. The time shift between pulses from different outputs on the pulse shaper have therefore been increased or decreased by eight time steps when the pulses arrive at the phase detector. The phase detector 19' generates on its output an output signal representative of the time delay between received pulses, this delay being in response to the time delay between corresponding pulses on the pulse shaper outputs and also to the magnitude of eight time steps in the delay device. The control signal circuit 20' recives the output signal from the phase detector and generates in response to this output signal an analogue control signal a for controlling the step magnitude of all delaying elements 11-18 in the delay device. The same analogue control signal a also controls the step magnitude of the first signal delay means 1 in Figure 1. With the analogue control signal a the control signal circuit strives to control the step magnitude so that eight time steps correspond to a clock signal period. The control signal circuit preferably has here a proportional and integrating regulating function. In Figure 4 there is illustrated an embodiment of first signal delay means and associated sensing, comparison and control means. The means include a group of nine series-connected delaying elements 31-39 of the same type as elements 11-18 and 21-28 in Figures 2-3, a shift register 40, three groups each having two series-connected delaying elements 41-46 of the same type as elements 11-18 and 31-38, a whole period delaying element 47, a half period delaying element 48, first shift logic 49 for the half period shift, second shift logic 50 for the time step shift, a switch 51, a first OR gate 52 and a second OR gate 53. All delaying elements 31-39 and 40-46 are supplied with the same analogue control signal a as the delaying elements 11-18 from the control signal circuit 20 in Figure 2, or 20' in Figure 3, or corresponding comparison and control means 4 in Figure 1. In addition, the delaying elements 31-39 are each supplied with a binary control signal b1-b9 from their respective register output on the shift register. The delaying elements 41, 43 and 44 are supplied with a binary control signal with the logical value 1, while the delaying elements 42, 45 and 46 are supplied with a binary control signal with the logical value 0. The clock signal CL is supplied to the whole and half period delaying elements. The shift register 40 has two register inputs of which the lefthand one is supplied a binary signal with logical value 0 and the righthand one a binary signal with the logical value 1. The shift register has a lefthand shift input connected to the output of the OR gate 52 and a righthand shift input connected to the output of the OR gate 53. In addition, the shift register has an output for binary control signal connected to a control input on the switch 51. The shift register has just as many register positions for storing a binary number as the number of delaying elements 31-39. For each register position the register has an output connected to the binary control input of one of the delaying elements 31-39. The binary control signal bx to a given delaying element has the same logical value, i.e. 0 or 1, which is stored in the corresponding register position x . The collective delay in the delaying elements 31-39 therefore depends on the number of zeros and ones in the shift register. By shifting in to the left more ones from the righthand register input, or shifting in to the right more zeros from the lefhand register input, the total delay in the delaying elements 31-39 can be changed stepwise in equally as great time steps. In brief the difference between the embodiments of figure 2 and 3 could be summarized in the following way. In figure 2 the delay means comprises two delay devices delaying different pulses from the pulse shaper. In Figure 3 the delay means comprises only one delay device used in time division multiplex for delaying different pulses from the pulse shaper. Data signals which are to be restored are supplied to the signal input of the delaying element 31. The second shift logic 50 has three inputs for delayed data signals connected to the signal outputs on the delaying elements 42, 44 and 46. Due to the three groups, each with two series-connected delaying elements, being supplied different combinations of binary control signals, the data signals on the three inputs of the shift logic 50 will be mutually time shifted one time step. The data signals on the input which is connected to the signal output to the delaying element 42 will arrive one time step before corresponding data signals arriving at one of the ramining input, but one time step after corresponding data signals arriving on the other of the remaining inputs of the step shift logic 50. The step shift logic 50 has a first output connected to an input on the OR gate 52 and a second output connected to an input of the OR gate 53. The step shift logic senses the data signals on its three inputs at first sensing times t s determined by the clock signal, and compares the results of corresponding sensings. When corresponding sensings of all three data signals give the same binary result, the step shift logic does not generate shift pulse on any of its outputs. On the other hand, when the result of sensing one of the data signals received from the delaying element 44 or 46 differs from the results of sensing corresponding data signals on both remaining inputs, the step shift logic generates a shift pulse on either of its outputs. On which output a pulse is generated depends in such a case on which of the sensings gives a binary result which is different from both the others. The step shift logic sensing is illustrated in Figure 5. Sensing of all three binary data signals takes place simultaneously at the sensing times t s . The data signals occur on the respective input from right to left, i.e. the uppermost data signal in Figure 5 is time shifted one time step after the middle data signal, while the bottommost data signal is time-shifted one time step before the middle data signal. To obtain a clear figure, the magnitude of the time steps has been exaggerated in relation to the clock signal period time. The sensing times t s are not centered in relation to the changeovers between different binary values in the middle data signal. This, in combination with the upper and lower data signals being time shifted in relation to the middle data signal means that the result of sensing the lower data signal deviates in certain cases from the result of corresponding sensing of the middle data signal. On the other hand, the result of sensing the upper data signal agrees at all t s -times with the result of corresponding sensing of the middle data signal. By observing Figure 5, it will be immediately understood that if all data signals could be shifted somewhat to the left in Figure 5 relative the sensing times, i.e. if all data signals could be delayed a little further, then the result of the sensings of the bottommost data signal would always agree with the result of sensing the middle data signal. Such a further delay is just what the second shift logic achieves. This further delay means that the sensing times t s determined by the clock signal are centered at least to a certain extent, in relation to the transitions between different binary values in the middle data signal. This can also be expressed by saying that the middle data signal is phased in towards the sensing times determined by the clock signal. Figure 6 illustrates the sensing of three data signals which are delayed compared with the data signals in Figure 5. Neither are the sensing times t s centered here in relation to the transitions between diffferent binary values of the middle data signal. This in combination with that the upper and the lower data signals are time shifted in relation to the middle data signal means that the result of sensing of the upper data signal deviates in certain cases from the result of corresponding sensing of the middle data signal. On the other hand, the result of sensing the bottom data signal at all t s -times agrees with the result of corresponding sensing of the middle data signal. By observing Figure 6 it will be immediately understood that if all data signals could be shifted somewhat to the right in the Figure relative the sensing times t s , i.e. if the delay of all data signals could be reduced somewhat, then the result of sensing the uppermost data signal at any t s -time would always agree with the result of sensing the middle data signal. Such a decrease in delay of the data signals is just what the second shift logic achieves. This reduction means that the sensing times t s determined by the clock signal are at least to a certain extent centered in relation to the transitions between different binary values in the middle data signal. This can also be expressed by saying that the middle data signal is phased in towards the sensing times determined by the clock signal. The phasing of the data signal described above functions well for data signals which have a pulse ratio which is approximately one. On the other hand, there can be problems if the data signal pulse ratio heavily deviates from one. For remedying these problems, the means in Figure 4 have a first shift logic 49 for increasing or decreasing delay in the elements 31-39 by just as many time steps as correspond to half a clock signal period. The first shift logic 49 has three inputs for delayed data signals connected to the signal outputs of delaying elements 42, 47 and 48. The delays in elements 47 and 48 amount to a whole and a half clock signal period, respectively. The signals on the inputs of the shift logic 49 will therefore be mutually time-shifted by a half and a whole clock signal period, respectively. The shift logic senses the data signals on its three inputs at sensing times determined by the clock signals, and compares the binary results of corresponding sensings with each other. Where corresponding sensings of all three data signals give the same binary results, the shift logic 49 does not generate any shift pulse on its output connected to the switch 51. When the result of sensing the data signal from the delaying element 48 agrees with the result of corresponding sensing of either the data signal from the element 42 or 47, the shift logic 49 does not generate any shift pulse either. On the other hand, if the result of sensing the data signal from the delaying element 47 agrees with the result of sensing the data signal from the element 42, but the result of sensing the signal from the element 48 differs from both the others, the shift logic generates a number of shift pulses on its output. The number of shift pulses which are then generated agrees with the number of time steps corresponding to a half clock signal period. Thus, if eight time steps correspond to a complete clock signal period, the shift logic 49 generates four shift pulses in appropriate cases. In response to a binary control signal from the shift register, the switch 51 expedites possible shift pulses either via a first output to the OR gate 52 or via a second output to the OR gate 53. The binary control signal from the shift register has one binary value if more than half of the shift register positions have stored a one and the opposite binary value if less than half of such positions have stored a one. If more than half of the position have stored a one, the pulses from the shift logic 49 will therefore result in that the shift register is shifted to the right as many steps that the delay in the element 31-39 increase by a half clock signal period. On the other hand, if less than half of the positions have stored a one, pulses from the shift logic will result in the shift register shifting to the left as many steps as the collected delay in the delaying elements 31-38 decreases by half a clock signal period. In Figure 7 there is illustrated sensing of three data signals at the sensing times t s . The uppermost data signal has the pulse ratio 1 and its transistions between logical levels are centered in relation to the sensing times. The middle data signal corresponds to the uppermost one, but it is distorted so that it has shorter duration for the higher level and longer duration for the lower level. Its pulse ratio therefore deviates substantially from one. The bottom data signal also corresponds to the uppermost one, but is distorted so that it has longer duration for the higher level and shorter duration for the lower level. Its pulse ratio therefore also deviates substantially from one. It will be seen from Figure 7 that sensing the distorted data signals gives the same result as for the undistorted signal when the sensing times t s are centered in relation to the transitions between different logical levels of the signals. In Figure 8 there is illustrated sensing of three data signals corresponding to those in Figure 7, but time-shifted so that the sensing times t s are not centered in relation to the transitions between different logical levels of the signals. For the data signal with the pulse ratio one there is obtained the same sensing result as in Figure 7. On the other hand, an incorrect result is obtained for the distorted signals at certain sensing times. If all the data signals in Figure 8 could be time-shifted by half a clock signal period, the sensing result would be correct for all three signals. Such a time shift by half a clock signal period is just what the first shift logic 49 ahcieives. Figures 9 and 10 illustrate data signals sensing by the first shift logic. The signals in Figure 9 all correspond to the middle signal in Figure 7 or 8 and are mutually time-shifted by half a clock signal period. All the signals in Figure 10 correspond to the bottom signal in Figure 7 or 8 and are mutually time-shifted by half a clock signal period. At the sensing times t* s there is obtained a different result differing from the sensing of the middle data signal than from the simultaneously sensed uppermost and bottom signals. This differing result is utilized by the first shift logic 49 as a criterion for the need of changing the delay by half a clock signal period. In Figure 11 there is illustrated an apparatus for also restoring a second data signal and phasing in this signal relative to the clock signal CL. The apparatus according to Figure 8 differs from that according to Figure 1 by a third signal delay means 5 and by third sensing and comparison and control means 6. The means 5 and 6 function individually and together in the same way as the means 1 and 2, but regenerate a second data signal received on the input IN2. The third signal delay means 5 receives on its second control input the same analogue control signal a from the means 4 as the first and second signal delay means. The means 1-6 are preferably designed as a part of a common VLSI circuit, and are thus supplied with energy from a common voltage source. The invention is not limited to the above-described embodiments or to what is illustrated in the Figures. For example, it is conceivable to relate the time step magnitude to the clock signal period time using somewhat different means and in a somewhat different way than in accordance with Figure 2 or 3. The number of delaying elements does not need to be the same in the first and second signal delaying means, and the number can be more than nine or less than eight. The first shift logic can include logical circuits with a filtering function. The shift logic does not then immediately generate a number of shift points as soon as the result of sensing the data signal from the delaying element 48 differs from the result of sensing both remaining signals. Instead, the shift logic then generates the shift pulses only after the results of the sensing have differed more than once in a predetermined manner, e.g. for three successive sensings. It is conceivable per se that the second shift logic also has logical circuits with a similar filtering function as the first shift logic.

Claims: A method of regenerating at least a first data signal and phasing the first data signal in relation to an available periodic clock signal (CL), the first signal being delayed with the aid of a first signal delay means (1), said first signal delay means having a delay time which can be changed stepwise in a plurality of substantially equally as great time steps, the size of the time steps being controllable, a first restored data signal being created by sensing the delayed first data signal at first sensing times (t s ) determined by the clock signal, the results of sensing at different sensing times being compared, and the delaying time of the first delay means being varied stepwise by varying the number of time steps in response to the result of the comparisons, characterized by arranging a second signal delay means (3) of a similar type as the first one so that its time steps are give substantially the same magnitude and response to at least one ambience factor as the first means, in that the magnitude of a plurality of time steps in the second delay means is compared to the clock signal period time (T), and that in response to the result of the comparison the magnitude of the time steps of both the first and the second signal delay means is controlled synchronously so that the magnitude of a time step is in a definite relationship to the clock signal period time. Method as claimed in claim 1, characterized in that at the relating process two relating signals (P1, P2) are created from the clock signal with the aid of the second signal delay means, one relating signal being delayed a given number of time steps in relation to the second relating signal, in that the phases of the two relating signals after the delay are compared and in that a given mutual phase position exists between both relating signals after the delay. Method as claimed in claim 1 characterized in that at the relating process there is created a first relating signal (P1) and a second relating signal (P2) from the clock signal, said relating signals being given a period time (nT) and a mutual phase position in response to the clock signal period time, in that the first relating signal is delayed with the aid of the second signal delay means a given number of time steps in relation to the second relating signal, in that the phases of the two signals after the delay are compared, and in the magnitude of a time step is controlled such that a given mutual phase positionexists between both relating signals after the delay. Method as claimed in claim 1, charactericed by arranging two delay devices in the second signal delay means (21-28) of a similar type to the first (31-39) delay means is arranged such that their time steps are given substanially the same magnitude and response to at least one ambience factor as the first delay means, in that at the relating process there is created a first relating signal (P1) and a second relating signal (P2) from the clock signal, these signals being given a period time (nT) and a mutual phase position in response to the clock signal period time, in that the delay times of the two delay devices are adjusted so that their delay times differ by a given number of time steps, in that one of the relating signals is delayed with the aid of one of the delay devices and the other of the relating signals is delayed with the aid of the other delay device, in that one of the phases of the relating signals after the delays are compared, and in that the magnitude of a time step is controlled in response to the result of the phase comparison. Method as claimed in claim 2, for also restoring a second data signal and phasing it in relation to the available clock signal, characterized in that the second data signal is delayed with the aid of a third signal delay means (5), in that a second restored data signal is created by sensing the delayed second signal at certain second sensing times determined by the clock signal, in that the results of sensing the second data signal at sensing times are compared with each other, and in that the delay of the second data signal by the third signal delay means is varied stepwise by varying the number of time steps in response to the result of the comparisons. Apparatus for restoring at least a first data signal and phasing the first data signal in relation to an available periodical clock signal (CL), said apparatus including a first signal delay means (1) connected for receiving and delaying the first data signal, said first signal delay means having a time delay of signals which can be changed stepwise with substantially equally as great time steps, said time steps having a magnitude which is controllable, said apparatus including sensing means connected for receiving the first delayed data signal, the sensing means sensing the delayed first data signal at certain first sensing times determined by the clock signal, said apparatus including first comparison and control means connected for comparing the results of sensing the delayed first data signal and for controlling the number of time steps in the delay of the first signal delay means in response to the results of the sensings, characterized by a second signal delay means (3), of a similar type to the first one and arranged such that its time steps are given substantially the same response to at least one ambience factor as the first signal delay means, by second comparison and control means (4) connected to the first and second signal delay means, in that the second comparison and control means compare a first magnitude representing the magnitude of the clock signal period time (T) or a part of the clock signal period time with a second magnitude representing the magnitude of a plurality of time steps in the second signal delay means, and in that the second comparison and control means in response to the result of the comparison synchronously control the magnitude of the time steps in the signal delay means such that they are in a given relationship to the clock signal period time. Apparatus as claimed in claim 6, characterized in that the first and second magnitudes constitute phase differences between two relating signals (P1,P2) which are derived from the clock signal and delayed different amounts with the aid of the second signal delay means. Apparatus as claimed in claim 6, characterized by means (10.10') for creating from the clock signal a first (p1) and a second (P2) relating signal, which relating signals have a period time (nT) and a mutual phase position responsive to the clock signal period time, in that the second signal delay means (11-18) is connected for achieving that one relating signal will be delayed a given number of time steps in relation to the second relating signal, in that the second comparison and control means (19, 19',20,20') in the relation compares the phases, after the delay, of the two relating signals with each other, and in that the second comparision and control means controls the magnitude of the time steps in the signal delay means in response to the result of the phase comparison. Apparatus as claimed in claim 6, characterized by two delay devices in the second delay means (21-28) of a similar type to the first (1) signal delay means, arranged such that their time steps are given substantially the same magnitude and response to at least one ambience factor as the first signal delay means, by means (10) for creating from the clock signal first (P1) and second (P2) relating signals, the relating signals having a period time (nT) and a mutual phase position responsive to the clock signal period time, in that the first and second delay devices are each connected for delaying its own relating signal by different delay times, said delay times differing by a given number of time steps, in that the second comparison and control means (19,20) compares in the relating process the phase positions of the two relating signals after the delays, and in that the second comparison and control means controls the magnitude of the time steps in the signal delay means in response to the result of the phase comparison. Apparatus as claimed in claim 6 for also restoring a second data signal and phasing it in relation to the available clock signal, characterized by a third signal delay means (5) being connected for receiving and delaying the second data signal, in that a third sensing means is connected for receiving the clock signal and the second data signal delayed by the third signal delay means, said third sensing means sensing the delayed second data signal at given second sensing times determined by the available clock signal, by a third comparison and control means connected for comparing the results of sensing and for controlling the number of time steps in the delay of the second data signal in the third signal delay means in response to the results of the sensing of the second data signal, and in that the second comparison and control means is also connected for controlling the magnitude of the time steps in the third signal delay means synchronously with the time steps in the first and second signal delay means. Apparatus as claimed in claim 6, characterized in that the signal delay means are manufactured in the form of a common integrated circuit and that they are supplied with energy from a common voltage source.

Inventors: HEDBERG, MATS OLOF JOAKIM
Applicants: TELEFONAKTIEBOLAGET L M ERICSSON
Application year: 1989
Main classification: H04L7
IPC codes: H04L7