Background of the Invention
The present invention relates in general to digital video and audio, and more particularly to phase-locking a clock to a digital audio signal embedded within a digital video signal.
Audio data embedded within a digital video stream has a different integer frequency relationship to the video clock. For this reason, a conventional phase-locked loop locked to the video clock requires dividers for both the video clock signal and the synthesized audio clock signal as shown in FIG. 1. Depending upon the type of video signal, the audio signal's integer frequency relationship with the video clock may be relatively large. Conventionally, with some video signals, such as the National Television System Committee (NTSC) standard, the divider ratios become very large and impracticable to implement.
In the case of 14.31818 MHz NTSC D2 video, the integer ratio between the video clock and the 48 KHz audio clock is 4777500/16016. A conventional phase-locked loop that derives the 48 KHz audio signal in this case requires two dividers as shown in FIG. 1. One divides the video clock by 4777500, denoted by N in FIG. 1, and another which divides the audio clock by 16016, which is denoted by M FIG. 1. Also, in this case an additional problem is that the divided down frequency into the phase detector would be 2.997003 Hz, which requires a very slow loop filter.
Furthermore, accommodating a conventional multi-standard decoder requires switching divider ratios for each different video standard. For example, the divider ratio (M/N) described above for the NTSC D2 standard would change for both the Phase Alternate Line D2 (PAL D2) and 27 MHz D1 standards, which requires rather complex circuitry.
To avoid the above problems, another method to phase-lock a clock to an embedded digital audio signal is to detect each audio sample as it appears on the video and use that sample as an input to the phase detector of a phase-lock loop. This method is independent of the video standard, and works with a non-synchronous audio signal as well as with one synchronous to a video signal. However, significant problems with the above method exist. It happens that the audio data signal is "bursty" in that it has a great deal of phase jitter because the audio samples are dispersed very unevenly through the video signal. The phase jitter on the audio samples can be transferred to the regenerated audio clock created by the phase-lock loop and at times cause the phase detector to lose or gain cycles and not to function.
What is desired is a system for phase-locking a clock to a digital audio signal embedded within a digital video signal where phase jitter associated with the digital audio signal does not prevent the functionality of the phase-lock loop or have unacceptable effects on the generated audio clock signal.
Summary of the Invention
In accordance with the illustrated preferred embodiment of the invention, a method and apparatus is disclosed to phase-lock a clock to a digital audio signal embedded within a digital video signal.
Audio samples are extracted from a digital video signal and are input to a frequency divider so that phase jitter present in the audio signal can be managed. The resultant signal is then processed by a phase detector, a first low pass input filter, and then a second loop filter in series with the first and configured in such a way to reject phase jitter. The output of the second loop filter is input to a voltage controlled oscillator (VCO) which includes its own frequency divider to divide down the clock signal to the original audio sampling frequency. The output of the VCO is then the resultant phased-locked audio sample frequency signal. This signal is input to a second frequency divider with the same divisor value as the frequency divider used to divide down the original input audio sample, before being looped back and input to the phase detector.
The objects, advantages, and other novel features of the present invention are apparent from the following detailed description when read in conjunction with the appended claims and attached drawing.
Brief Description of the Drawing
FIG. 1 is a block diagrammatic view of a prior art system for phase locking a clock to an audio signal embedded in a digital video signal.
FIG. 2 is a block diagrammatic view of a system for phase-locking a clock to a digital audio signal embedded in a digital video signal according to the present invention.
FIG. 3 is a block diagrammatic view of a voltage controlled oscillator (VCO) containing a frequency divider, according to the present invention.
Description of the Preferred Embodiment
Referring now to FIG. 2, a video signal is input to an audio extractor 2, the output audio samples from the audio extractor 2 are input to a first frequency divider 4. The divisor value of the first frequency divider 4 is that which will divide the frequency of the audio signal down enough so that the period is greater or equal to that of phase jitter present in the audio sample. This reduces phase jitter enough for a phase detector 8 to function. For example, if there is 1.0 ms of phase jitter present in an original 48 KHz extracted audio signal, the period of the original 48 KHz extracted audio signal will be smaller than the 1 ms of jitter. However, if the divisor of the frequency divider is 64, then the original 48 KHz extracted audio signal will be divided down to a 750 Hz signal, with a period larger than the phase shift caused by the 1 ms phase jitter.
The resultant signal from the first frequency divider 4 is then input to the phase detector 8. The output from the phase detector 8 is input to a first standard loop filter 10. The output of the loop filter 10 is then input to a second loop filter 12 with adjusted bandwidth in order to reject phase jitter. For example, the adjusted bandwidth second loop filter 12 may be a 10 Hz four-pole filter according to one preferred embodiment, which is sufficient to reject 50 Hz jitter, which is characteristic for embedded audio signals, but also may be configured to a degree that is sufficient to attenuate the phase jitter present in any specific original audio sample. However, the same effect is obtained by using a single loop filter. The single loop filter must be one that allows for a system gain to gradually decline to less than 1 with a phase shift not supporting oscillations at a gain of 1. The jitter frequency is higher than the crossover frequency at which the gain equals 1. Therefore, the single filter must have a bandwidth configured to a degree that is sufficient to attenuate the phase jitter present in the specific original audio sample.
The output of the second adjusted bandwidth loop filter 12 is then input to a voltage controlled oscillator (VCO) 14. Referring to FIG. 3, the VCO 14 contains an extra frequency divider 18, to divide down the output clock signal in this case to match the frequency of the embedded audio sample. Referring now to FIG. 2 again, the output from the VCO 14 is the synthesized audio sample frequency signal output with reduced phase jitter. The audio sample frequency signal is also input to a second frequency divider 6 with the same divisor as the first frequency divider 4. The divisors of the two frequency dividers 4, 6 are the same because the audio signal is extracted from the video signal and there is no need for a different divisor for phase-locking to the video signal clock.
The divided down audio sample frequency output from the second frequency divider 6 is then looped back and input to the phase detector 8 for comparison with the reference signal output from the first frequency divider 4.
Thus, the present invention provides a system for phase-locking a clock to a digital audio signal embedded within a digital video signal where phase jitter associated with the digital audio signal does not prevent the functionality of the phase-locked loop or have unacceptable effects on the generated audio clock signal.