A DELAY CORRECTION CIRCUIT

Abstract: A delay correction circuit includes a source (15) of a clock signal and a source (5) of a timing signal asynchronous with the clock signal. A timing signal detector (10) is responsive to the clock signal and the timing signal, and is properly operative only when the timing signal is stable for a predetermined time period around the clock signal. A control circuit (70) conditions utilization circuitry (80) to operate after a delay time after the timing signal is detected. Adjusting circuitry (10, 20, 30, 40, 50, 60) conditions the control circuit (70) to adjust the delay time if the timing signal was not stable within the predetermined time period.

Description: A DELAY CORRECTION CIRCUIT Field of the Invention The present invention relates to a processing circuit which is enabled a predetermined delay period after a timing signal is detected, and in particular to a circuit for correcting the delay period in cases when the timing signal may be detected incorrectly. Background of the invention Digital video signal processing circuitry generally samples a video signal in response to a clock signal which is synchronized to one synchronization component of the video signal. For example, in a standard NTSC video signal, the video signal may be sampled in response to a clock signal synchronized to the color burst signal and having a frequency of four times the color burst signal frequency (termed a burst- locked clock). In a standard NTSC video signal, such a sample clock signal has 910 pulses in one horizontal line. While the phase of such a sample clock signal is independent of the phase of the line (e.g. horizontal) synchronization component, the phase difference between them remains constant. However, digital video signal processing circuits often must process non-standard video signal. In these signals, the phase difference between the burst locked clock and the line synchronization component varies from line to line. This situation can occur in video cassette recorders and/or video disc players in which the recording medium is affected with mechanical jitter on playback. The effects are exacerbated in processing circuits which store frames of digital video data for functions such as noise reduction and frame comb luminance/chrominance component separation, and features such as freeze frame and picture-in-picture. To perform such functions, and provide such features, it is required to process samples from spatially aligned raster locations in adjacent frames. That is, the two samples must be from the same line in each frame, and have the same time delay from the horizontal synchronization signal in that line. However, because of the phase changes between the burst locked sample clock and the horizontal synchronization signal from line to line and frame to frame, as described above, a sample in a line of one frame will not necessarily be spatially aligned with a sample in the same line in the previous frame. It is known to calculate the phase difference (termed skew) between the burst clock signal and the horizontal synchronization signal in each line. U.S. Patent No. 5,309,1 1 1 entitled "Apparatus for Measuring Skew Timing Errors," issued May 3, 1994 to McNeely et al., describes a device for measuring the skew as a fraction of a clock period and is relatively insensitive to device parameters. The sampling clock signal is applied to a cascade connection of a plurality of analog delay elements, sufficient in number to contain one full clock cycle. The output connections of each analog delay element is coupled to a data input terminal of a respective storage element. A signal representative of the horizontal synchronizing signal is applied to the storage elements to simultaneously latch signal into the respective storage elements, thereby capturing a representative cycle of the sampling clock signal in the storage elements. Decoding circuitry is coupled to the storage elements for detecting the relative position of the e.g., leading transition of the sampling clock pulse immediately preceding the trailing transition of the horizontal pulse. A ratio is calculated indicative of the skew error, which ratio corresponds to the position of the first transition, in units of delay, divided by the duration of the sampling clock period, in units of delay. It is also known to interpolate between two samples in a line of one frame to generate an interpolated sample which is spatially aligned (i.e. at the same delay from the horizontal synchronization signal) with a sample in that same line of the previous frame, using the difference in skew between the two lines as the interpolation parameter. This interpolated sample is then processed, along with the sample from the previous frame, to provide the functions and features described above. Such is discussed in U.S. Patent No. 4,667,240 entitled "Timing Correction Circuitry as for TV Signal Recursive Filters," issued May 19, 1987 to Willis et al., which discloses an apparatus for effecting temporal alignment of corresponding signal samples from successive frames of non-standard video signals in a memory based video signal processing system. This apparatus includes a delay element and video signal processing circuitry for processing incoming and delayed signals. The apparatus may be coupled to detect and alter skew of the incoming signal so that the incoming signal and the delayed signals will have substantially equal skew values from line-to- line. Alternatively, the skew detection and correction apparatus may be coupled to the output of the delay element to match the skew of the delayed signal to the skew of the incoming signal. It is also known to store only visible samples (i.e. non-blank samples) in the frame store to minimize the required capacity of the frame store. Thus, in such systems, the taking and storing of video samples is delayed from the horizontal synchronization signal by a period substantially equal to the horizontal blanking interval. Such systems use a logic gate, or flip-flop, responsive to the horizontal synchronization signal, and clocked by the burst locked clock, to detect the horizontal synchronization signal. Figs. 1, 2 and 3 are waveform diagrams illustrating how an uncertainty condition can arise in such systems. In Fig. 1, the topmost waveform, CLOCK, illustrates the burst locked clock near the start of a horizontal line. The second waveform, H SYNC, illustrates the horizontal synchronization signal for the horizontal line. As can be seen, the leading edge 201 (negative going) of the horizontal synchronization signal occurs nearly at the middle (i.e. near the negative going transition) of cycle 0 of the burst locked clock signal, CLOCK. The third waveform, SYNC DETECTED, represents the output of the horizontal synchronization signal detector, which may, for example, be a flip-flop. The SYNC DETECTED signal goes high 202 at the leading edge of cycle 1 of the burst locked clock, CLOCK, after the leading edge 201 of the horizontal synchronization signal H SYNC. The fourth waveform, SAMPLE, illustrates the sample clock. The sample clock begins on the fourth cycle of the burst locked clock CLOCK after the horizontal synchronization signal H SYNC was detected 202, which in the illustrated embodiment is assumed to be the beginning of the visible samples. In an actual embodiment, the number of burst locked clock cycles from the detection of the horizontal synchronization signal to the first visible video sample may be different. One skilled in the art will understand how to adjust the delay appropriately. Logic circuits such as the flip-flop forming the horizontal synchronization signal detector, generally are guaranteed to operate properly only if the signal being sampled (in this case, the horizontal synchronization signal) is stable from a predetermined time before a transition of the clock signal (in this case, the burst locked clock signal) called the set-up time, through a predetermined time after the transition of the clock signal called the hold-time. Otherwise, the operation of that logic device is unstable. However, as described above, the phase of the horizontal synchronization signal is independent of the phase of the burst clock signal, so it cannot be guaranteed that the horizontal synchronization signal remains stable during the set-up and hold-times. In cases when the horizontal synchronization signal is not stable during the set-up and hold-times, the logic gate or flip-flop may operate properly to detect the horizontal synchronization signal, or it may not. Thus, under this condition, there can be a one clock period uncertainty in the detection of the horizontal synchronization signal. Consequently, there can be a one clock period uncertainty in determining the first visible sample to be taken and stored. This means it is possible to process samples in successive frames which are spatially displaced one pixel in the raster, which seriously degrades the accuracy of such processing. Fig. 2 illustrates one combination of burst locked clock and horizontal synchronization signal timing which may result in the uncertainty described above. In Fig. 2, the leading edge 301 of the horizontal synchronization signal, H SYNC, occurs just after a leading edge of cycle 0 of the burst locked clock, CLOCK. The horizontal synchronization signal, H SYNC, should be detected at clock cycle 1 of the leading edge of the burst locked, which is the next clock cycle following the leading edge 301 of the horizontal synchronization component H SYNC, as illustrated by rising edge 302 of the SYNC DETECTED signal. In turn, the sample clock should not begin until four clock cycles after that, or clock pulse 5, as shown in the fourth waveform, SAMPLE(RIGHT). However, in this case, the horizontal synchronization signal H SYNC is not stable during the hold time of the flip flop at clock pulse 0. Thus, the flip flop may produce either a 'high' or 'low' signal at its output terminal, SYNC DETECTED, in response to cycle 0 of the burst locked clock signal, CLOCK. This is illustrated in Fig. 2 by the series of diagonal lines at the leading edge of the SYNC DETECTED signal. If the flip flop erroneously produces a 'high' signal at the SYNC DETECTED output terminal in response to clock pulse 0, generating leading edge 303, then the sample clock SAMPLE will erroneously begin four cycles later at burst locked clock cycle 4. This is illustrated in Fig. 2 on the fifth waveform SAM- PLE(WRONG). Fig. 3 illustrates another combination of burst locked clock and hori- zontal synchronization signal timing which may result in the uncertainty described above. In Fig. 3, the leading edge 401 of the horizontal synchronization signal, H SYNC, occurs just before the leading edge of cycle 1 of the burst clock, CLOCK. In this case, as well, the horizontal synchronization signal H SYNC should be detected by clock pulse 1, as illustrated by rising edge 402 of the SYNC DETECTED signal. In turn, the sample clock should begin four clock cycles after that, or clock pulse 5, as shown in the fifth waveform, SAMPLE(RIGHT). However, in this case, the horizontal synchronization signal H SYNC is not stable during the setup time of the flip flop at clock pulse 1. Thus, the flip flop may produce either a 'high' or 'low' signal at its output terminal, SYNC DETECTED, in response to cycle 1 of the burst locked clock signal CLOCK. This is illustrated in Fig. 3 by the series of diagonal lines at the leading edge of the SYNC DETECTED signal. If the flip flop does not produce a 'high' signal at the SYNC DETECTED output terminal in response to cycle 1 of the burst locked clock signal CLOCK, generating leading edge 402, then the horizontal synchronizing signal H SYNC will not be detected until cycle 2 of the burst locked clock signal, CLOCK, as illustrated by leading edge 403 of the SYNC DETECTED signal. In this case, the sample clock SAMPLE will erroneously begin four cycles later at burst locked clock signal CLOCK cycle 6. This is illustrated in Fig. 3 on the fourth waveform SAMPLE(WRONG). It is desirable that the location of the horizontal synchronization signal be accurately detected so that the spatial locations of the samples taken in relation to that signal can be located accurately. In this manner the frame processing will process corresponding samples and maintain the required accuracy of processing. Brief description of the invention In accordance with principles of the present invention, a delay correction circuit includes a source of a clock signal and a source of a timing signal asynchronous with the clock signal. A timing signal detector is responsive to the clock signal and the timing signal, and is properly operative only when the timing signal is stable for a predetermined time period around the clock signal. A control circuit conditions utilization circuitry to operate after a delay time after detection of the timing signal. Adjusting circuitry conditions the control circuit to adjust the delay time if the timing signal was not stable within the predetermined time period. Brief description of the drawing In the drawing: Figs. 1 , 2 and 3 are waveform diagrams illustrating how an uncertainty condition can arise; Fig. 4 is a block diagram of a circuit for correcting for the uncertainty condition illustrated in Figs. 1 , 2 and 3; Figs. 5, 6 and 7 are waveform diagrams illustrating the operation of the correction circuit illustrated in Fig. 4; and Fig. 8 is a more detailed block diagram of a preferred embodiment of the correction circuit illustrated in Fig. 4. Description Fig. 4 is a block diagram of a circuit for correcting for the uncertainty condition illustrated in Figs. 1, 2 and 3. In Fig. 4, only those elements necessary for understanding the operation of the present invention are illustrated. One skilled in the art will understand what other elements are required, how to design and fabricate those elements, and how to interconnect those elements with the elements illustrated in Fig. 4. In Fig. 4, a source (not shown) of a horizontal synchronization component signal H SYNC is coupled to a first input terminal 5, and a source (also not shown) of a burst locked clock signal CLOCK is coupled to a second input terminal 15. Input terminal 5 is coupled to respective inverting D input terminals of a first D flip-flop 10 and a second D flip- flop 20, and to a first input terminal of a skew measuring circuit 30. Input terminal 15 is coupled to a clock input terminal C of the first D flip- flop 10, an inverted clock input terminal C of the second D flip-flop 20, a second input terminal of the skew measuring circuit 30, and a clock signal input terminal of a memory control circuit 70. A Q output terminal of the first D flip-flop 10 produces the SYNC DETECTED signal and is coupled to an inverting input terminal of an AND gate 40, and a corresponding input terminal of the memory control circuit 70. A Q output terminal of the second flip-flop 20 is coupled to a non-inverting input terminal of the AND gate 40. An output terminal of the AND gate 40 is coupled to a set input terminal S of an S-R flip-flop 50. A Q output terminal of the S-R flip-flop 50, produces a signal representing which edge (rising or falling) of the burst locked clock signal CLOCK first detected the horizontal synchronization signal H SYNC, and is coupled to a first input terminal of a correction logic circuit 60. An output terminal of the skew measuring circuit 30 is coupled to a second input terminal of the correction logic circuit 60. First and second output terminals of the correction logic circuit 60 produce respective signals indicating whether the burst clock cycle count from the detected horizontal synchronization signal to the first visible sample should be incremented or decremented, and are coupled to corresponding input terminals of the memory control circuit 70. A bidirectional terminal of the memory control circuit 70 is coupled to the frame store memory 80. A control output terminal of the memory control circuit 70 is coupled to the reset input terminal of the S-R flip-flop 50. Fig. 5 is a waveform diagram, useful in understanding the operation of the correction circuit illustrated in Fig. 4, which should be referred to in the discussion below. In operation, both of the first and second flip- flops 10 and 20, and the S-R flip flop 50, begin in the reset state, in which the Q output terminals produce logic O' signals. The first D flip-flop 10 operates to detect the horizontal synchronization signal H SYNC at leading edges of the burst locked clock signal CLOCK, and produce the SYNC DETECTED signal, all in a known manner. The SYNC DETECTED signal produced by the first flip-flop 10 is subject to the uncertainty condition illustrated in Figs. 1, 2 and 3. The second D flip-flop operates to detect the horizontal synchronization signal H SYNC at trailing edges of the burst locked clock signal CLOCK. If a leading edge of the horizontal synchronization signal H SYNC is first detected by the leading edge detector flip-flop 10, it produces a logic T SYNC DETECTED signal at its Q output terminal, which disables the AND gate 40. The SYNC DETECTED signal conditions the memory controller circuit 70 to begin counting cycles of the burst locked clock signal, CLOCK, until the first visible sample is to be taken. The Q output terminal of the S-R flip-flop 50, in turn, continues to produce a logic '0' signal, which indicates that the horizontal synchronization signal H SYNC was detected on the leading edge of the burst locked clock signal CLOCK. If the horizontal synchronization signal H SYNC is first detected by the trailing edge detector flip-flop 20, it produces a logic T signal at its Q output terminal. The AND gate 40 passes the logic '1' signal to the set input terminal S of the S-R flip-flop 50. In response, the S-R flip-flop 50 enters the set state, in which the Q output terminal produces a logic '1 ' signal, which indicates that the horizontal synchronization signal H SYNC was detected on the trailing edge of the burst locked clock signal CLOCK. The skew measuring circuit 30 operates in a known manner as described in U.S. patent 5,309, 1 1 1 and discussed previously to produce a signal indicating the amount of skew between the horizontal synchronization signal H SYNC and the burst locked clock signal CLOCK, expressed as a fraction of a cycle of the burst locked clock signal CLOCK. As described above, the uncertainty condition occurs when the leading edge of the horizontal synchronization signal H SYNC occurs within the set-up and hold times of the leading edge of the burst locked clock signal CLOCK. As shown in Figs. 2 and 3, the skew tSKEW (expressed as a fraction of a cycle) for this condition is either close to zero, or close to one. If, on the other hand, the leading edge of the horizontal synchronization signal H SYNC is not close to a leading edge of the burst locked clock signal CLOCK, then there is no uncertainty condition. As shown in Fig. 5, a minimum MIN and a maximum MAX value for the skew tS KEW are specified. If the skew tS KEW s greater than the specified minimum MIN, and less than the specified maximum MAX, then the horizontal synchronization signal H SYNC may be detected in the normal manner at the next leading edge of the burst clock signal CLOCK. Referring to Fig. 4, the skew measuring circuit 30 produces a signal representing the measured skew expressed as a fraction of a cycle. In a preferred embodiment, the skew is expressed in 16ths of a cycle. The minimum skew value MIN is specified to be 2/16ths, and the maximum skew value MAX is specified to be 14/16ths of a cycle of the burst locked clock signal CLOCK. If the skew is greater than 2/16ths, and less than 14/16ths, then the correction logic circuit 60 generates logic '0' signals on both the +1 output terminal and the -1 output terminal. In response, the memory controller 70 operates in a normal manner to count four cycles of the burst locked clock signal after the SYNC DETECTED signal, before storing the first visible sample in the frame store memory 80. Fig. 6 is a waveform diagram illustrating the operation of the correction circuit illustrated in Fig. 4 under one uncertainty condition. In Fig. 6, the skew tS KEW is less than the minimum skew MIN. This means that the horizontal synchronization signal H SYNC may not be stable through the hold time of the leading edge detector flip-flop 10. It also means that the horizontal synchronization signal H SYNC should be first detected at the falling edge of the burst locked clock signal CLOCK, and that the SYNC DETECTED signal should properly be detected at cycle 1 of the burst locked clock signal CLOCK. The upper half of Fig. 6 illustrates the condition when the SYNC DETECTED signal is generated improperly by the leading edge detector flip-flop 10 at cycle 0 of the burst locked clock signal CLOCK. Referring to Fig. 4, this disables the AND gate 40, and the EDGE signal at the output of the S-R flip flop 50 remains at a logic '0', indicating that the horizontal synchronization signal H SYNC was first detected by the leading edge detector flip-flop 10. The correction logic circuit 60 receives the skew signal from the skew measuring circuit 30, and determines that the skew tSKEW is less than the specified minimum MIN. It also receives the logic '0 * EDGE signal from the S-R flip-flop 50 indicating that the horizontal synchronization signal H SYNC was first detected by the leading edge detector flip-flop 10. This combination means that the number of burst locked clock signal cycles until the first visible sample must be incremented. In the illustrated embodiment, five clock cycles must be counted, instead of four. The correction logic circuit 60 generates a logic '1 ' signal on the +1 output terminal, and a logic '0' signal on the -1 output terminal. In response to this signal, the memory control circuit 70 counts five cycles of the burst locked clock signal CLOCK before storing the first visible sample. The lower half of Fig. 6 illustrates the condition where the SYNC DETECTED signal is generated properly by the leading edge detector flip- flop 10 at cycle 1 of the burst locked clock signal CLOCK. Referring to Fig. 4, in this case, the trailing edge detector flip-flop 20 first detects the horizontal synchronization signal H SYNC at the trailing edge of cycle 0 of the burst locked clock signal CLOCK. In response, the trailing edge detector flip-flop 20 generates a logic '1' signal at its Q output terminal. This signal passes through the AND gate 40, and conditions the S-R flip- flop to enter the set state, in which the EDGE signal becomes a logic ' 1 ' signal. The correction logic circuit 60 receives the skew signal from the skew measuring circuit 30 and determines that it is less than the specified minimum MIN. It also receives the logic '1 ' EDGE signal from the S-R flip-flop 50 indicating that the horizontal synchronization signal H SYNC was first detected by the trailing edge detector flip-flop 20. This combination means that the count of burst locked clock signal CLOCK cycles until the first visible sample need not be adjusted, and that the normal four cycles is correct. The correction logic circuit 60, thus generates logic '0' signals on both the +1 and -1 output signal. In response, the memory control circuit 70 count four cycles of the burst locked clock signal CLOCK before storing the first visible sample. In any event, when the memory control circuit 70 has received the +1 and - 1 output signals from the correction circuit 60, it generates a control signal which conditions the S-R flip-flop 50 to resume the reset condition so that it is ready to properly detect the next horizontal synchronization signal H SYNC. Fig. 7 is a waveform diagram illustrating the operation of the correction circuit illustrated in Fig. 4 under the other uncertainty condition. In Fig. 7, the skew tS KEW is greater than the maximum skew MAX. This means that the horizontal synchronization signal H SYNC may not be stable during the set-up time of the leading edge detector flip-flop 10. It also means that the horizontal synchronization signal H SYNC should be first detected at the leading edge of the burst locked clock signal CLOCK, and that the horizontal synchronization signal H SYNC should properly be detected at clock cycle 1. The upper half of Fig. 7 illustrates the condition when the SYNC DETECTED signal is generated properly by the leading edge detector flip- flop 10 at cycle 1 of the burst locked clock signal CLOCK. Referring to Fig. 4, this disables the AND gate 40, and the EDGE signal at the output of the S-R flip flop 50 remains at a logic O', indicating that the horizontal synchronization signal H SYNC was first detected by the leading edge detector flip-flop 10. The correction logic circuit 60 receives the skew signal from the skew measuring circuit 30, and determines that the skew l S KEW is greater than the specified maximum MAX. It also receives the logic '0' EDGE signal from the S-R flip-flop 50 indicating that the horizontal synchronization signal H SYNC was first detected by the leading edge detector flip-flop 10. This combination means that the count of burst locked clock signal CLOCK cycles until the first visible sample need not be adjusted, and the normal four cycles is correct. The correction logic circuit 60, thus generates logic O' signals on both the +1 and -1 output terminals. In response, the memory control circuit 70 counts four cycles of the burst locked clock signal CLOCK before storing the first visible sample. The lower half of Fig. 7 illustrates the condition where the SYNC DETECTED signal is generated improperly by the leading edge detector flip-flop 10 at cycle 2 of the burst locked clock signal CLOCK. Referring to Fig. 4, in this case, the trailing edge detector flip-flop 20 first detects the horizontal synchronization signal H SYNC at the trailing edge of cycle 1 of the burst locked clock signal CLOCK. This signal passes through the AND gate 40, and conditions the S-R flip-flop 50 to enter the set state, in which the EDGE signal becomes a logic T signal. The correction logic circuit 60 receives the skew signal from the skew measuring circuit 30 and determines that it is greater than the specified maximum MAX. It also receives the logic '1' EDGE signal from the S-R flip-flop 50 indicating that the horizontal synchronization signal H SYNC was first detected by the trailing edge detector flip-flop 20. This combination means that the count of burst locked clock signal CLOCK cycles until the first visible sample must be decremented. In the illustrated embodiment, three clock cycles must be counted, instead of four. The correction logic circuit 60 generates a logic ' 1' signal on the -1 output terminal, and a logic '0' signal on the +1 output terminal. In response to this signal, the memory control circuit 70 counts three cycles of the burst locked clock signal CLOCK before storing the first visible sample. Fig. 8 is a more detailed block diagram of a preferred embodiment of the correction circuit illustrated in Fig. 4. In Fig. 8, the horizontal synchronization signal source (not shown) is coupled to an input terminal 5'. The burst locked clock signal source (also not shown) produces both a burst locked clock signal CLOCK and an inverted burst locked clock signal, indicated by the designation CLOCK with a line above it. The burst locked clock signal is coupled an input terminal 15', and the inverted clock signal is coupled to an input terminal 25'. Input terminal 5' is coupled to a D input terminal of a first D flip-flop 110. A Q output terminal of the first D flip-flop 110 is coupled to a D input terminal of a second D flip-flop 1 12. A Q output terminal of the second D flip-flop 112 is coupled to a D input terminal of a third D flip-flop 114, to a first input terminal of a first AND gate 116, and to an input terminal of a first inverter 118. A Q output terminal of the third D flip-flop 114 is coupled an input terminal of a second inverter 120, and an output terminal of the second inverter 120 is coupled to a second input terminal of the first AND gate 116. The input terminal 5' is also coupled to a D input terminal of a fourth D flip-flop 122. A Q output terminal of the fourth D flip-flop 122 is coupled to a D input terminal of a fifth D flip-flop 124, and a Q output terminal of the fifth D flip-flop 124 is coupled to a first input terminal of a second AND gate 126. An output terminal of the first inverter 118 is coupled to a second input terminal of the second AND gate 126. An output terminal of the first AND gate 116 produces a SYNC DETECTED' signal, and is coupled to a reset input terminal R of an S-R flip-flop 128. An output terminal of the second AND gate 126 is coupled to a set input terminal S of the S-R flip-flop 128. A Q output terminal of the S-R flip- flop 128 is coupled to a D input terminal of a sixth D flip-flop 130, and a Q output terminal of the sixth D flip-flop 130 is coupled to a D input terminal of a seventh D flip-flop 132. A Q output terminal of the seventh D flip-flop 132 produces an EDGE' signal. The output terminal of the first AND gate 1 16 is also coupled to enable input terminals of the sixth and seventh D flip-flops 130 and 132, respectively. The SYNC DETECTED' and EDGE' signals are coupled to the other components illustrated in Fig. 4 as 5 being coupled to the SYNC DETECTED and EDGE signals respectively Input terminal 15' is coupled to respective clock input terminals of the first D flip-flop 1 10, the second D flip-flop 1 12, the third D flip-flop 114, the S-R flip-flop 128, the sixth D flip-flop 130 and the seventh D flip-flop 132. Input terminal 25' is coupled to respective clock input 1 0 terminals of the fourth D flip-flop 122 and the fifth D flip-flop 124. In operation, the first D flip-flop 110 is subject to the uncertainty condition described above. The combination of the first and second D flip-flops, 110 and 112 respectively, eliminates jitter conditions and performs the function of the first D flip-flop 10 in Fig. 4. That is, the 1 5 combination of the first and second D flip-flops, 110 and 112 produce a signal corresponding to the SYNC DETECTED signal in Figs. 1, 2, 3, 5, 6 and 7. In the illustrated embodiment, the SYNC DETECTED' signal is preferably a single burst locked clock signal CLOCK cycle in duration. The combination of the third D flip-flop 114, second inverter 120 and first AND gate 2 0 116 operate to generate a SYNC DETECTED' pulse, which is a single burst locked clock signal CLOCK cycle in duration, in a known manner. This SYNC DETECTED' pulse is supplied to the reset input terminal R of the S-R flip-flop 128 in Fig. 8. In a similar manner, the combination of the fourth and fifth D flip- 2 5 flops 122 and 124 eliminates jitter conditions, and performs the function of the second D flip-flop 20 in Fig. 4. That is, the combination of the fourth and fifth D flip-flops 122 and 124 detects the horizontal synchronization signal H SYNC at the trailing edge of the burst locked clock signal CLOCK, by using the inverted clock signal from input terminal 3 0 25' for their clock input signals. The combination of the first inverter 118 and second AND gate 126 performs the function of the AND gate 40 in Fig. 4, and the S-R flip-flop 128 performs the same function as the S-R flip- flop 50 in Fig. 4. The sixth and seventh D flip-flops 130 and 132 operate to synchronize the EDGE' signal to the burst locked clock signal CLOCK and to delay the signal. The SYNC DETECTED' and EDGE' signals control the correction logic circuit 60, and memory controlling circuit 70 of Fig. 4, as described above.

Claims: CLAIMS A delay correction circuit, comprising: a source (15) of a clock signal; a source (5) of a timing signal asynchronous with the clock signal; a timing signal detector ( 10), responsive to the clock signal and the timing signal, and properly operative only when the timing signal is stable for a predetermined time period around the clock signal; a control circuit (70) for conditioning utilization circuitry(80) to operate after a delay time after the timing signal is detected; and an adjusting circuit ( 10,20,30,40,50,60) for conditioning the control circuit to adjust the delay time if the timing signal was not stable within the predetermined time period. 2. The circuit of claim 1 wherein: the clock signal source ( 15) produces the clock signal having successive cycles, each cycle having a leading edge and a trailing edge; the timing signal source (5) produces the timing signal having a leading edge; and the adjusting circuit ( 10,20,30,40,50,60) comprises: circuitry (30) for measuring the skew between the leading edge of the timing circuit, and the leading edge of an adjacent clock signal cycle; circuitry (10) for detecting the timing signal at a leading edge of the clock signal; circuitry (20) for detecting the timing signal at a trailing edge of the clock signal; and circuitry (40,50,60) to condition the control circuit (70) to increase the delay time when the skew is less than a predetermined minimum and the timing signal was detected at the leading edge of the clock signal, and decrease the delay time when the skew is greater than a predetermined maximum and the timing signal was detected at the trailing edge of the clock signal. 3. The circuit of claim 2 wherein the control circuit (70) is responsive to the clock signal, and conditions the utilization circuit (80) to operate after a selected number of clock signal cycles after the timing signal is detected. 4. The circuit of claim 3 wherein the conditioning circuitry (40,50,60) in the adjusting circuit ( 10,20,30,40,50,60) conditions the control circuit (70) to increment the selected number of clock cycles when the skew is less than a predetermined minimum and the timing signal was detected at the leading edge of the clock signal, and decrement the selected number of clock cycles when the skew is greater than a predetermined maximum and the timing signal was detected at the trailing edge of the clock signal. 5. The circuit of claim 2 wherein the skew measuring circuitry (30) produces a signal representing the skew in terms of a fraction of a clock signal cycle. 6. The circuit of claim 5 wherein: the circuitry (10) for detecting the timing signal at a leading edge of the clock signal comprises a leading edge flip-flop having an input terminal coupled to the timing signal source (5), and a clock signal input terminal coupled to the clock signal source (15); the circuitry (20) for detecting the timing signal at a trailing edge of the clock signal comprises a trailing edge flip-flop having an input terminal coupled to the timing signal source (5), and an inverting clock signal input terminal coupled to the clock signal source (15); and the conditioning circuitry (40,50,60) in the adjusting circuit ( 10,20,30,40,50,60) comprises a circuit (60), responsive to the leading edge flip-flop (10), the trailing edge flip-flop (20), and the skew measuring circuitry (30), for conditioning the control circuit (70) to increase the delay time when the skew is less than a predetermined minimum and the leading edge flip-flop (10) detected the timing signal, and decrease the delay time when the skew is greater than a predetermined maximum and the trailing edge flip-flop (20) detected the timing signal. 7. The circuit of claim 2 wherein the circuitry (10) for detecting the timing signal at a leading edge of the clock signal comprises a flip-flop having an input terminal coupled to the timing signal source (5), and a clock signal input terminal coupled to the clock signal source ( 15). 8. The circuit of claim 2 wherein the circuitry (20) for detecting the timing signal at a trailing edge of the clock signal comprises a flip-flop having an input terminal coupled to the timing signal source (5), and an inverting clock signal input terminal coupled to the clock signal source (15). 9. The circuit of claim 1 wherein: the clock signal source (15) produces the clock signal having successive cycles; and the control circuit (70) is responsive to the clock signal, and conditions the utilization circuit (80) to operate after a selected number of clock signal cycles after the timing signal is detected. 10. The circuit of claim 1 wherein the timing signal detector (10) comprises a flip-flop having an input terminal coupled to the timing signal source (5), a clock input terminal coupled to the clock signal source (15), and an output terminal producing a signal when the timing signal is detected. 1 1. A delay correction circuit, comprising: a source (5) of a composite video signal including a horizontal synchronization signal component; a source (15) of a burst locked clock, synchronized to the composite video signal, and having successive cycles, each cycle having a leading edge and a trailing edge; a circuit (10) for detecting the horizontal synchronization signal at a leading edge of the burst locked clock signal; a circuit (20) for detecting the horizontal synchronization signal at a trailing edge of the burst locked clock signal; a circuit (30) for measuring the skew between the horizontal synchronization signal and the leading edge of an adjacent cycle of the burst locked clock; a correction logic circuit (60), for generating an increment signal when the skew is less than a predetermined minimum and the horizontal synchronization signal is detected at a leading edge of the burst locked clock signal, and for generating a decrement signal when the skew is greater than a predetermined maximum and the horizontal synchronization signal is detected at a trailing edge of the burst locked clock signal; and a memory control circuit (70), for delaying: one more than a predetermined number of cycles of the burst locked clock signal in response to the increment signal; one less than the predetermined number of cycles of the burst locked clock signal in response to the decrement signal; and the predetermined number of clock cycles otherwise, then storing successive samples representing the composite video signal in a frame store (80).

Inventors: KRANAWETTER GREG ALAN, KRANAWETTER, GREG, ALAN
Applicants: THOMSON CONSUMER ELECTRONICS, THOMSON CONSUMER ELECTRONICS, INC.
Application year: 1997
Main classification: H04N5
IPC codes: H04L7, H04N5