This application claims priority from German patent application 10 2004 027 093.7 filed Jun. 2, 2004, which is hereby incorporated by reference.
The invention relates in general to video signal processing and in particular to a method and device by which the phase position of a sampling clock relative to an analog signal to be sampled can be reconstructed and controlled.
When analog signals, for example, analog video signals are processed or evaluated, these signals are often sampled in coupled form. Specifically in the case of analog video signals, line-coupled sampling is often implemented. This means that the analog signal is sampled at the sampling frequency (also called the pixel frequency) of the pixels to be displayed on the screen or monitor. A single pixel is typically sampled during a single sample period.
During the coupled sampling of analog signals, not only is the sampling or pixel frequency relevant, but also the phase position of the sampling clock relative to the analog signal to be sampled, for example, a pixel signal. For this reason, synchronization of the phase position of the sampling clock with the analog signal is generally desirable. In addition, it is desirable that the phase position of the sampling clock with respect to the analog signal be kept relatively constant.
If an unfavorable phase position occurs, as illustrated in the graph of
For the phase position illustrated in the graph of
Conversely, the graph in
During analog video signal sampling, the required synchronization is often implemented by synchronizing a phase-locked loop (PLL), to control the phase position of the sampling clock, to a time synchronization pulse, also called an H-Sync, which pulse is normally transmitted in the analog video signals. However, in the case of computer video signals, the situation often arises whereby, for example, the pixels are shifted in phase relative to the H-Sync. As a result, additional phase correction of the sampling clock is required.
In the example above, however, as well as in general, the absolute value of the phase deviation of the analog signal from the sampling clock, or if present, the synchronization pulse, is in general not known since only one sampling point per to-be-sampled signal is available. Specifically, in the case of line-coupled sampling of an analog video signal, only one sampling value per pixel is normally available.
What is needed is a method and device by which the phase position of the sampling clock relative to the to-be-sampled signal can be simply and reliably determined and controlled.
In a method and device for reconstructing and controlling the phase position of a sample clock relative to an analog signal to be sampled, the analog signal is sampled at a plurality of different instants in time during a time interval and a plurality of time gradients at the same or different instants in time are determined. The original analog signal is reconstructed, at least in segments, based on the sampled values and determined time gradients. The reconstructed signal curve is utilized to determine the phase position of the sampling clock relative to the analog signal. This phase position is provided to a control loop which readjusts the phase position of the sampling clock accordingly.
The phase position of the sampling clock relative to the to-be-sampled signal can be determined relatively simply and reliably without the need for additional reference signals or without an increased burden on the device electronics. Independently of the analog signal, the phase position of the sampling clock can be determined with sufficient precision and tied in to a control loop. In addition, it is possible to implement a phase compensation, not only for static images but also for moving images Since any phase jump can be corrected relatively quickly, for example, within a line in the case of video signals, the evaluation or image remains sharp and high in contrast, and any phase jump would likely not be noticed by a viewer, for example, on a monitor.
These and other objects, features and advantages of the present invention will become more apparent in light of the following detailed description of preferred embodiments thereof, as illustrated in the accompanying drawings.
a-1b are graphs that illustrate the known effects of the phase position of the sampling clock relative to the to-be-sampled analog signal on the quality of the sampling results;
a-2b are graphs that illustrate the effect of the phase position on the time gradients of the analog signal at the sampling instant;
Referring to
In addition, at each sampling instant 12 at which a sampling value represented by a point 14 on the analog signal curve 10 is determined, the time gradient of the analog signal 10 present at this instant 12 is also determined. The gradient is indicated each time in
a-2b illustrate the effect of the phase position on the time gradients 15 at the sampling instants 12. In the relatively unfavorable phase position for sampling the analog signal 10 illustrated in the graph of
Reconstruction of the signal curve is based on selecting a mathematical function suitable for the analog signal curve 10, then determining its parameters by fitting this function to at least some of the sampling values 14 and time gradients 15. In doing so, a number of functions may be employed, for example, trigonometric functions or polynomial functions.
The approximate reconstruction of the analog signal curve 10 may be based, for example, on a fourth-order polynomial. The least-squares method may be used for the fitting procedure (i.e., determination of the five coefficients of the fourth-order polynomial). Other algorithms may also be employed.
The results of the reconstructions based on fourth-order polynomials and the least-squares method are illustrated in
As examples of non-sinusoidal signal curves of the analog signal 10, subregions of the analog signal 10 are illustrated in
As mentioned hereinabove, a fourth-order polynomial may be utilized for reconstruction of the signal curve. Determination of the five coefficients of the polynomial requires the solution of a linear fifth-order equation system for these coefficients. As is well known, this equation system can be represented in matrix form. A step in solving this equation system comprises calculating the inverse matrix of the fifth-order equation system put into matrix form. The same number of sampling values 14 or time gradients may be utilized, which may also be identically spaced in time for the approximate reconstruction of the signal curve. This way, the inverse matrix may need to be calculated once and can be used for each reconstruction operation. Specifically, the coefficients of the inverse matrix can be stored at the start in a module to determine the phase position, with the result that there is no need to calculate the inverse matrix.
Following the description above of the approximate reconstruction of the signal curve 20 for the analog signal 10, the following description explains in more detail the determination of the phase position as well as its control.
With discretization of the analog signal curve 10, the horizontal time axis in
As described in detail hereinbefore with respect to
However, a transformation of the sampling values 14a-14c may first be implemented. The sampled values of the analog signal 10 may be transposed to a desired value range, which allows for relatively simpler and more precise calculation of the approximately reconstructed signal curve and of the phase position. This transformation may be implemented by addition of the negative value of the median of the sampling values, thus of negative sampling value 14b in
With the subsequent approximate reconstruction of the signal curve of the analog signal 10, not only is the reconstructed signal curve provided but also its time derivative. As described hereinabove with respect to
In the example herein, it is the zero point of the first time derivative of the signal curve of the analog signal 10 closest to the center sampling value 14B that is determined. If sampling value 14A or value 14C were utilized instead, the closest zero point of the time derivative could lie outside the utilized value range, thereby possibly resulting in phase jumps in the control of the phase position which might cause the control to become unstable. For this reason, a determination is made of the closest zero point of that sampling value which lies chronologically between two additional sampling instants which in turn are part of the subregion of the analog signal 10 utilized for the approximate reconstruction of the signal curve of the analog signal 10.
The well-known Newton-Homer scheme may be employed to determine the zero point for the first time derivative of the signal curve of the analog signal 10 closest to sampling value 14B, or associated sampling instant 12b, whereby sampling instant 12b of examined sampling value 14B may be utilized as the initial value for the zero-point search. The Newton-Homer scheme converges on the zero point closest to the initial value.
Subsequently, the phase position of the sampling clock relative to the analog signal, or the phase difference of the sampling clock relative to the relatively favorable phase position, is determined based on the time distance of the determined zero point from the selected sampling value 14B, or that of the associated sampling instant 12b, and then supplied to a control circuit or control loop which readjusts the phase position such that sampling instant 12b coincides to the relatively greatest extent possible with the time position of the determined zero point. Due to the limited number of adjustable phase positions (e.g., six phase positions having a base clock rate of 648 MHz) the adjustment to the relatively favorable phase position is not always possible since this position may not correspond exactly with one of the adjustable six phase positions. In this case, the control loop adjusts to that phase position which most closely approximates the relatively favorable phase position.
Referring to
Using the first ADC 40, the analog signal on the line 10 can be sampled at different time instants based on the clock signal on the line 33. The resulting sampling values of the analog signal 10 on a line 42 from the first ADC 40 can be supplied to the phase position module 60. After the analog signal on the line 10 has undergone time differentiation in the time differentiation unit 50, the time-differentiated analog signal on a line 52 can be supplied together with the clock signal on the line 33 to the second ADC 45. Due to the time coupling with the clock signal on the line 33, the second ADC 45 can sample the time-differentiated analog signal on the line 52 at the same instants as the first ADC 40. As a result, for each value of the analog signal on the line 10 sampled at a given time, the value of the time-differentiated signal on the line 52 associated with this instant can be sampled.
After the sampling of time-differentiated analog signal on the line 52, the second ADC 45 provides the time gradients of the analog signal on a line 54 at the sampling instants to the phase position module 60. The phase position or phase difference relative to the relatively favorable phase position of the sampling clock relative to the signal curve of the analog signal 10 can be determined within the module 60, which module 60 is explained in more detail with respect to
Through use of the DLL 95, the clock rate of the clock generator 32 can be modified based on the phase information on the line 92 such that the clock generator 32 and the DLL output a displaced clock on the 33 which in turn can be supplied to the other components 40, 45, 60, 90 as the clock signal 33. This enables an iterative control of the phase position of the sampling clock to be implemented-relative to the to-be-sampled analog signal on the line 10.
Referring to
A single storage register 62, 63, 64 may be provided for each sampling value of the analog signal on the line 42 utilized to reconstruct the signal curve. Also, a single storage register 65, 66, 67 may be provided for each time gradient utilized to reconstruct the signal curve. Reconstruction may be implemented using more than three sampling values of the analog signal on the line 42, and using more than three time gradients of the analog signal on the line 54, in which case a corresponding number of storage registers can be provided as necessary.
The storage registers 62, 63, 64 may be assignable with sampling values sampled at different instants. On the other hand, the time gradients of analog signal on the line 54 determined at different instants can be stored in the registers 65, 66, 67. In addition, the contents of the registers 62-67 can be supplied to a microcontroller 80 in which the segment-by-segment reconstruction of the signal curve of the analog signal on the line 10 can be implemented. In addition, the microcontroller 80 can also determine the zero point of the first time derivative of the reconstructed signal curve, and, as described hereinabove, can determine the phase position of the sampling clock relative to the analog signal on the line 10 based on the time distance of this sampling instant from the time position of the determined zero point, or, by using a phase position axis, based on the distance along the phase position axis of the sampling instant or sampling value from the determined zero point. The thus calculated phase position or phase difference relative to the relatively favorable phase position of the sampling clock on the line 82 is output from the module 60.
A median operator 69 may be utilized, by which the sampling values of the analog signal on the line 42 stored in the registers 62, 63, 64 can be related to the mean of these values, thereby effecting a transformation of the sampling values of the analog signal on the line 42 to the approximate zero value. This provides for a more precise calculation of the reconstructed signal curve.
It is not necessary to continually feed data to the device 25 to calculate the phase position. It is sufficient if, after termination of a calculation, the values for the next calculation are supplied to the microcontroller 80. Since a given phase change generally occurs very slowly, and rather infrequently, it is also possible to be limited to selective individual reconstruction operations (e.g., an operation at the center of a line of a video signal). In these cases, there would thus be a comparatively greater amount of time available for the calculation.
An uninterrupted evaluation of the sampling values on the line 42 or of the time gradients on the line 54 is thus not necessary. Calculation of the phase position of the sampling clock relative to the signal curve of the analog signal on the line 10 can be implemented at any desired instant. This aspect is attractive if there is a need to save on hardware or components.
In the event the frequency of the data signal is known and the signal is impaired by interference and/or noise at frequencies higher than the data signal frequency, the ability to filter out portions of the analog signal on the line 10 at frequencies higher than the data signal frequency may be provided, and to prevent these from influencing the determination and control of the phase position. This feature can be implemented by integrating an optional low-pass filter 35 after the analog signal input 30 in
In those cases where a reconstructed signal curve of the analog signal on the line 10 with relatively high accuracy is not critical, it is also possible to utilize simplified gradients which provide information as to whether the signal curve at the sampling instant is rising, falling, or is flat. This is equivalent to a value range for these simplified gradients from one, zero, and one, or to analogous designations. Since a false gradient value in terms of absolute value has an effect only on the amplitude, this information is sufficient for the determination or control of the phase position of the sampling clock relative to a to-be-sampled analog signal.
Although the present invention has been illustrated and described with respect to several preferred embodiments thereof, various changes, omissions and additions to the form and detail thereof, may be made therein, with departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
10 2004 027 093.7 | Jun 2004 | DE | national |