Digital phase detector arrangements

Abstract: A digital phase detector arrangement comprises a digital phase detector (30) for deriving a digital output signal representing the phase differences between two input clock signals supplied to the phase detector (30), and a circuit (31 to 35) for reducing jitter in the output signal; the circuit (31 to 35) comprising a differentiator (31, 32) for differentiating the output signal to produce a differentiated signal, a low-pass filter (33) for low-pass filtering the differentiated signal to produce a filtered signal, and an integrator (34, 35) for integrating the filter signal to produce a further digital output signal from which at least some jitter has been removed by the low-pass filter (33).

Description: This invention relates to digital phase detector arrangements. Such phase detector arrangements are particularly, but not exclusively, suitable for use in digital signal interpolation, and the invention also relates to digital signal interpolator arrangements. To change a sampled audio or video signal from one sampling frequency to another, a linear signal interpolator is required. An example of the type of conversion necessary for a video signal is the change from a sampling frequency of 13.5 MHz to 4fsc, where fsc is the sub-carrier frequency of a PAL television signal (4.43361875 MHz). Such a conversion does not have any simple integral relationship between the two frequencies, or to put it somewhat differently, the new samples which need to be derived to form the output signal may occur almost anywhere in the time intervals between the samples of the input signal. Such interpolation can be done using digital phase shift interpolators, but because there is no simple integral relationship between the two frequencies, an accurate means of determining the phase differences between two input clock pulse signals is essential to the process of deriving a control signal for the interpolator. Thus for digital audio and digital video applications, a phase detector is required whose output exhibits low levels of jitter; typically a jitter of less than 0.1 nsec. Japanese patent specification JP-A-1-175310 which partially corresponds to EP-A- 0 323 200 discloses a sampling frequency converter comprising a digital phase detecting arrangement including a phase locked loop and a counter. The digital output signal from the counter is applied to a time difference averaging arrangement to reduce the error due to clock jitter. The output of this arrangement is applied to a digital accumulator from which it is used for addressing a buffer and a digital filter. According to the present invention there is provided a digital phase detector arrangement comprising: a digital phase detector for deriving a digital output signal representing the phase differences between two input clock signals supplied to the phase detector; and circuit means for reducing jitter in said output signal; said circuit means comprising: a differentiator for differentiating said output signal to produce a differentiated signal; a low-pass filter for low-pass filtering said differentiated signal to produce a filtered signal; and an integrator for integrating said filtered signal to produce a further digital output signal from which at least some jitter has been removed by said low-pass filter. The invention will now be described by way of example with reference to the accompanying drawings, throughout which like parts are referred to by like references, and in which: Figure 1 shows in simple block diagrammatic form an embodiment of digital signal interpolator arrangement according to the present invention; Figure 2 is a timing diagram for explaining a method of digital signal interpolation; Figure 3 shows in more detailed block diagrammatic form an embodiment of digital signal interpolator arrangement according to the present invention; Figure 4 shows in block diagrammatic form part of an embodiment of digital phase detector arrangement according to the present invention; Figure 5 is a timing diagram for explaining the operation of the circuit of Figure 4; Figure 6 shows the digital phase detector arrangement in more detailed block diagrammatic form; and Figure 7 shows waveform diagram for explaining the operation of the digital phase detector arrangement of Figure 6. Referring to Figure 1, this shows a digital signal interpolator arrangement comprising a cascaded series of N multi-tap interpolation filters 1, 2, .... N, an input digital signal comprising multi-bit pulse code modulated (PCM) samples at a given sample rate being supplied to the interpolation filter 1, and an output digital signal comprising similar multi-bit PCM samples at a required different sample rate being derived from the interpolation filter N. Each of the interpolation filters 1 to N is preferably formed as an integrated circuit comprising random access memory (RAM) in which a plurality of tap sets are stored, for selective supply to an associated digital filter. In operation, the tap sets are dynamically selected input sample by input sample, under control of a digital signal derived by a digital phase detector 3 from clock pulse signals CLK1 and CLK2 corresponding respectively in frequency to the input and output digital signals, for supply to the associated digital filter. The interpolation filter 1 performs an initial coarse interpolation, and the interpolation filters 2 to N each perform progressively finer interpolation. The number N of interpolation filters required will depend on the sample rate conversion that is to be performed, the number of taps that the filters have, and the number of tap sets stored in RAM for each filter. This will be better understood after consideration of Figures 2 and 3, and the description relating thereto. The connections between the successive interpolation filters 1 to N are full resolution digital connections, as otherwise there will be cumulative errors due to round-off effects. Figure 2A shows diagrammatically a first stage of coarse interpolation drawn along a horizontal time axis. The solid vertical arrows represent successive samples of an input digital signal having a given sample rate, and the broken vertical arrows represent successive interpolated samples, such as might for example be derived by the interpolation filter 1 of Figure 1 and which have a different, interpolated, sample rate. Suppose that the time interval between successive input samples is ts and that the interpolation filter has 64 tap sets. The first interpolated sample will then follow the first input sample after a time interval of n x ts/64, where 0 ≦ n ≦ 63. Figure 2B shows diagrammatically a second stage of fine interpolation. The solid vertical arrows represent successive more finely interpolated samples, such as might for example be derived by the interpolation filter 2 of Figure 1. In Figure 2B, the horizontal lines with depending arrows indicate the range of positions of the respective interpolated samples, and this should be compared with Figure 2A, where an interpolated sample can have any (coarsely defined) position between two successive input samples. Using the same notation as in Figure 2A, the first finely interpolated sample in Figure 2B will follow the first coarsely interpolated sample after a time interval of n x ts/4096, where 0 ≦ n ≦ 64. Thus it will be understood that the cascaded interpolation filters permit progressively finer interpolation to be achieved. Consider now the example given initially, of converting a 13.5 MHz input digital video signal to a 4fsc output digital video signal. Suppose that each sample is an 8-bit PCM sample, and that each interpolator in a cascaded series comprises a 16-tap digital filter with 64 tap sets stored in RAM. Then the timing resolution for the first interpolation is approximately 74 nsec/64, that is approximately 1.1 nsec. For the second interpolation the timing resolution is approximately 1.1 nsec/64, that is approximately 18 psec, which gives ample resolution. A digital signal interpolator arrangement based on this example will now be described with reference to Figure 3. The arrangement comprises the digital phase detector 3 which supplies a control signal characteristic of the required sample rate conversion, and the derivation of which will be described below, to a programmable read only memory (PROM) 10, and by way of a delay 11 to a PROM 12. The control signal may consist of twelve bits, of which the six most significant bits are supplied to the PROM 10 and the six least significant bits are supplied to the PROM 12. Similar interpolators 13 and 14 are formed as respective single integrated circuit chips, and respectively comprise RAMs 13R and 14R, and digital filters 13F and 14F. Each of the digital filters 13F and 14F is a 16-tap filter and each of the RAMs 13R and 14R stores 64 tap sets, each comprising sixteen weighting coefficients to be selectively dynamically supplied to the associated filter 13F or 14F in synchronism with the input samples supplied to the associated filter 13F or 14F. The input digital signal is supplied to the filter 13F, the output (coarse interpolated samples) from which is supplied to the filter 14F, from which the output digital signal (finely interpolated samples) is derived. The delay 11 is to compensate for processing delay in the filter 13F. The number of cascaded interpolators required in any case will depend on the sample rate conversion required, the number of bits per sample, the number of taps per filter, and the number of tap sets per filter. For example, to achieve a sampling accuracy of 0.15 nsec for 8-bit samples with sixteen tap digital filters with two tap sets, would require nine interpolators in cascade. The above-described form of digital signal interpolation is disclosed and claimed in our copending UK patent application 9002558.6. published as GB-A-2 240 684 on 07-08-1991 An example of a form of phase detector suitable for use as the digital phase detector 3 of Figures 1 and 3, and with which the present invention is more particularly concerned will now be described with reference to Figures 4 to 7. Basically what the digital phase detector is required to do is to decide sample point by sample point of the output digital signal how each sample is related in phase, that is in time, to sample points of the input digital signal. In other words, the offset of each sample point of the output digital signal relative to sample points of the input digital signal needs to be determined, and in dependence thereon, the digital phase detector supplies a control signal to effect selection of the appropriate sets of weighting coefficients from the RAMs 13R and 14R (Figure 3) for supply to the individual filters 13F and 14F (Figure 3). This needs to be done with a phase error less than that which would cause a magnitude error of half of one quantum when sampling at the higher of the two input frequencies. The digital phase detector arrangement to be described is conveniently considered in two parts; the phase detector itself, and the circuit for filtering or smoothing the output of the phase detector. Referring to Figure 4, the phase detector itself has respective inputs to which are supplied the input clock signals CLK1 and CLK2. The clock signal CLK1 may be considered as the reference, so may for example be a studio reference, but in fact the reference may be supplied to either input. In a video application, the clock signal CLK1 may have a frequency of 13.5 MHz, while the clock signal CLK2 has a frequency of 4 fsc, that is about 17.73 MHz. The phase detector comprises a phase-locked loop (PLL) circuit 20 with an associated voltage controlled oscillator 21 having a nominal frequency of 17.73 MHz, three counters 22 to 24, each formed by a binary divider, and a latch circuit 25, connected as shown. The divisions effected by the counters 22 to 24 will be selected in dependence on the application, but in the case of the video interpolation considered here, the counters 22 to 24 may each divide by 4096, so that the output supplied by the counter 24 to the latch circuit 25 is a 12-bit output. The output of the counter 24 then in effect clocks the output of the counter 23 by strobing the count in the latch circuit 25 to provide a 12-bit output. In addition to this, the output of the counter 24 forms a trigger clock signal tc referred to in more detail below. Figures 5A and 5B show diagrammatically the timing of the outputs of the counters 22 and 23 respectively, each of which counts from 0 to n-1 repetitively. Figure 5C shows diagrammatically the strobe pulses corresponding to the count of n-1 in the counter 23. The phase of these strobe pulses relative to a count of 0 in the counter 22 may be considered, in modulo form to be a; a+b; a+2b; etc., so ideally the phase difference (in modulo terms) is in each case equal to b, that is, there is a constant rate of increase of phase difference. In practice, however, there will be some jitter in the 12-bit output from the latch circuit 25, and the purpose of the filter circuit of Figure 6 is to smooth out this jitter. Referring to Figure 6, the phase detector 30 is the phase detector of Figure 4. The 12-bit output thereof is in effect differentiated, to derive b on a modulo basis; low-pass filtered, to remove the jitter or noise; and integrated, to derive a new 12-bit output which is free of the jitter. The differentiation is effected by a modulo 2 n subtractor 31 and a latch circuit 32, to each of which is supplied the 12-bit output of the phase detector 30. The latch circuit 32 is strobed by the trigger clock signal tc to provide a second input to the subtractor 31, the output of which is supplied to a low-pass filter 33 which has a very narrow pass-band, for example only a few Hertz or even only a fraction of a Hertz. The integration is effected by a modulo 2 n adder 34 which receives the output of the low-pass filter 33, and a latch circuit 35 which receives the output of the adder 34. The latch circuit 35 is strobed by the trigger clock signal tc to provide a second input to the adder 34, the output of which is the required 12-bit phase detector output. If required, this output can be supplied to a further adder 36 where a static offset can be added to set a specific phase difference relative to the input. Although not shown, all the connections in Figure 6 are 12-bit buses. The waveforms of Figures 7A to 7C and 7E represent the signals at the points A to C and E respectively in Figure 6. Thus Figure 7A represents the output of the phase detector 30, which exhibits jitter or noise. Figure 7B represents the result of differentiating the phase detector output, and may be considered as a velocity; that is, the value b. Figure 7C represents the filtered velocity; that is, from which the jitter or noise has been removed. Figure 7E represents the final output after integration, and is free of jitter. The 12-bit final output is supplied to the filters 13F and 14F (Figure 3), the most significant six bits controlling selection of the weighting coefficient for the filter 13F, and the least significant six bits controlling selection of the weighting coefficient of the filter 14F. As mentioned above, the low-pass filter 33 has a very narrow pass-band, and this can cause problems if the velocity (b) is not reasonably steady, that is, is subject to an acceleration, such as may occur transiently, for example, at start-up, or on occurrence of a temporary fault, or in a video tape recorder application due to mechanical slew. To enable the output to respond rapidly in such circumstances, the output of the subtractor 31 may be supplied to a further differentiator comprising a modulo 2 n subtractor 37 and to a latch circuit 38, which is strobed by the trigger clock signal tc thereby to supply a second input to the subtractor 37. The output of the subtractor 37 is supplied to a low-pass filter 39, the output of which represents the acceleration, and can form a control signal to effect switching of the pass-band of the low-pass filter 33 to a wider band at times when the acceleration has a significant value. When used in this way it is preferable to use a symmetrical finite impulse response filter as the filter 33, to avoid changing the filter group delay. Figure 7D represents the signal at the point D, that is the output of the low-pass filter 39 or the acceleration, which, as shown, will have a steady near-zero value when the arrangement is in stable operation. Various modifications are of course possible without departing from the scope of the invention as defined by the appended claims. Thus the frequencies mentioned, and the number of bits in the signals mentioned are by way of example only, and say in an interpolator for converting an audio signal from a sampling frequency of 48 kHz to a sampling frequency of 44.4 kHz, an 18-bit phase detector output may be required, associated with 18-bit outputs throughout the remainder of the circuit of Figure 6.

Claims: A digital phase detector arrangement comprising: a digital phase detector (30) for deriving a digital output signal representing the phase differences between two input clock signals supplied to the phase detector (30); and circuit means for reducing jitter in said output signal; said circuit means comprising: a differentiator (31, 32) for differentiating said output signal to produce a differentiated signal; a low-pass filter for low-pass (33) filtering said differentiated signal to produce a filtered signal; and an integrator (34, 35) for integrating said filter signal to produce a further digital output signal from which at least some jitter has been removed by said low-pass filter (33). An arrangement according to claim 1 wherein said circuit means further comprises a further differentiator (37, 38) for again differentiating said differentiated signal to produce a control signal in dependence on which the pass-band of said low-pass filter (33) is controlled. An arrangement according to claim 2 wherein said control signal is supplied to said low-pass filter (33) by way of a further low-pass filter (39). An arrangement according to claim 1, claim 2 or claim 3 wherein said digital phase detector (30) comprises first and second counters (22, 23) for dividing the frequencies of said two input clock signals in the same ratio, and a phase-locked loop circuit arrangement (20) controlled by the output of said first counter (22) and including a third counter (24) the output of which is supplied to a latch circuit (25), said latch circuit (25) being strobed by the output of said third counter (24) to produce said digital output signal. An arrangement according to claim 4 wherein said differentiator (31, 32) comprises a modulo subtractor (31) and a latch circuit (32) which is strobed by the output of said third counter (24). An arrangement according to claim 4 or claim 5 wherein said integrator (34, 35) comprises a modulo adder (34) and a latch circuit (35) which is strobed by the output of said third counter (24). An arrangement according to claim 4 as dependent on claim 3 wherein said further differentiator (37, 38) comprises a modulo subtractor (37) and a latch circuit (38) which is strobed by the output of said third counter (24). A digital signal interpolator arrangement for interpolating an input digital signal to derive an output digital signal having a different sample rate, the arrangement comprising: a cascaded series of multi-tap interpolation filters (13, 14), each of said interpolation filters (13, 14) having a plurality of selectively dynamically assignable tap sets; a digital phase detector arrangement (3) according to any one of the preceding claims for deriving a further digital output signal which for each said interpolation filter (13, 14) selects and assigns a said tap set therefor, for each output sample to be derived; means to supply said input digital signal to the first said interpolation filter (13) of said series; and means to derive the required sample-rate converted output digital signal from the final said interpolation filter (14) of said series. An arrangement according to claim 8 comprising random access memory (13R, 14R) for storing said tap sets. An arrangement according to claim 8 or claim 9 wherein each said interpolation filter (13, 14) is formed as an integrated circuit, and each said integrated circuit comprises random access memory (13R, 14R) for storing dynamically selectable tap sets for the respective said interpolation filter (13F, 14F). An arrangement according to claim 8, claim 9 or claim 10 wherein full resolution digital connections are provided between each said interpolation filter (13, 14) in said series and the next said interpolation filter (13, 14) in said series. An arrangement according to any one of claim 8 to 11 wherein each said interpolation filter (13, 14) is a 16-tap digital filter (13F, 14F) having 64 selectively dynamically assignable tap sets. An arrangement according to claim 12 wherein said cascaded series of interpolation filters (13, 14) comprises two said interpolation filters (13, 14).

Inventors: WILKINSON JAMES HEDLEY, WILKINSON, JAMES HEDLEY
Applicants: SONY UK LTD, SONY UNITED KINGDOM LIMITED
Application year: 1991
Main classification: H03D13
IPC codes: H04N7, H03D13, H03H17, H04L7, H03K5