Digital signal-edge time measurement circuit

Abstract: A ring oscillator has its inverter states in respective inner stages changed at a time unit longer than a period of a master clock M CK and is oscillated at a period longer than the period of the master clock M CK. The inverter states of the respective stages of the ring oscillator are captured by a flipflop circuit and a value indicating each of these states is subtracted by a subtractor from numerical figures indicating the inverter states in the respective stages of the ring oscillator as captured at the timing of the master clock M CK by other flipflop circuits for outputting the difference signal as a signal indicating the position of the input signal edge.

Description: This invention relates to a digital phase-locked loop (PLL) circuit and, more particularly, to a digital PLL circuit in which an edge position of the input signal waveform is detected and the PLL operation is performed in a digital fashion based on the detected edge position. In general, the PLL circuit is a phase synchronizing circuit in which the phase of an input signal follows the phase of a reference signal. An analog PLL circuit is made up of a phase comparator, a low-pass filter and a voltage-controlled oscillator. Recently, there has been proposed a digital PLL circuit in which the operation of the analog PLL circuit is to be performed in a digital fashion. With the digital PLL circuit, the phase difference between the PLL output signal and the input signal is measured using a master clock. That is, the phase difference between the edge of the input signal and the output clock of the PLL circuit is found by the master clock. Based on such phase difference, the output clock is controlled so as to be in phase with the input clock. A demand for precision at least one digit higher than the bit clock of the input signal is raised on the master clock. As the clock frequency of the input signal is increased, it becomes increasingly difficult to select the master clock frequency so as to be higher by at least one digit because the operating clock frequency can not be increased without limitations. Thus a demand is raised for a digital PLL circuit which permits facilitated phase difference detection without employing a higher frequency of the master clock. In a digital PLL circuit, the input signals are sampled with the master clocks. The timing of the input signal edge, produced by such sampling, contains an error dependent on the master clocks. Therefore, for inhibiting data errors in the PLL circuit, it is necessary to sample the input signal with the master clock having as short a period as possible to capture the timing of the input signal edge accurately. Recently, for overcoming the situation in which limitations are imposed on the master clock frequency because of semiconductor process constraints despite the demand for a higher reproducing clock frequency, such a PLL circuit has been desired in which a satisfactory error rate may be assured even if the ratio of the master clock frequency/PLL output clock frequency is on the order of 2 or higher. The present inventors have disclosed in Japanese Application SHO 62-127168 (JP Patent Publication KOKAI No.63-292825) a technique in which the time duration of an number of output clock pulses of the PLL circuit is detected using a master clock having a predetermined frequency and the time duration is multiplied by 1/N to find the period of the PLL clocks with a degree of precision equal to N times the master clock. According to the teaching of the Japanese Application No. SHO 62-175732 (JP Patent KOKAI Publication No. 64-19826), the output time duration of an N/K number of output clocks of the PLL circuit is sequentially detected and the K number of the sequentially detected time durations is multiplied by 1/N to find the data of the output clock period. By these techniques, the digital PLL is constituted using master clocks of a lower frequency. The European Application EP-A-0 467 712 discloses a phase detection circuit, in which a reference signal is latched at zero crossings of an input signal, and the outputs of a ring oscillator are latched with the latched reference signal. Recently, the output PLL clock frequency (reproducing clock frequency) has been increased in keeping up with higher system performance and there is a demand for a master clock frequency to PLL output clock frequency ratio on the order of 2 to 3. Since the error rate tends to be increased with the above techniques, further improvement is desired. According to the present invention, there is provided an input signal edge time measurement circuit comprising a ring oscillator having an odd number of inverters connected in a ring; means for detecting edges of an input signal; first latch means for capturing states of various stages of said ring oscillator at the timing of a detected edge of said input signal; second latch means for capturing the states of the respective stages of said ring oscillator at the timing of a master clock; and edge position calculating means for comparing the states of the respective stages of said ring oscillator captured by said first latch means and the states of the respective stages of said ring oscillator captured by said second latch means and for outputting a difference between these states as an edge position detection signal. Preferably, said edge position calculating means comprises third latch means for capturing an output of said first latch means at a rise timing of said master clock and fourth latch means for capturing an output of said first latch means at a decay timing of said master clock, and wherein an output of said third latch means and an output of said fourth latch means are selected when the edge of said input signal is in a high level domain of said master clock and in a low level domain of said master clock, respectively, and the output thus selected is compared to an output of said second latch means by said edge position calculating means. Advantageously, said ring oscillator is made up of inverter elements with variable delay and wherein said delay is switchingly selected responsive to the ratio of the period of oscillation of said ring oscillator to the master clock period. The circuit for measuring the timing of an input signal edge may be desirably applied to a digital PLL circuit which further comprises: means for sampling the input signal arranged to output an edge detection signal indicating the presence or absence of an edge of the input signal at the timing of the master clock; reproducing clock generating means for outputting reproducing clocks based on phase error data and reproducing clock period data; and phase error detection means for finding the phase error data representing the phase error between the reproducing clocks and the input signal edge based on said edge position detection signal and said edge detection signal and for transmitting the phase error data to said reproducing clock generating means. Preferably the PLL circuit further comprises reproducing clock period detection means for detecting period data of the reproducing clocks from said reproducing clock generating means for transmitting the period data to said reproducing clock generating means. In the hereinafter described embodiments of the present invention, since the states of the various stages of the ring oscillator are changed with the time run obtained by dividing the oscillation period of the ring oscillator by the number of stages of the ring oscillator as a unit, the difference in capturing timing by the first and second latch units may be represented by the measurement time unit run. That is, the input signal edge for each master clock period may be represented highly accurately by the measurement time unit run. The phase error between the reproducing clock and the input signal edge may be found with the accuracy of the measurement time unit run based on the input edge position represented by the measurement unit run so that optimum FLL operation may be maintained even although the master clock period approaches the reproducing clock period. Advantageously, said phase error detection means comprises: a first shift register to which said edge detection signal is entered; a window circuit for limiting an output of said first shift register to a number of bits corresponding to one period of a reproducing clock; a first latch circuit for capturing bits passed through said window circuit; edge bit position detection means for detecting the possible presence of the input edge and a corresponding bit position thereof from the value captured by said first latch circuit; a second shift register to which said edge position detection signal is entered; a selector for selecting an output of said second shift register which is the edge position detection signal for which said edge detection signal indicates the present of an edge of the input signal; a second latch circuit for capturing an output of said selector; and means for subtracting a value corresponding to a zero phase error edge position from a combined output of an output of said edge bit position detection means and said output of said selector captured by said second latch circuit for producing said phase error data. To allow better understanding, embodiments of the present invention will now be described by way of non-limitative example with reference to the drawings, in which: Fig.1 is a schematic block circuit diagram showing an arrangement of a circuit for measuring the input signal edge timing in a digital PLL circuit according to the present invention. Fig.2 is a circuit diagram showing an arrangement of a ring oscillator employed in the PLL circuit shown in Fig.1. Fig.3 is a timing chart for illustrating the operation of the ring oscillator shown in Fig.2. Fig.4 is a timing chart for illustrating the operation of edge detection of the input signal. Fig.5 is a timing chart for illustrating the operation of edge position detection of the input signal. Fig.6 is a circuit diagram of an exemplary binary translating circuit. Fig.7 is a schematic block circuit diagram showing a phase synchronizing circuit of the digital PLL circuit shown in Fig.1. Fig.8 shows specific values of signals indicating the edge positions. Fig.9 shows the calculation of edge positions for a phase error of 0. Fig.10 is a block circuit diagram showing an exemplary window generator in Fig.7. Fig.11 illustrates the operation of the window generator shown in Fig.10. Fig.12 is a block circuit diagram showing the window circuit of Fig.7 and the peripheral circuitry. Fig.13 is a block circuit diagram showing an exemplary circuit for measuring a reproducing clock period. Fig.14 is a timing chart for illustrating mistaken detection of the input edge position. Fig.15 is a schematic block circuit diagram of a circuit for measuring the edge timing of input signals in a manner free from mistaken detection of the input edge position. Fig.16 is a timing chart for illustrating the operation of the circuit shown in Fig.15. Fig.17 is a circuit diagram for illustrating a modified embodiment for inhibiting mistaken detection of the input edge position. Fig.18 is a timing chart for illustrating the operation of the circuit shown in Fig.17. Fig.19 is a block circuit diagram for illustrating an exemplary ring delay time measurement circuit and an exemplary ring delay selection circuit shown in Fig.15. Fig.20 is a block circuit diagram showing an embodiment of a ring oscillator having delay times selectable by switching. Fig.21 is a circuit diagram showing an embodiment of an inverter employed in the ring oscillator having delay times selectable by switching. Fig.22 is a schematic block circuit diagram showing a phase synchronizing circuit in which a loop gain switching control means is annexed to the digital PLL circuit according to the present invention. Fig.23 illustrates a PLL lock decision signal. Fig.1 shows, in a block circuit diagram, arrangement of an input signal edge measurement circuit employed in the digital PLL circuit according to the present invention. In Fig.1, an RF (high frequency) signal RFin, clocks of which are to be reproduced, is supplied to an i-nput terminal 11. A master clock signal MCK, which is to be a reference signal, is supplied to an input terminal 12. The RF input signal RFin is supplied to a data input terminal D of a flip-flop 13, to which the master clock MCK is entered as a clock, so that the input signal RFin is captured at the timing of the master clock. An output of the flip-flop 13 and a corresponding signal delayed by one master clock period by the flip-flop 14 are supplied to an exclusive OR circuit 15 for edge detection. A detection signal ED, timed to the master clock signal MCK, indicating the presence or absence of the input edge, is outputted at an output terminal 16. The RF input terminal RFin from input terminal 11 is also supplied to a delay element 21 having a delay time sufficiently shorter than the master clock period TMC and an exclusive-OR circuit 22 for edge detection before being supplied to a clock input terminal of a flip-flop circuit 23. The flip-flop circuit 23 is composed of an number n of flip-flops connected in parallel. The number n corresponds to the number of stages n of a ring oscillator 30 which is an odd number, such as 15. That is, the flip-flop circuit 23, composed of these n flip-flops, plays the role of capturing the states of the stages of the n-bit ring oscillator 30, consisting of a circular array of n stages of inverters, into each of the data input terminals D thereof depending on the edge detection outputs of the RFin input signal. The flip-flop circuit 23 consists of 15 flip-flops connected in parallel for capturing the states of the 15 stages of the inverters making up the ring oscillator 30. An exemplary arrangement of the ring oscillator 30 is explained by referring to Fig.2. In the arrangement of Fig.2, the number n is set to 5 for simplicity of the explanation. Referring to Fig.2, five-stage or five-bit ring oscillator 30' comprises five inverters 31a, 31b, 31c, 31d and 31e connected in a ring. Since number of the inverters is the odd number, there exists an inverter which remains in the same polarity "H" even although the input is changed to "H". If an output of the inverter is changed to "L" after a delay proper to the inverter, the state is transferred to the next inverter. This assures stable oscillation. In the arrangement shown in Fig.2, a two-input NAND gate is employed as element 31a for starting and stopping the oscillation of the ring oscillator 30'. The NAND gate 31a has its one terminal supplied with an output signal from the inverter 31e, while having its other terminal supplied with a control signal for controlling the oscillation. Fig.3 shows signal waveforms of various parts of the ring oscillator 30' shown in Fig.2. Thus the control signal STOP and output signals a , b , c , d and e of the inverters 31a, 31b, 31c, 31d and 31e are shown. The delay times of these inverters 31a, 31b, 31c, 31d and 31e are indicated as τa, τb, τc, τd and τe, respectively. If the control signal STOP rises, the inverted output signal a from inverter 31a decays after lapse of time τa. The signal inversion occurs sequentially by the subsequent inverters 31b to 31e so that an output signal waveform as shown at (b) to (e) in Fig.3 is produced. The period TRN of these output signals depends on the propagation time of the five inverters of the ring oscillator 30'. TRN = 2(τa + τb + τc + τd + τe) If the delay times τa, τb, τc, τd and τe of the inverters are equal to one another, such that τa = τb = τc = τd = τe = τ0, then TRN = 10 τ0 The delay per inverter and the number of stages of the inverters are set so that the period of oscillation TRN of the ring oscillator is longer than the period TMC of the master clock MCK. It is because the timing can not be determined if the same state of the ring oscillator appears more than once during one period of the master clock MCK. If attention is drawn to the rise of the output signals a to e in Fig.3, the signals b , d , a , c and e appear in this order. These signals b , d , a , c and e are output as oscillator outputs S1, S2, S3, S4 and S5 at the output terminals 32(1), 32(2), 32(3), 32(4) and 32(5), respectively. It is these output signals S1 to S5 that are supplied to the respective flip-flops making up the flip-flop circuit shown in Fig.1. In the embodiment of Fig.1, a 15-stage ring oscillator 30, made up of 15 inverters, is employed, and the output signals S1 to S15 of the inverters are supplied to data input terminals D of the 15 flip-flops making up the ring oscillator 30. In the flip-flop circuit 23, the output signals S1 to S15 of the ring oscillator 30 are captured by the flip-flops at the timing of the RF input signal RFin for performing fine time measurements as later explained, above all, detection of input signal edges with respect to the rising edges of the master clock MCK. If attention is drawn only to the signal rise as mentioned above, for the states of the inverters of the ring oscillator 30, the unit time of measurement τun, which is to be a unit for measuring the input signal edge position as later explained, is twice the delay time τ0 of the inverter, that is, τun = 2τ0. Fig.4 shows a signal waveform for illustrating the operation of input edge detection for each master clock by the flip-flops 13 and 14 and the exclusive OR 15 shown in Fig.1. Referring to Fig.4, flip-flop 13 captures the RF input signal RFin from the input terminal 11 of Fig.1 at the rise timing of the master clock signal MCK to output a signal FF13. The flip-flop 14 delays the output signal FF13 by a delay time equal to a master clock period TMC to output a signal FF14. The exclusive OR 15 takes an exclusive OR of these signals FF13 and FF14 to supply a signal EX15 at an output terminal 16. The "H" state of the output signal EX15 represents the state of edge detection at the directly.previous clock period. This enables detection of the possible presence of the input signal edge for each master clock. Referring to the signal waveform shown in Fig.5, the timing measuring operation for the input signal edge by the ring oscillator 30 made up of 15 inverters shown in Fig.1, that is the operation of measuring the delicate edge position within the master clock period TMC, is hereinafter explained. Referring to Fig.5, the ring oscillator 30, made up of the 15 inverters, is adapted for measuring the time with the unit time τun, finer than the master clock MCK, as shown by an output signal RS. The time difference d between the rising edge of the master clock MCK and the rising or falling edge of the RF input signal RFin is measured by the ring oscillator output signal RS based on the unit time τun. Specifically, the master clocks MCK are supplied from the input terminal 1 to the flip-flop circuit 27 made up of a number of flip-flops equal to the number of inverters of the ring oscillator 30 so as to be captured by these flip-flops as clocks. The states of the inverters of the ring oscillator 30 are captured by the flip-flops at the timings of the rising edges of the master clocks MCK. An example of an output of the flip-flop circuit 27 is shown in Fig.5 as a signal FF27. Edge detection of the RF input signal RFin from the input terminal 11 is made by the delay element 21 and the exclusive OR circuit 22 to produce an edge detection signal EX22. The edge detection signal EX22 is supplied to a clock input terminal of each flip-flop of the flip-flop circuit 23 so that the states of the inverters of the ring oscillator 30 are captured by the flip-flops at the timing of the edges of the input signal. An output signal FF23 of each flip-flop of the flip-flop circuit 23 is supplied to each flip-flop of the next-stage flip-flop circuit 24. Since the master clock MCK is supplied as clock to the flip-flop circuit 24, the signal FF23 is re-captured at the timing of the rising edge of the master clock MCK to produce an output signal FF24 from the flip-flop circuit 24. The output signal RS of the ring oscillator shown in Fig.5 is indicated by the numbers 1 to 15 corresponding to the 15 states of the ring oscillator 30 made up of the 15 inverters. That is, these 15 states correspond to the states (15 states) obtained by dividing the period of oscillation of the ring oscillator TRN by the number of the inverters. The output signals FF23, FF24 and FF27 of each flip-flop circuit are indicated by the figures corresponding to the inner stages of the ring oscillator 30. For example, the state of the ring oscillator output RS at the rising timing t1 of the master clock MCK i Fig.5 is "1". This state is captured by the 15 flipflops of the flipflop circuit 27. Consequently, the state of the output of the flip-flop circuit 27 since this timing t1 becomes "1". As a concrete example of the operation of measuring the fine position within the master clock period TMC in Fig.5, the operation of measuring a time period d1 since the rising edge timing t11 of the input signal RFin until the rising timing t2 of the next master clock MCK is explained. At the edge timing t11 of the input signal RFin, the stage of the ring oscillator output RS is "2". This state "2" is captured by the flip-flop circuit 23 so that an output becomes "2". This output "2" of the flipflop circuit 23 is captured by the flip-flop circuit 24 at the timing t2 so as to be transmitted to a binary conversion circuit 25. The state of the ring oscillator output RS at timing t2 is "9". This state "9" is captured by flip-flop circuit 27 so that an output "9" is transmitted to binary conversion circuit 28. These outputs of flip-flop circuits 27, 24 represent output states of the 15 flip-flops. These states are converted by the binary conversion circuits 28, 25 into numerical data BN28, BN25, respectively. In the example of Fig.5, the numerical data "9" and "2" are transmitted to a subtractive unit 26. The concrete construction of the binary conversion circuits 28, 25 is explained subsequently by referring to Fig.6. The value of the output of the subtractive unit 26 is equivalent to the time duration d1, indicating the fine position of the input signal edge in terms of the unit time τun. The time duration since time point t2 until the rising time t3 of the next master clock MCK is "7" (9 - 2). That is, the time duration d1 since the input edge time t11 until the rising time of the master clock t2 is measured to be substantially equal to the delay time of 7 τun ( 14 τ0) corresponding to seven time units of measurement τun (= 2 τ0) of the ring oscillator 30. In a similar manner, the time duration d2 since the falling edge t12 of the input signal RFin until the next rising time t4 of the master clock MCK is found as an output value "3" (= 10 - 7) from the subtractive unit 26 which effects subtraction of the output state of the ring oscillator output RS at timing t12 of "7" from the output state of the output RS at timing t4 of "10". The concrete construction of the binary conversion circuits 28, 25 is explained by referring to Fig.6. In this figure, a construction in which seven states outputted from a ring oscillator made up of seven inverters are converted by binary conversion is shown for simplicity. Referring to Fig.6, seven flip-flops F1 to F7 correspond to the flip-flop circuits 24 or 27. The states of the input signals S1 to S7 are captured by these flip-flops F1 to F7 at the timings of rising edges of the master clock MCK. Outputs of the flip-flops F1 to F7 are transmitted to an earliest signal detection circuit 41 in which a signal which has just risen is detected and set to be "1", with the remaining signals being "0". Since the signals S1 to S7 are arrayed chronologically in the rising order, if a signal S k is "H" and the next signal S k+1 is "L", the signal S k is the above-mentioned earliest signal. The value of k is 1 to 7 and k + 1 = 1 if k = 7. For finding the condition tat a given signal S k is "H" and the next signal S k+1 is "L", the earliest signal detection circuit 41 is made up of inverters N1 to N7 and AND gates A1 to A7. As for outputs of the earliest signal detection circuit 41, only one output becomes "H" ("1") for the states of the signals S1 to S7, with the remaining outputs being all "L" ("0"). For expressing these outputs in a binary form, a 7-3 encoder 42 made up of AND gates A10 to A12 is employed. Outputs of the second, fourth and sixth AND gates A2, A4 and A6 of the earliest signal detection circuit 41 are supplied to an AND gate A10 on the side of the least significant bit B 0 . Outputs of the third, fourth and seventh AND gates A3, A4 and A7 of the earliest signal detection circuit 41 are supplied to an AND gate All, while outputs of the fifth, sixth and seventh AND gates A5, A6 and A7 of the earliest signal detection circuit 41 are supplied to an AND gate A12 on the side of the most significant bit B 2 . By such arrangement, 7-line inputs are converted into 3-bit binary code data. Heretofore, when the output of the AND gate A1 of the earliest signal detection circuit 41 becomes "1", the 3-bit output of the 7-3 encoder becomes "000". As the outputs of the AND gates sequentially become "1", the 3-bit output is changed sequentially into "001" to "110". In this manner, the states of outputs of the flip-flops 27, 24 shown in Fig.1 are converted by the binary conversion circuits 28, 25 into respective binary values which are transmitted to the subtractive unit 26 where the output of the binary conversion circuit 25 is subtracted from the output of the binary conversion circuit 28. An output of the subtractive unit 26 represents the time which elapses since the edge of the input signal RFin until rise of the next master clock MCK, that is the above-mentioned time durations d1 or d2, represented by measurement time units τun. This subtraction output is supplied to a multiplier 36. The multiplier 36 multiplies the subtraction output by the measurement unit time τun based on the states of the inverters of the ring oscillator 30 to find the fine input edge position time durations d1 and d2. The fine position time duration is represented by numerical figures based on the master clock period TMC as a reference. In the present embodiment, a period TRN of the operation of the ring oscillator 30 from a ring delay time measurement circuit 33 is transmitted to multiplier 36. The numerical figure of the multiplication output is converted, by state inversion by inverter 37, into the time duration which elapses since the input edge time until the rising edge of the immediately preceding master clock MCK, such as TMC - d1 or TMC - d2. This time duration signal is output at an output terminal 38 as an edge position signal EP. For example, if the edge position signal EP is a 6-bit signal, it represents the time since the rising edge of the master clock MCK until the rising edge of the next master clock by a binary fractional number (0.)000000 ∼ (0.)111111, with the master clock period TMC being 1. In effect, the foremost "0" of the integer part is not employed. With the above-described input signal edge timing measurement circuit, an output of the ring oscillator 30, made up of an odd number of inverters coupled to one another in a ring, is captured by the flip-flop circuit 23 as a first latch means at an edge detection timing of the input signal RFin. It is also captured by the flip-flop circuit 27 as a second latch means at the timing of the master clock MCK. The difference between the states of these outputs captured by the first and second latch means is represented by time and taken out as an edge position signal to enable the input edge position or edge timing in terms of the measurement time units τun which is the time duration of change of states of the ring oscillator 30, that is the period of oscillation of the ring oscillator TRN divided by the number of inverters or inverter stages. This assures high-precision measurement of the input signals. By applying the input signal edge timing measurement circuit to the digital PLL circuit, satisfactory PLL operation may be achieved without regard to the master clock frequency even with the frequency close to the playback clock frequency. The digital PLL circuit may be provided in which an error rate is not deteriorated because the edge timing is not affected in accuracy despite a lower master clock frequency. An exemplary construction of a phase synchronizing circuit is explained by referring to Fig.7. In this figure, the above-mentioned master clock MCK is supplied to terminal 12. The edge detection signal ED, indicating the presence or absence of the signal edge of the input signal RFin, is supplied to a terminal 38, while an edge signal EP indicating the edge position of the input signal based on the master clock period TMC is supplied to a terminal 38. The edge detection signal ED, supplied to terminal 16, is entered to a multi-bit, e.g. 9-bit shift register 51 so that plural bits, e.g. 9 bits, are output in parallel in a chronological order. The output signal is supplied to a reproducing clock period latch circuit 53 via a window circuit 52 having a time duration of a reproducing clock period. The 9-bit output from the reproducing clock period latch circuit 53 is converted by an edge position integer part decoder 54 into e.g. a 4-bit binary value signal which is supplied to a subtraction unit 55. The edge position signal EP, supplied to terminal 38, is a data representing the edge position in plural bits, e.g. 6 bits, on the basis of the master clock period TMC. These bits, herein six bits, are supplied in parallel to a multi-stage (e.g. 9-stage) shift register 56. The 6-bit parallel nine-stage output of the shift register 56 is transmitted to a selector 57 where the 6-bit edge position data of that one of the stages where the input edge is present is selected and transmitted to the reproducing clock period latch circuit 53. The data is coupled as a fractional part 6-bit data for the edge position to the lower order side of the integer part data from the edge position integer part decoder 54 and the data thus coupled together is supplied to a subtraction unit 55. Reproducing clock period data TRC as later explained is supplied to a terminal 61. The reproducing clock period data TRC is also supplied to an additive unit 62. The additive unit 62 forms a loop along with a latch circuit 63 and an additive unit 64, which loop is equivalent to a voltage controlled oscillator VCO forming a part of the PLL. That is, while data makes a round of the loop, reproducing clock period data is added to the data at the additive unit 62. Phase error correction data is added to the data at the additive unit 64. The phase error correction data to the additive unit 64 is supplied from the subtractive unit 55 via a quarter circuit 58 and a flop-flop circuit 59. The edge detection signal present in a window from the edge position integer part decoder 54 is supplied as an addition control signal. If there is the edge in the window, output data of the latch circuit 63 and the error correction signal data from the flip-flop circuit 59 are summed together and the resulting sum signal is output. If there is no edge in the window, the output data of the latch circuit 63 is output. The reproducing clock period data TRC from terminal 61 is frequency-halved by a frequency halver 65 to form half-period reproducing clock TRC/2 which is supplied via latch circuit 63 to an additive unit 66. Data of the lower 6 bits of the 9-bit output data from the additive unit 64 is supplied to the additive unit 66. The resulting sum signal is transmitted to window generator 67. The lower 4-stage data (input stage data) from the 6-bit parallel 9-stage parallel shift register 56, that is 24-bit data, is supplied to the window generator 67. An output of the window generator 67 is transmitted to a window circuit 52 having a time duration corresponding to one period of the reproducing clock. The upper 3-bit data of the 9-bit output of the additive unit 64 is supplied to a comparator 71. The master clock MCK from terminal 12 is supplied to a 3-bit counter 72. An output of the 3-bit counter 72 is supplied to comparator 71. If these two inputs are found to be coincident at the comparator 71, a coincidence output is transmitted as a reproducing clock period enable signal RCE to respective enable terminals of the reproducing clock period latch circuit 53 and latch circuit 63 and to output terminal 73. This reproducing clock period enable signal RCE is outputted via flip-flop 74 at output terminal 75 as reproducing clock output signal RCK. The reproducing clock period enable signal RCE, outputted from comparator 71, is transmitted to AND gate 76. An output signal of AND gate 76 is outputted at output terminal 79 via flip-flops 77, 78 as shaped RF output signal RFout. The master clock MCK from terminal 12 is supplied to clock input terminals of the flip-flops 74, 77 and 78. The edge detection signal is supplied to AND gate 76 from the edge position integer part decoder 54. In general, the digital PLL detects an amount of relative shift of an input edge from the ideal or "must" input edge position based on a master clock and causes the reproducing clock phase to be changed responsive to the amount of the shifting. The must input edge position may be calculated finely by finely measuring the time duration of a period by a master clock and integrating the time periods. However, since the input edge time is measured on the basis of a master clock as a minimum time measuring unit, it is subject to a time error corresponding to the width of the master clock period TMC. Although the input edge is found under an assumption that it is at a center position of the period of the master clock period, it is still subject to an error of the width of the master clock period TMC. Conversely, according to the present invention, the fine edge position may be obtained from the edge position signal EP, whereby an error in the edge position may be found accurately. The window boundary may also be found accurately. The edge detection signal ED, supplied to terminal 16 of Fig.7, is entered at the shift register 51 of e.g. 9 bits, from which a 9-bit parallel output may be produced in the chronological order. The 9-bit parallel output of shift register 51 is transmitted via a window circuit 52 having a time duration of a reproducing clock period to the reproducing clock period latch circuit 53. The 9-bit parallel output of shift register 51 is latched at an optimum timing if it is locked by PLL and the phase error of the input edge is equal to 0. The latching duration is the period TRC of the playback clock RCK. The edge position signal EP of e.g. 6 bits, supplied via terminal 38 of Fig.7, is entered in a 6-bit parallel array at a multi-stage shift register 56 of e.g. nine stages. The 6-bit parallel output of shift register 56 is transmitted to selector 57. The 6-bit parallel output of selector 57 is captured by the reproducing clock period latch circuit 53 at the period TRC of the reproducing clock RCK TRC. If the latched signal is shifted at a 1-bit offset position with respect to a predetermined position, it may be concluded that the phase or timing deviation is 1 bit with respect to the master clock period TMC as reference. It may be found from a separately latched edge position signal at which position the edge is located within the master clock. The edge position referred to a master clock is to be represented by an integer, such as 1, 2, ... in the temporally backward or future direction and -1, -2, ..., in the temporally forward direction or past direction, with an optimum latch timing being 0. On the other hand, an edge position signal, indicating an edge position within the master clock is represented by a fractional number of from O to less than unity from the forward to the backward direction. The input edge position may be represented as a numerical figure by combining the integer and fractional parts together. Referring to Fig.8, the temporally foremost position within the central bit becomes 0.0. In the concrete example of Fig.8, with the number of shift register stages equal to 7, the integer part is represented by 3 bits, and the edge position signal is represented by 4 bits (0000 to 1111). The latching timing is calculated more finely than on a bit-by-bit basis. That is, the reproducing clock period TRC is not represented by an integer number, such as 5 TMC or 6 TMC in terms of master clock periods, but by a number inclusive of a fractional part. A number of these clock periods are integrated to give a result of integration, an integer part of which forms a timing to be latched. There also is a fractional part. The edge position signal in the input edge free of phase errors at the time of latching is represented by the fractional part which is to be used for preparing the latch timing. A concrete example is shown in Fig.9. In the concrete example of Fig.9, the integer part and the fractional part are each composed of 3 bits, for simplifying the illustration, with the period duration TRC of the reproducing clock being 100.011. By subtracting the fractional part of a numerical figure which should form the latch timing from a previously found numerical figure indicating the edge position, the extent of deviation from a time at which the edge should exist may be found. It suffices to subtract only the fractional part because the integer part is used for determining the latch timing. In this manner, the edge phase error may be found with accuracy substantially higher than the master clock. In sum, an output of shift register 51, supplied with the edge detection signal ED, is latched via window circuit 52 by the latch circuit 53 for each reproducing clock period enable signal RCE. On the other hand, the edge position signal EP corresponding to the bit of the shift register output for which the edge detection output is set is selected for shift register 56 via selector 57 so as to be latched by latch circuit 53. Meanwhile, the reproducing clock period enable signal RCE is an enable signal which is generated responsive to the "must" edge position as calculated within the phase synchronizing circuit. An output of shift register 51, captured by latch circuit 53, is adapted to appear at a center bit, for example, the fifth bit for the 9-bit shift register, if the PLL is locked and the input edge is at a correct timing. The decoder 54, supplied with the output of the latch circuit 53, outputs a value which is incremented in the negative direction from the 0 center position, as -1, -2, ..., while outputting a value which is incremented in the positive direction, as +1, +2, ..., with the center position being 0. The decoder 54 also outputs a result of edge presence or absence detection indicating whether there is an edge detection flag at any of bits in the window. The correct input edge position is found by adding the edge position signal simultaneously latched by the latch circuit 53 at sub-binary positions of the values of the edge bit positions. The foremost part of the number becomes 0.0 within the center bit time. The input edge error may be found with high accuracy from this numerical value. This error is attenuated to e.g. 1/4 by a frequency divider 58 for providing a suitable loop gain for forming an error correction signal which then is added to the loop for performing a phase control. Calculation of a window boundary using the edge position signal EP is hereinafter explained. The edge detection signal ED, supplied to terminal 16, is entered to the 9-bit shift register 51, from which a 9-bit parallel output is produced. This output is transmitted to the reproducing clock period latch circuit 53 via window circuit 52 having a time duration equal to one reproducing clock period. If the PLL is in locking state and the input edge phase error is equal to 0, the 9-bit parallel output of shift register 51 is latched at an optimum timing. The latching timing is equal to the period TRC of the reproducing clock TRC. Since latching is made for each reproducing clock period TRC, the state of shift register 51 is advanced by only one reproducing clock period TRC until next capturing occurs. Consequently, if all of the nine output bits are captured, it may occur that the edge once captured by latch circuit 53 be again captured with the next capturing so that an edge may be counted twice. In order to avid such situation, a window circuit 52 having a duration of one reproducing clock is arranged between shift register 51 and latch circuit 53 so that only the bit output corresponding to ±1/2 reproducing clock period (±TRC/2) centered about a predetermined bit of shift register 51 is passed without passing the remaining bits. The latch timing signal is produced as reproducing clock period enable signal RCE from a comparator 71 constituting a phase synchronizing circuit. The reproducing clock period enable signal RCE is not produced in accordance with the master clock period TMC, but is produced more finely based on units of the measurement unit time τun. The reason is that the reproducing clock period TRC is obtained as a numerical figure having a sub-binary point portion and the phase correction signal also controls the reproducing clock RCK by units smaller than sub-binary points. The window boundary in the window circuit 52 having a time length of one reproducing clock period is ±1/2 reproducing clock period from the theoretical or must edge position (±TRC/2). Although rounding may be used for deciding whether the bit at the boundary line be included in the window, the input edge position is judged by the edge position signal EP of the boundary bit and, if the bit is smaller or larger than the fractional part of the boundary value, the boundary bit is included in the window or deemed to be outside the window, respectively. In the latter case, the bit is captured next time. Figs.10 and 11 are a block circuit diagram for illustrating a concrete example of a window generator 67 for calculating the above-mentioned window range and an illustrative view for illustrating its operation. The adder 66 in Fig.10 is supplied with data XA indicating a one-half period TRC/2 of the reproducing clock, produced from frequency divider 65 via latch circuit 63, and data XB which is the lower 6-bit data of the 9-bit output from adder 64 and which indicates the must edge position within the center bit. Of the 9-bit sum data, the data XC of the upper 3 bits represents the bit where the boundary exists and the lower 6 bit data XD represents the boundary position within the boundary bit. These data XA to XD are shown in Fig.11. The four 6-bit parallel output towards the temporally later or left-side of the just-center position of the shift register 56 in Fig.10 is supplied to comparators 68a, 68b, 68c and 68d. The lower 6-bit output of the 9-bit output from adder 66, that is data indicating the boundary position within the boundary bit XD, are compared and, if XD is larger, a H" or "1" is outputted. The data XC indicating the boundary bit as the upper 3-bit output of the adder 66 is sent to decoder 68e. If the data XC is 1 or more, 2 or more, 3 or more and equal to 4, a signal "H" is supplied to AND gates 69a, 69b, 69f, 69d and 69g, respectively. An output of comparator 68a is supplied via OR gate 69e to AND gate 69a. An output of comparator 68b is supplied via OR gate 69f to AND gate 69b. An output of comparator 68c is supplied via OR gate 69g to AND gate 69c. An output of comparator 68d is directly supplied to AND gate 69d. Outputs of these AND gates 69a to 69d are taken out as window signals W1 to W4 which are supplied to a window circuit 52 having a time duration of the reproducing clock shown in Fig.7. Referring to Fig.11, if the previous edge position is at point p2 of an input edge data string, the nine bits previously latched are within a range of from point p1 to point p5 or 4 bits ahead and back of the center bit containing the point p2. The left side or temporally later side boundary of the window is found to be point p4 in Fig.11 by adding the reproducing clock half-period data XA to the must center bit edge position (point p2). The current edge position is the point p7 obtained by adding the reproducing clock period TRC or twice the half period data XA to the point p2. The 9 bits presently latched are in a range from point p3 to point p9 with the bit containing the point p7 as center. The point p8 obtained by adding the half-period data to the left or future side of the current edge position (point p7) represents the left-side boundary position. The point p4 which is the previous left side boundary may be used as the right side boundary position. If it is determined by rounding if the bit at the boundary is contained in the window, high accuracy is not obtained. With the embodiment of the present invention, the edge position signal of the boundary bit and the position within the boundary bit calculated as above (sub-binary point component) are compared and, if the edge is inside of the boundary, it is contained in the window, whereas, if the edge is outside the window, it is captured at the next timing. Most of random errors in the actual reproducing signal is caused by the fact that the edge is deviated by a peak shifting phenomenon and, if the noise acts as an influencing factor, the edge is detected with a shift corresponding to one reproducing clock period TRC. Thus the error rate may be improved by the correctness of the window boundary. Besides, the right-side boundary may be disregarded by unifying the signals shifted through the shift register to an edge-free polarity with respect to bits passed through the window during the previous latching. A concrete example is shown in Fig.12. The edge detection signal transmitted through the window circuit 52 and latched by the latch circuit 53 is cleared to O at the next stage of shift register 51. The edge-presence signal, once latched,is not shifted through shift register 51, so that the window construction towards right of the center may be omitted. Since the highly accurate window may be prepared in this manner, the input edge may be phase-compared to the correct timing reproducing signals to diminish the occurrence of signal errors. Returning to Fig.7, an error quantity of the high-accuracy input edge as found by the subtractor 55 is attenuated to one-fourth by the frequency divider 58 to form an adequate loop gain to form an error correction signal which is supplied via flipflop circuit 59 to an adder 64. The adder 64 forms a loop of PLL along with adder 62 and latch circuit 63. The reproducing clock TRC and the accurate error correction quantity are supplied to the adders 62 and 64, respectively. The latch circuit 63 is a flipflop having the reproducing clock enable signal RCE as an enable signal and captures data for each reproducing clock period TRC. If the error correction quantity is 0 at all times, the figure in the loop is increased by one period of the reproducing clock TRC. There is also provided a counter 72 of e.g. 3 bits for counting up for each master clock MCK so as to be used as a measure for timing. If the output of counter 72 coincides with the unit bit quantity of the 9-bit output from the loop (the upper three bit integer part mentioned above), comparator 71 outputs the reproducing clock period enable signal RCE. As the case may be, comparator 71 captures an output signal of shift register 51 such as edge detection signal ED or updates the numerical figure in the loop to a corresponding figure increased by one reproducing clock period. The numerical figure in the loop thus updated (output value of adder 64) represents the timing of outputting the next reproducing clock period enable signal. When the count value of counter 72 corresponds to the value of such timing, comparator 71 outputs the next reproducing clock period enable signal RCE. The above-mentioned numerical figure in the loop represents the must position for the input edge. That is, the upper three bit integer part of the 9-bit output of the loop adder 64 represents the timing of capturing the just-input edge when it appears at the center of the register 51 by controlling the output timing of the reproducing clock period enable signal RCE. The lower 6-bit fractional part is subtracted from the input edge position so as to be used for finding an error quantity. In window generator 67, the half-period of the reproducing clock is added to the numerical value of the loop so that the integer part and the fractional part represent the bit-based window boundary and the detailed boundary value within the bit, respectively. The ultimate reproducing clock RCK is formed from the reproducing clock period enable signal RCE and from the above-mentioned master clock MCK. That is, by transmitting the reproducing clock period enable signal RCE to the flipflop 74 having the master clock MCK as the clock, the reproducing clock RCK synchronized to the master clock MCK is produced by the flipflop 74. Data output is produced from a signal indicating the edge presence or absence in the window from the edge position integer part decoder 54, the reproducing clock period enable signal RCE and the master clock MCK. An output of AND gate 76 is taken out via flipflops 77, 78 at terminal 79 as a wavefromed RF output signal RFout. A concrete example of a reproducing clock period length measurement circuit for producing the reproducing clock period data (TRC) to be supplied to terminal 61 is explained by referring to Fig.13. In this figure, master clock MCK from terminal 12 is supplied to each of clock input terminals of the 6-bit counter 81, 10-bit counter 82 and 10-bit latch circuit 83. The reproducing clock period enable signal RCE from terminal 73 is transmitted to an enable terminal of a 6-bit counter 81, while a count output of the 6-bit counter 81 is supplied to a load terminal of the 10-bit counter 82 and to enable terminal of 10-bit latch circuit 83. The data input terminal of the 10-bit counter 1 is perpetually supplied with "1". An output of the 10-bit counter 82 is supplied to comparator 84 and to selector 85 via 10-bit latch circuit 83. A constant K1 which is to be the least comparison value or lower limit value and a constant K2 which is to be the maximum or upper limit value are supplied to comparator 84 from constant generators 86, 87, respectively, and a comparison output indicating if these constants K1 and K2 are within these ranges is output to selector 85. Selector 85 selects one of the output of the 10-bit latch circuit 83 and the constant K3 from constant generator 88, depending on an output of comparator 84, for supplying the selected data as the one-period length data TRC to terminal 61. The one-period length data TRC is represented by a numerical value normalized so that the master clock period TRC is equal to 1. If viewed over a reproducing clock cycle, there are not many master clocks in it, so that highly accurate measurement cannot be achieved. Thus the number of master clocks contained in a 2n number of reproducing clocks, n being an integer equal to two or more, is counted, and the resulting count is divided by 2n. For division by 2n, it suffices to make a shift of n bits, so that highly accurate measurement can be made easily. The resulting measured value is not used directly as a reproducing clock period length, but is checked as to if the value is in a lock range. That is, the value is compared by comparator 84 with the preset lower and upper values K1, K2 of the period to select an output of the 10-bit latch circuit 83 if the value is comprised within the range defined by these values. If otherwise, the selector 85 selects and outputs the pre-set center period K3 from constant generator 88 in place of the measured value as the reproduced clock period length data. If limitation is not imposed on the lock range, it takes a prolonged time until locking such that so-called pseudo-locking tends to be produced. It is noted that the concrete example of the reproducing clock period duration measurement circuit is not limited to the embodiment shown in Fig.13. Returning to Fig.1, the input edge position can be grasped by taking a difference between the value of the ring oscillator 30 captured with the input edge (the above-mentioned state of the output RS) and the value of the ring oscillator 30 captured at the master clock MCK. For taking the difference, it is necessary to capture the signal by the input edge by the flipflop circuit 23 further by the master clock period MCK by the flipflop circuit 24 to give a master clock synchronizing signal. However, the signal captured by the master clock is a signal changed with the timing of the input edge not synchronized with the master clock. Therefore, if an input to the flipflop circuit 24 for capturing the master clock is changed within a setup time or hold time of the flipflop circuit 24, it becomes indefinite which of the inputs before and after the change has occurred is to be captured. Since the flipflop circuit 24 is composed of a number of flipflops equal to the number of stages of the ring oscillator 30, new and old data co-exist on the bit-by-bit basis. Fig.14 shows an output FF23 of the flipflop circuit 23, master clock MCK and an output FF24 of the flipflop circuit 24, responsive to the RF input signal RFin. In Fig.14, a , b and c indicate the value or statuses of the ring oscillator 30. In Fig.14, at timing t1 when the flipflop circuit 23 captures the status "a" of the ring oscillator 30, master clock MCK rises to cause the flipflop circuit 24 to capture the value "a". At a rise time t11 of the input signal RFin, flipflop circuit 23 captures the ring oscillator value "b" which in turn is captured by the flipflop circuit 24 at the rise time t2 of the master clock MCK. If the master clock MCK rises at a timing t3 immediately after the decay time t12 of the input signal RFin, capturing by the flipflop circuit 24 is performed during the hold time of capturing of the ring oscillator value "c" at timing t12 by the flipflop circuit 23, with the result that the output of the flipflop 24 after timing t3 may be values "b" and "c" on the bit-by-bit basis. For this reason, the present embodiment makes use of the circuit construction shown in Fig.15 to avoid the drawback incurred by the asynchronous signal capturing mentioned above. The arrangement of Fig.15 is modified from the arrangement shown in Fig.1 as to the circuit between the flipflop circuit 23 and the subtractor 26 and between the flipflops 13A, 13B and OR gate 15C. The remaining unchanged portions are indicated by the same reference numerals and the corresponding description is omitted for simplicity. A ring delay selection circuit 34 plays the role of switching the delay timings of the ring oscillator elements as will be explained subsequently. In Fig.15, an output of the flipflop circuit 23 is supplied to a flipflop circuit 24A and flipflop circuit 24B which capture the output at the rise and decay timings of the master clock MVK, respectively. An output of flipflop circuit 24A and an output of flipflop circuit 24B are supplied to selector 25C via binary conversion circuits 25A and 25B, respectively. An output of selector 25C is transmitted to subtractor 26 where it is subtracted from an output of the binary converting circuit 28. The input RF sinal RFin from input terminal 11 is supplied to flipflop 13A which captures it at the rise time of master clock MCK and to flipflop 13B which captures it at the decay timing of master clock MCK. An output of flipflop 13A is transmitted to flipflop 14A and to exclusive OR (EX-OR) circuit 15A while an output of flipflop 13B is supplied to flipflop 14B. An output of flipflop 14A is supplied to EX-OR 15B, while an output of flipflop 14B is supplied to EX-OR circuits 15A, 15B. Outputs of EX-OR circuits 15A, 15B are supplied to selector 25C as selection control signals, while being also transmitted to OR gate 15C. An output of OR gate 15C is taken out at terminal 16 as an edge detection signal ED. As to latch output data of the flipflop circuit 23 at the input edge, it should be noted that data which is changed at a timing of producing an error when capturing is made at the rise timing of the master clock MCK does not become an error when capturing is made with the rise of the master clock MCK. If simply the capturing is made at the decay timing of the master clock MCK, data of such timing as to produce an error when capturing i made with the decay timing presents a problem. In this consideration, data captured at a rise timing or decay timing, whichever will not produce an error, is to be selected. Fig.16 is a time chart showing the signal waveform and states (values) at various portions of Fig.15. Signal FF23 is an output of flipflop circuit 23, while signal EX15B is an output of EX-OR circuit 15B and signal SL25C is an output of selector 25C. In the example of Fig.16, master clock MCK decays at time t02 directly after decay time t12 of the input edge, while master clock MCK rises at a timing t4 directly after rise time t13 of the input edge. In the example shown in Fig.16, latch data from flipflop circuit 23 by the input edge which has undergone transition during the time when the master clock MCK is at a low level, that is during the time points t01 and t02, t02 and t03, etc. such as data "d" captured by the flipflop circuit 23 by the input edge which has risen at timing t13 between timing t03 and t04,is captured by flipflop circuit 23 at decay timing t04 of the next master clock MCK. The reason is that, if the data "d" is relatched with the rise of the master clock MCK at timing t4, the set time (hold time) of the flipflop circuit 23 is not satisfied when the input edge is immediately ahead of the rise of the master clock such that capturing cannot be made correctly. Therefore, the data "d" is captured by the flipflop circuit 24B at the decay timing t04 of the next master clock MCK. Conversely, latch data from flipflop circuit 23 by the input edge which has undergone transition during the time when the master clock MCK is at a high level, that is during the time points t1 and t01, t2 and t02, etc. such as data "c" captured by the flipflop circuit 23 by the input edge which has decayed at timing t12 between timing t2 and t02, is captured by flipflop circuit 23 at decay timing t02 of the next master clock MCK. The reason is that, if the data "c" is re-latched with the decay of the master clock MCK at timing t02, the setup time (hold time) of the flipflop circuit 23 is not satisfied when the input edge is immediately ahead of the decay of the master clock, such that capturing cannot be made correctly. Therefore, the data "c" is captured by the flipflop circuit 24B at the rise timing t03 of the next master clock MCK. If the input edge has continued over two half periods of the master clock TMC/2, both edges can be canceled using the circuit shown for example in Fig.17. In the circuit of Fig.17, only the circuit portions corresponding to the arrangement from terminals 11, 12 up to the terminals 16 of Fig.15 are shown, and output signals of the respective flipflops are indicated in Fig.18. In Figs.17 and 18, there are shown four EX-OR circuits 91 to 94, of which the. EX-OR circuit 93 corresponds to the EX-OR circuit 15A shown in Fig.15 and the EX-OR circuit 92 corresponds to the EX-OR circuit 15B shown in Fig.15. The previous and succeeding edges are seen on the basis of the half periods of the master clock (T MC/2). AND gate 96 ANDs the negation of the output of the EX-OR circuit 91, an output of EX-OR circuit 92 and the negation of an output of the EX-OR circuit 93 to detect an input edge within a time domain corresponding to "H" of the master clock MCK, while AND gate 96 ANDs the negation of the output of the EX-OR circuit 92, an output of EX-OR circuit 93 and the negation of an output of the EX-OR circuit 94 to detect an input edge within a time domain corresponding to "L" of the master clock MCK. In this manner, the edge detection signal ED is outputted only when there is no edge during time domains before and after the one-half period wherein the input edge has occurred. The ring delay selection circuit 34 shown in Fig.15 is hereinafter explained. If the ring oscillator 30 is applied to a digital PLL, it becomes possible to measure the optimum input edge time detection, so that master clocks of a lower frequency may be employed, as mentioned above. However, the ring oscillator makes use of the inverter delay which is changed significantly with fluctuations in the semiconductor manufacture process, voltages of the power sources or the temperatures employed. Besides, if the rate of the digital signal entered at the PLL is changed, changes in the reproducing clocks cannot be coped with by changes in the center frequency of the circuit without increasing the circuitry significantly. Therefore, it is desirable to change the master clocks at a rate comparable to that of the reproducing clocks. The ratio of rate change of the digital signals entered at PLL is assumed to be on the order of 1 : 8, with the ratio of the change of the master clock frequency being desirably on the order of 1 : 4 In such system in which inverter delay or master clock periods T MC are not constant, it is not practical to have a short gate delay which will provide a sufficient resolution for a short master clock period T MC or to have a long period in which the ring oscillator does not make the round within a master clock period T MC in case of the long master clock period T MC. In this consideration, a ring oscillator is employed which has the function of changing over the stage-by-stage delay of the ring oscillator which may be changed over stepwise is employed, and such stage-by-stage delay is selected which becomes the least within the range in which the ring oscillator does not make the round within the master clock period T MC. Such automatic switching or selection of the delay of the ring oscillator is hereinafter explained by referring to Figs.19 to 21. Fig.19 shows, in a block circuit diagram, a concrete example of the ring delay time measurement circuit 33 and the ring delay selection circuit 34 shown in Fig.15. In Fig.19, an output signal of an optional inverter of the ring oscillator 30 shown in Fig.15 is supplied to an input terminal 101 of the ring delay time measurement circuit 33. A 11-bit measurement output of an output terminal 109 is supplied to a multiplier 36 shown in Fig.15. Fig.20 shows a concrete typical construction of the ring oscillator 30" in which the delay time may be selectively controlled by the ring delay selecting circuit 34 shown in Fig.19. Fig.21 shows a concrete example of an inverter which may be employed in the ring oscillator 30". The ring delay time measurement circuit 33 measures the period T RN of the ring oscillator operation based on the master clock period T MC. The waveform to be measured is an output waveform of one of inverters of the ring oscillator. However, if one waveform (one period) is measured, sufficient accuracy cannot be achieved. Therefore, a number of waveforms (periods) are measured and divided by the number of the waveforms to find a waveform (period). In effect, the time duration of a 2N number of waveforms, N being a natural number, is measured, and shifted by N bits to find the value equal to 1/2N times the 2N waveform tim duration. In the example of Fig.19, N is set to 6, and measurement is made of the number of master clocks contained in the 64 waveforms. Referring to Fig.19, an output signal of an arbitrary inverter of the ring oscillator, supplied via terminal 101, is supplied to e.g. a 6-bit counter 102. The MSB output or so-called Q6 is supplied to and latched by flipflop 103 so as to be differentiated by flipflop 104, inverter 105 and AND gate 106 to detect a decay edge. The master clock M CK is employed as the clock for each of the flipflops 102 and 103. An output signal of the AND gate 106 has a pulse period of 64 T RN equal to 64 times the ring oscillator output T RN, with the pulse width being one master clock period T MC. This output signal is transmitted to a load terminal of a 11-bit counter 107 and to an enable terminal of the 11-bit latch circuit 108 to find the number of the master clocks M CK within the time of 64 T RN. More specifically, data "1" is loaded in the 11-bit counter 107 by an output pulse from AND gate 106, that is, the 11-bit counter is set to an initial value of "1", and a value directly before resetting is captured in a latch circuit 108. If the interval between the 6th and 7th bits is deemed to be a binary point, the decimal point of the 11-bit integer output is shifted to an upper order side by 6 bits, meaning that the data is multiplied by 1/64. This is tantamount to measuring the period T RN of one complete rotation of the ring oscillator with an accuracy equal to 1/64th of the master clock period T MC. The ring delay selection circuit 34 plays the role of selecting the delay quantity of the ring oscillator to an adequate value. For example, if the measured value at the ring delay time measurement circuit 33 is 1 or less, the ring oscillator performs one complete rotation or more than one complete rotation within one master clock period T MC. Therefore, it is necessary to select the delay quantity so as to be larger by one rank. It is preferred to perform switching with certain allowance in such a manner that the delay quantity is switched to a value larger by one rank when the measured value is lesser than a predetermined lower limit value k MIN of the order of 1.2 even although the measured value does not reach unity (1). If the measured value is excessively large, meaning that the period of one ring oscillator rotation T RN is unnecessarily large, the unit time τun, obtained on dividing the period T RN by the number of the ring oscillator stages becomes larger to lower the measurement accuracy, that is the resolution within the master clock period T MC. Therefore, it is desirable that the delay quantity be switched to a value one rank lower when a preset upper limit value k MAX is exceeded. In the ring delay selection circuit 34, a measured output value from latch circuit 108 is compared by comparator 111 to a lower limit value k MIN on the order of 1.2 and an upper limit value k MAX on the order of 2. If the measured output value is within the range confined between the limit values k MIN and k MAX, "0" is supplied to adder 112. If the measured output value is smaller than the lower limit value k MIN or larger than the upper limit value k MAX, "+1" or "-1" are transmitted to AND gate 112, respectively. An addition output of adder 112 is supplied to a latch circuit 113, to an enable terminal of which a pulse output of the 64 T RN period pulse output from AND gate 106 is supplied, while an output of latch circuit 113 is supplied to the adder 112 and decoder 114. Decoder 114 decodes an output of latch circuit 113 with e.g. five signals X1 to X5 and outputs the decoded output. Fig.20 shows an example of a ring oscillator 30" the delay quantity of which is controlled by switching by signals X1 to X5. An number n of inverter circuits 311 to 31n, n being an odd number, are connected in a ring, and output signals are taken out at respective junction points. These inverter circuits 311 to 31n have their delay time durations switched in five stages by signals X1 to X5 from the ring delay selection circuit 34 shown in Fig.19. Fig.21 shows a concrete example of the inverter circuit 31 the delay time of which may be switched in five stages. An input terminal 120 of the inverter circuit 31 of Fig.21 is connected to an end of a series circuit of delay elements 121, 122 and 123 having delay times of τ1, τ2 and τ3, respectively, while being connected to AND gates 124 and 125. The delay elements 121, 122 and 123 have their output terminals connected to AND gates 126, 127 and 128, respectively. The AND gates 124 to 128 are supplied with signals X1 to X5, respectively, and one of the AND gates is rendered conductive when an associated one of the signals X1 to X5 goes high "H". Outputs of AND gates 125 to 128 are supplied via OR gate 129 to a NOR gate 130, while an output of AND gate 124 is transmitted to a NOR gate 130. An output of NOR gate 130 is taken out at a terminal 130 as an output of the inverter circuit 31. If, with the delay time of the AND gates 124 to 128 equal to one another and equal to τAND, the delay time of OR gate 129 equal to τOR and with the delay time of NOR gate 130 equal to τNOR, in the arrangement of Fig.21, the signal X1 is selected to render the output of the inverter circuit 31 high "1", the delay time τX1 of inverter circuit 31 is given by τX1 = τAND + τNOR Similarly, when the signals X2, X3, X4 and X5 are selected so that the output of the inverter circuit goes high, that is becomes equal to "1", delays τX2, τX3, τX4 and τX5 of the inverter circuit 31 are given by τX2 = τAND + τOR + τNOR τX3 = τ1 + τAND + τOR + τNOR τX4 = τ1 + τ2 + τAND + τOR + τNOR τX5 = τ1 + τ2 + τ3 + τAND + τOR + τNOR Therefore, the delays are increased each time signals X1, X2, X3, X4 and X5 are selected in this order. In setting the delays τX1 to τX5, which may be selected by switching in this manner, it is preferred to set the ratios between neighboring delays, such as τX2/τX1, τX3/τX2, etc. to a value less than a predetermined value R. As to the switching conditions of the ring delay time, if assumed that the delay is increased or decreased one step when the above-mentioned value (normalized based on the master clock period T MC set to unity) is not more than the lower limit k MIN or when the value is larger than the upper limit k MAX, respectively, the relation k MAX / k MIN >R needs to be satisfied. If, with the above relation not being satisfied, R = 2, k MIN = 1.2 and k MAX = 2.0, the delay time is increased by one step when the measured output of the ring delay from the time of selection of X1 becomes smaller than the lower limit k MIN = 1.2 but extremely close to 1.2, X2 is selected, however, the measured output of the ring delay time becomes slightly smaller than 2.4. Since this is larger than the upper limit k MAX = 2.0, switching control of decreasing the delay by one step is performed automatically, so that the measured output again becomes slightly smaller than the lower limit value of k MIN = 1.2 and close to 1.2. The above-mentioned operation is performed repeatedly. That is, the delay switching operation becomes unstable. The above accounts for the necessity of satisfying the relation k MAX / k MIN > R. It is seen from above that, by automatically switching the ring oscillator delay time, the normal PLL operation may be maintained despite fluctuations in semiconductors or fluctuations in the device delay due to changes in temperature or source voltage to permit designing for mass production of LSIs. In applications to PLL, changes in input signal rate to PLL may be coped with by changing the master clocks to simplify circuit constructions. In general, PLL has an advantage that the larger the loop gain, the more sensitive PLL is to cause the reproducing clock phase to be changed significantly in the direction of coinciding the reproducing clock phase with input data by the detected phase error, so that the time until locking is shorter and pseudo locking is scarcely incurred. However, if, after locking is achieved, the loop gain becomes larger, considerable phase changes are produced by a smaller disturbance, so that the PLL is unstable and an error due to bit shift in the reproduced signal is increased. The result is that the value of loop gain is a compromise between the performance until locking and that after locking. It may be contemplated to variably control the ratio of the phase error transmitted to the reproducing clock oscillator, or so-called loop gain to control the loop gain depending on whether the PLL is in a phase locked state. Referring to Fig.22, an edge position error signal from subtractor 55 is transmitted to a 1/4 attenuator 58a and 1/2 attenuator 58b, attenuated outputs of which are transmitted to a selector 58c, which is switchingly controlled by a phase lock discrimination signal (PLL locking signal) from terminal 58d. A signal from 1/4 attenuator 58a and a signal from 1/2 attenuator 58b are selected for PLL locking and PLL capturing, respectively, and the selected signal is supplied to a flipflop circuit 59. The construction and operation is otherwise the same as that of Fig.7 described above. For example, an output of flipflop circuit 59 is transmitted as a phase error correction quantity to an adder 64 of a reproducing clock oscillator composed of an adder 62 and a latch circuit 63, besides the adder 64. A selector control signal at terminal 58d is a 1-bit phase lock discriminating signal indicating whether or not the reproducing clock produced by the PLL is synchronized with an input signal. A smaller edge error quantity is selected during locking to realize a PLL operation which is strong against disturbance and less susceptible to locking and which exhibits a low error rate and stable PLL operation. Conversely, a larger edge quantity is selected during an asynchronous operation (capturing) to realize an operation in which the time until locking is shorter and quick capturing is realized with the least risk of pseudo locking. The smaller edge error is obtained e.g. from the 1/4 attenuator while the larger edge error quantity is obtained e.g. from 1/2 attenuator 58a. Setting the error quantity to powers of 2 is convenient in that simple bit shifting suffices. Referring to Fig.23, a concrete example of finding the phase locking discriminating signal (PLL locking signal) is explained in detail. It is a common practice that the input signal RFin, from which clocks are extracted, is a digital signal and contains some information, and that an error correction code is appended to the signal to enable error detection and correction to permit the information to be reproduced correctly. If the digital circuit section 1 is in the locked state and correct clocks synchronized with the playback data are reproduced, the playback data entered into the error correction circuit 2 for each clock input is judged to be reproduced with a certain high probability. For example, the error rate of digital devices for civil use on the playback bit basis is not higher than 10 -6 . Conversely if the PLL circuit 1 is not locked, the playback data is such that clocks are not associated on the bit-by-bit basis, such errors as bit dropout or bit shift in which 1 bit is deemed to be 2 bits are produced. Since parity data are produced in the error correction code with a block of tens to hundreds of bits (so-called error correction block), a given block is free of error if the totality of bits of the block are correct. If the PLL is not in locked state, a block free of errors can hardly exist. Therefore, the locked state of PLL may be discriminated by setting a suitable threshold such that the PLL is assumed to be locked when there are error-free block at rate of 2 per 100 blocks. It suffices to transmit the results of decision produced responsive to the error state in the error detection circuit 2 as the above-mentioned phase lock discrimination signal (PLL locking signal) to terminal 58d of the PLL circuit 1. It is to be noted that the present invention is not limited to the above-described embodiments which are given only by way of illustration. For example, the number of bits (stages one elements) of the ring oscillator, the number of bits of the ring delay time measurement output, numbers of bits or steps of the shift register or latch circuits for capturing the edge position signal or edge detection signal and other data are not limited to those given in the above-described embodiments.

Claims: An input signal edge time measurement circuit comprising: a ring oscillator (30) having an odd number of inverters connected in a ring; means (21,22) for detecting edges of an input signal (RFin); first latch means (23) for capturing states of various stages of said ring oscillator at the timing of a detected edge of said input signal; second latch means (27) for capturing the states of the respective stages of said ring oscillator at the timing of a master clock; and edge position calculating means (26) for comparing the states of the respective stages of said ring oscillator captured by said first latch means (23) and the states of the respective stages of said ring oscillator (30) captured by said second latch means (27) and for outputting a difference between these states as an edge position detection signal (EP). An input signal edge time measurement circuit as claimed in claim 1, wherein said edge position calculating means comprises third latch means (24A) for capturing an output of said first latch means (23) at a rise timing of said master clock and fourth latch means (24B) for capturing an output of said first latch means (23) at a decay timing of said master clock, and wherein an output of said third latch means (24A) and an output of said fourth latch means (24B) are selected when the edge of said input signal is in a high level domain of said master clock and in a low level domain of said master clock, respectively, and the output thus selected is compared to an output of said second latch means by said edge position calculating means (26). An input signal edge time measurement circuit as claimed in claim 1 or 2, wherein said ring oscillator (30) is made up of inverter elements (31n) with variable delay and wherein said delay is switchingly selected responsive to the ratio of the period of oscillation of said ring oscillator to the master clock period. A digital PLL circuit comprising: an input signal edge time measurement circuit as claimed in any one of the preceding claims and further comprising means (13, 14, 15) for sampling the input signal arranged to output an edge detection signal (ED) indicating the presence or absence of an edge of the input signal at the timing of the master clock; reproducing clock generating means (62-64) for outputting reproducing clocks based on phase error data and reproducing clock period data; and phase error detection means (51-59) for finding the phase error data representing the phase error between the reproducing clocks and the input signal edge based on said edge position detection signal (EP) and said edge detection signal (ED) and for transmitting the phase error data to said reproducing clock generating means. A digital PLL circuit as claimed in claim 4, further comprising reproducing clock period detection means (81-85) for detecting period data of the reproducing clocks from said reproducing clock generating means for transmitting the period data to said reproducing clock generating means. A digital PLL circuit as claimed in claim 4 or 5, wherein said phase error detection means comprises: a first shift register (51) to which said edge detection signal (ED) is entered; a window circuit (52) for limiting an output of said first shift register (51) to a number of bits corresponding to one period of a reproducing clock; a first latch circuit (53) for capturing bits passed through said window circuit; edge bit position detection means (54) for detecting the possible presence of the input edge and a corresponding bit position thereof from the value captured by said first latch circuit (53); a second shift register (56) to which said edge position detection signal (EP) is entered; a selector (57) for selecting an output of said second shift register (56) which is the edge position detection signal (EP) for which said edge detection signal (ED) indicates the presence of an edge of the input signal; a second latch circuit (53) for capturing an output of said selector (57); and means (55) for subtracting a value corresponding to a zero phase error edge position from a combined output of an output of said edge bit position detection means (54) and said output of said selector (57) captured by said second latch circuit (53) for producing said phase error data. A digital PLL circuit as claimed in claim 6, further comprising a window generating circuit (67) for calculating a window width of said window circuit (52) and comprising: selector means for calculating the window boundary at an input side of said first shift register (51) up to an intra-bit position and selecting an output of said second shift register (56) corresponding to the calculated boundary bit; a comparator for comparing an output of said selector means and the intra-bit position of the window boundary; and means for deciding from the result of comparison whether or not the boundary bit is to be included in the window, said window generating circuit (67) generating a signal for controlling said window circuit (52). A digital PLL circuit as claimed in claim 6, wherein said phase error detection means comprises: a first shift register (51) to which said edge detection signal (ED) is entered; a window circuit (52) for limiting an output of said first shift register (51) to a number of bits corresponding to one period of a reproducing clock; a window generating circuit (67) for calculating a window width of said window circuit, and a second shift register (56) to which said edge position detection signal (EP) is entered, said window generating circuit (67) comprising: a selector means for calculating the window boundary at an input side of said first shift register (51) up to an intra-bit position and selecting an output of said second shift register (56) corresponding to the calculated boundary bit; a comparator for comparing an output of said selector means and the intra-bit position of the window boundary; and means for deciding from the result of comparison whether or not the boundary bit is to be included in the window, said window generating circuit (67) generating a signal for controlling said window circuit (52).

Inventors: FUKUDA SHINICHI, FUKUDA, SHINICHI, Fukuda, Shinichi, c/o Sony Corporation
Applicants: SONY CORP, SONY CORPORATION
Application year: 1993
Main classification: G01R25
IPC codes: H03L7, G01R25, G01R29