Detailed Explanation of the Invention
The present invention relates to a digital phase lock loop circuit and method, wherein an output clock pulse can be caused to follow instantaneously the input clock pulse of the circuit.
The phase lock loop circuit and method are widely used in a transmission apparatus for the purposes of extracting the timing of a detector, of synchronizing the phase of various circuits, or of smoothing the phase of the various circuits. A conventional phase lock loop circuit is formed by using a voltage-controlled oscillator. A phase lock loop circuit which is formed by a phase synchronization control system including a fixed frequency generator and a digital circuit has been recently proposed. According to this proposed circuit, adjustment thereof is facilitated or no adjustment of the circuit is required. The circuit can be manufactured by using a large scale integration technique. However, in the phase lock loop circuit which includes the fixed frequency generator, the output clock pulse of the circuit should, in a stable manner, follow the input pulse of the circuit, and the jitter phenomenon occurring in the output signal should be sufficiently suppressed. For example, a MODEM system includes one operational mode which synchronizes the system with an internal clock pulse and another operational mode which synchronizes the system with an external clock pulse. Therefore, the digital phase lock loop circuit is provided in the MODEM system, the circuit being frequently required to change the first operational mode to the second operational mode in the MODEM system. If the phase of the input clock pulse is not coincident with the output clock pulse of the circuit when the operational mode is changed, the initial data is misread. Misreading creates serious damage in the usual data transmission system. For example, in the conventional phase lock loop circuit, if the comparison frequency is 800 Hz, and the fixed frequency is 1152.3 KHz (the input signal frequency f.sub.i is 1,600 Hz, the ratio M of the input clock pulse frequency to the comparison frequency is 2, and the fixed frequency f.sub.s is 1152.3 KHz), then the phase difference is 180.degree. when the symbol rate is 1600 baud, and data corresponding to about 720 symbols is lost. This type of disadvantage should not occur in the data transmission and is to be avoided.
An object of the present invention is to provide, while taking the above-mentioned drawback into consideration, a digital phase lock loop circuit and method, wherein the phase and the frequency of the output clock pulse of the circuit instantaneously coinciding with those of the input clock pulse of the circuit.
For achieving the above-mentioned object, the digital phase lock loop circuit includes a fixed frequency generator circuit, an output frequency divider to which a standard clock pulse from the fixed frequency generator circuit is supplied via an inhibit gate, an output clock pulse frequency divider which divides the frequency of the output clock pulse from the output frequency divider, a phase comparator to which the input clock pulse and the divided clock pulse from the output clock pulse frequency divider are supplied, and an inhibit pulse generator to which the output of the phase comparator is supplied, so as to provide an inhibit pulse from the inhibit pulse generator to the inhibit gate. According to a further characteristic feature of the present invention, a clear pulse generator is provided for the purpose of forming a clear pulse which clears the contents of the output frequency divider and the output clock frequency divider. Such clear pulse is generated based on the condition that the time difference between a first occurrence (the frequency division of the output frequency divider being actuated by the standard clock pulse after clearing of the output frequency divider and the output clock frequency divider by the clear pulse) and a second occurrence (the frequency division of the input frequency divider being actuated by the input clock pulse) is smaller than a predetermined period of the standard clock pulse.
The foregoing and other objects, features and attendant advantages of the invention will be better understood from the following description with reference to the accompanying drawings wherein:
FIG. 1 is a block diagram showing one example of a conventional digital phase lock loop circuit;
FIGS. 2A and 2B are waveforms produced by the circuit shown in the block diagram of FIG. 1;
FIG. 3 shows waveforms produced by another conventional digital phase lock loop circuit not shown in the drawing;
FIG. 4 is a block diagram of one embodiment of the digital phase lock loop circuit according to the present invention;
FIG. 5A is a block diagram of one example of the clear signal supply circuit 10 in the block diagram shown in FIG. 4, and FIG. 5B shows waveforms produced by the circuit of FIG. 5A; and
FIG. 6A is a block diagram of one example of the clock pulse quantization circuit 8 and the clear pulse generator 9 in the block diagram shown in FIG. 4, and FIG. 6B shows waveforms produced in the circuit of FIG. 6A.
As shown in FIG. 1, the conventional digital phase lock loop circuit provides a fixed frequency generator 1, an output frequency divider 5 to which a standard clock pulse f.sub.s is supplied via an input of an inhibit gate 2 from the fixed frequency generator 1, an input frequency divider 7, an output clock pulse frequency divider 6 which divides the frequency of the output of the output frequency divider 5, a phase comparator 4 which compares the phases of the frequency divided input clock pulse and the divided output clock pulse of the output clock pulse frequency divider 6, and an inhibit pulse generator 3 to which the output of the phase comparator is applied. The output of the inhibit pulse generator 3 is connected to another input of the inhibit gate 2. The phase comparator circuit 4 includes a D-type flip-flop circuit 11 and an inhibit gate 12, and the inhibit pulse generator 3 includes D-type flip-flop circuits 13 and 14, and inhibit gates 15, 16 and 17.
Next, we will explain the functions of the conventional digital phase lock loop circuit shown in FIG. 1 by referring to FIGS. 2A and 2B. The phase comparator 4 compares the frequency divided input clock pulse (a) and the frequency divided output clock pulse (b) both shown in FIG. 2A. In FIG. 2A, a portion [1] shows the case wherein the phase of the frequency divided input clock pulse (a) is lagging with respect to the phase of the frequency divided output clock pulse (b), and the output (c') of the inhibit gate 15 is changed from a logic value "0" to a logic value "1" at a point A shown in FIG. 2A. The time axis of this portion has been enlarged and is shown in the left part of FIG. 2B. When the frequency divided input clock pulse (a) is lagging with respect to the frequency divided output clock pulse (b), an inhibit pulse as shown in the left part of (h) of FIG. 2B is obtained. By this inhibit pulse, one bit of clock pulse (d) from the fixed frequency generator 1 is eliminated and a series of pulses shown in (i) of FIG. 2B is sent out from the inhibit gate 2.
A portion [II] of FIG. 2A shows the case wherein the frequency divided input clock pulse (a) is advanced with respect to the frequency divided output clock pulse (b). The time axis of this portion is enlarged and shown in the right side of FIG. 2B. When the frequency divided input clock pulse (a) is advanced with respect to the frequency divided output clock pulse (b), a positive fine pulse B appears at the output (c') of the inhibit gate 15 as shown in FIG. 2B. This occurs due to the delay of the D-type flip-flop circuit 11 of the phase comparator 4. If this fine pulse is not read by the D-type flip-flop circuit 13 of the inhibit pulse generator 3, the output of the inhibit gate 17 remains at a logical value "1" and the clock pulse (d) in FIG. 2B from the fixed frequency generator 1 is not eliminated. If this positive fine pulse is read by the D-type flip-flop circuit, thirteen pulses are generated in the set output (f) of the D-type flip-flop circuit 13 and the set output (g) of the D-type flip-flop circuit 14. In addition, an inhibit pulse which eliminates one bit from the clock pulse is generated. For overcoming this phenomenon, wherein the fine pulse is read by the D-type flip-flop circuit 13, the output (c') of the inhibit gate 15 is applied to the inhibit gate 17, for generating only a negative pulse at the output (h) of the inhibit gate 17. Consequently the clock pulse (d) of the fixed frequency generator 1 is not eliminated therefrom.
In the circuit shown in FIG. 1, the input frequency divider circuit 7 is not necessarily required. The output clock pulse can be synchronized with the input clock pulse by comparing the phase of the input clock pulse with that of the frequency divided output clock pulse. FIG. 3 shows waveforms produced in a digital phase lock loop circuit which does not contain an input frequency divider circuit. In this case a clock pulse (a) having a frequency f.sub.i is directly applied to the set input terminal of the D-type flip-flop circuit 11 as the input clock pulse. When this clock pulse (a) is read by the frequency divided clock pulse (b), the output (c) is obtained. When the pulse (b) is logically multiplied with the output signal (c), the signal (c') in FIG. 3 is obtained. As the following function is the same as that of FIG. 1, we will therefore not provide a detailed explanation for the function of FIG. 3.
In the conventional digital phase lock loop circuit as shown in FIG. 1, when the phase difference between two phases to be compared is 180.degree., a time period of N.sup.2 M/2f.sub.s seconds is required for causing the output clock pulse to coincide with the input clock pulse, wherein N is a frequency division ratio in the output frequency divider 5, M is a ratio between the input clock pulse frequency and the clock pulse frequency to be compared in the frequency comparator circuit 4, and f.sub.s is a frequency of the fixed frequency generator.
FIG. 4 is one embodiment of the digital phase lock loop circuit according to the present invention. As shown in FIG. 4, according to the present invention, a clock pulse quantization circuit 8, a clear pulse generator 9 and a clear signal supply circuit 10 are added to the conventional circuit shown in FIG. 1.
The clear signal supply circuit 10 is composed of, as shown in FIG. 5A, D-type flip-flop circuits 21, 22 and a NOR circuit 23. The clear signal supply circuit 10 receives the input signal CDI and forms a clear signal CLR. FIG. 5B shows the waveforms in each part of the clear signal supply circuit 10.
The clock pulse quantization circuit 8 is composed of, as shown in FIG. 6A, D-type flip-flop circuits 24 and 25, and the clear pulse generator 9 is composed of D-type flip-flop circuits 26 and 27, a NOR circuit 28, an inverter circuit 29 and a D-type flip-flop circuit 30.
If no input signal CDI is applied to the clear signal supply circuit 10, that is, when the MODEM system is actuated by the internal clock pulses produced in the MODEM system, no clear signal CLR is sent out from the clear signal supply circuit 10. When an input signal is applied to the clear signal supply circuit 10, that is, when the operation mode is changed to the mode which synchronizes the MODEM system with the external clock pulses, the clear signal supply circuit 10 sends out a clear signal CLR. The clear signal CLR is applied to a D-input of the D-type flip-flop circuit 26.
With reference to FIGS. 6A and 6B, when the clear signal CLR has a logical value "1" and when the input clock pulse CLK.sub.2 is increased from a logical value "0" to a logical value "1," the Q-output of the D-type flip-flop circuit 26 becomes a logical value "0," and this value "0" is inverted in the NOR circuit 28 and the output of the NOR circuit 28 (CLR.sub.2) becomes a logical value "1." When the value of the next input clock pulse CLK.sub.2 is applied, the Q-output of the D-type flip-flop circuit 26 becomes a logical value "1," thus causing the output of the NOR circuit 28 (CLR.sub.2) to become a logical value "0." Therefore, the second clear pulse CLR.sub.2 corresponds to the pulse which is formed as a result of the differentiation process of the clear signal CLR by the input clock pulse CLK.sub.2.
The second clear pulse CLR.sub.2 is applied to a D-input of the D-type flip-flop circuit 30, and the standard clock pulses CLK.sub.1 are inverted by an inverter 29 and applied to the C-input of the D-type flip-flop circuit 30. As a result, the clear pulse CLR.sub.1, as shown in FIG. 6B, is obtained at the output of the D-type flip-flop circuit 30.
The content of the input frequency divider 7 is cleared by a leading edge of the second clear pulse CLR.sub.2, and the clear is released by a trailing edge of the second clear pulse CLR.sub.2. The frequency division in the input frequency divider 7 is actuated by the leading edge D of the quantized input clock pulse CLK.sub.2 -M as shown in FIG. 6B. The contents of the output frequency divider 5 and the output clock pulse divider 6 are cleared by the leading edge of the first clear pulse CLR.sub.1, and the clear of the output clock pulse divider 6 is released by the trailing edge A of the first clear pulse CLR.sub.1. The frequency divisions in these dividers 5 and 6 are actuated by the leading edge of the standard clock pulses CLK.sub.1.
The clock pulse quantization circuit 8 is provided for the following reason. If this clock pulse quantization circuit 8 is not provided, the trailing edge B of the second clear pulse CLR.sub.2 will coincide with the leading edge e of the input clock pulse CLK.sub.2 or will occur somewhat later than the leading edge e of the input clock pulse CLK.sub.2. Under these conditions, when the frequency division of the input frequency divider 7 is not actuated by the leading edge e of the input clock pulse CLK.sub.2, as may sometime occur, it can still be actuated by the leading edge of the next input clock pulse CLK.sub.2. When the frequency division of the output frequency divider 5 is actuated by the leading edge C of the standard clock pulse CLK.sub.1 and the frequency division of the input frequency divider 7 is actuated by the leading edge of the input clock pulse which is one pulse later than the leading edge e of the input clock pulse CLK.sub.2, the output clock pulses of the digital phase lock loop circuit can instantaneously follow the input clock pulse of the circuit. For the purpose of causing the output clock pulse to instantaneously follow the input clock pulse, the leading edge of the clock pulse CLK.sub.2 -M supplied to the input frequency divider 7 should be later than the point B when the clear is released. Accordingly, the clock pulse quantization circuit 8 is provided in the circuit shown in FIG. 4 causing the leading edge D of the clock pulse CLK.sub.2 -M to arrive one bit later than point B where the clear CLR.sub.2 is removed. On the other hand, by the clear pulse generator 9, the leading edge C of the standard clock pulse CLK.sub.1 and point A where the first clear pulse CLR.sub.1 is released are positioned apart at a distance corresponding to one half of the standard clock pulse (CLK.sub.1) period. Therefore, the distance between point C where the frequency division of the output frequency divider 5 is actuated and the point D where the frequency division of the output clock pulse generator 6 is actuated equals one-half of the standard pulse period, and the frequency division in the frequency dividers 5, 6, and 7 are actuated almost simultaneously after these dividers are cleared. As a result, the output clock pulse of the digital phase lock loop circuit according to the present invention can instantaneously follow the input clock pulse of the circuit.
The above-mentioned digital phase lock loop circuit has an input frequency divider 7. However, it is understood that the input frequency divider 7 can be extracted. When the digital phase lock loop has no input frequency divider 7, only the clear pulse generator 9 is used. In this case it is not necessary to use the clock pulse quantization circuit 8. Accordingly, the second clear pulse and the quantized input clock pulse CLK.sub.2 -M are not required.
As shown in the above-explanation, according to the present invention, the output clock pulse can be caused to instantaneously follow the input clock pulse by only the addition of some simple circuits to the conventional digital phase lock loop circuit. Furthermore, the present invention is very effective when the digital phase lock loop circuit is constructed by the using large-scale integration technique, because the delay of the propagation time of the elements in the integrated circuit is not constant in every element and a sufficient time margin is required between the time when the clear pulse is cleared and when the leading edge of the clock pulse occurs.