GHOST CANCELLATION REFERENCE SIGNAL DETECTION AND SYNCHRONIZATION

Abstract: A circuit for detecting and synchronizing a ghost cancellation reference (GCR) signal in a television video signal, includes a circuit for receiving at least one field of an input video signal, a circuit for finding a maximum correlation peak value in a field of said input video signal, a circuit for scaling the maximum correlation peak value to a lower predetermined value for detection for forming a scaled peak value, a circuit for synchronizing a next field of the video signal using the scaled peak value, and a circuit for predicting a future position of the GCR signal.

Description: Ghost cancellation reference signal detection and synchronization. The subject invention relates to a method of and a circuit for detecting and synchronizing a ghost cancellation reference signal contained in a television signal. U.S. Patents 5,047,859 and 5,121,211 both to Koo disclose a signal which, when transmitted with a standard television signal, enables a corresponding circuit to correct said signal thereby eliminating "ghost", i.e., errors in the signal arising from, for example, reflections from buildings, terrain, etc. For a ghost canceler to be effective, the ghost cancellation reference (GCR) signal must be detected and stored digitally to be processed. The methods for the detection of this signal involve a determination of a particular line of the video signal from analog or digital video synchronization signal processors and then comparing this detected signal to a stored reference GCR signal. These processors are designed to accommodate standard NTSC signals or standard video signals with low S/N characteristics, but not ghosted signals. Ghosting causes the video synchronization levels to change dynamically line-to-line. Simple level-slicing methods are insufficient under ghosted signal conditions. This means that the horizontal synchronization pulses cannot be reliably counted with respect to the vertical interval, thereby introducing errors in determining the location of the GCR signal to be detected. Other methods involving sync, prediction use either differentiation or integration, or a combmation of both, as feedback to the prediction algorithm. This means that the sync, processor can be stabilized, but the statistical error over a few lines can allow the predictor to be off by one or more lines resulting in an erroneous detection of the GCR signal. It is an object of the present invention to provide a method of and a circuit for reliably detecting and synchronizing to the GCR signal. In accordance with a first aspect of the invention, this object is achieved in a circuit for detecting and synchronizing a ghost cancellation reference (GCR) signal in a television video signal, comprising means for receiving at least one field of an input video signal; means for finding a maximum correlation peak value in a field of said input video signal; means for scaling said maximum correlation peak value to a lower predetermined value for detection for forming a scaled peak value; means for synchronizing a next field of said video signal using said scaled peak value; and means for predicting a future position of the GCR signal. A second aspect of the invention provides a method as defined in claim 6. Advantageous embodiments are defmed in the dependent claims. The Koo GCR signal itself is a very high energy signal. If it is correlated with the stored reference GCR signal, the correlation peak is very definitive. The correlation is immune to low S/N ratios, dc-offsets generated by ghosting, and other video corruptions, such as VCR play-backs. The subject invention uses the ghost canceling filter as a match filter during predicted GCR signal times. With the above and additional objects and advantages in mind as will hereinafter appear, the invention will be described with reference to the accompanying drawings, in which: Fig. 1 shows a block diagram of the GCR detection and synchronization circuit of the subject invention; Fig. 2 shows a block diagram of me GCR synchronization circuit portion of the circuit of Fig. 1; Fig. 3 shows a flowchart diagraming the operation of the circuit of Fig. 2; Fig. 4 shows a flowchart diagraming a windowing operation when the PDFA is used as a real-time cross correlator; Fig. 5 shows a flowchart diagraming the windowing operation when the multiply/accumulate based correlator is used to calculate the cross correlation; Fig. 6 shows a block diagram of the multiply/accumulate based correlator; Fig. 7 shows a flowchart diagraming the capturing of the zero padded GCR signal; and Fig. 8 shows a flowchart diagraming the correlation of WinSize point of cross correlation. Fig. 1 shows a block diagram of the GCR detection and synchronization circuit of the subject invention. A received video signal containing the GCR signal is digitized in an analog-to-digital (A/D) converter 1. An output of the A/D converter 1 is applied directly to a first input of a bypass multiplexer 2, the ouφut from which is applied to a digital-to-analog (D/A) converter 3, the output therefrom forming the ouφut of the circuit. The output of the A/D converter 1 is also applied, through a programmable digital filter array (PDFA) 4, to a second input of the bypass multiplexer 2, to a memory 5, and to a multiply/accumulate based (MACB) correlator 6. An ouφut from the MACB correlator 6 and the ouφut from the PDFA 4 are applied to die first and second inputs, respectively, of a multiplexer 7, an ouφut of which, comprising a correlation signal, is applied to a GCR synchronization circuit 8. The GCR synchronization circuit 8, in turn, supplies a correlation selection signal for switching the multiplexer 7. The circuit also includes a filter configuration control and adaption algoridim circuit 9 for controlling the PDFA 4 and die bypass multiplexer 2. The circuit 9 is connected to receive and write information from/to the memory 5, and receives a correlation mode signal, a GCR window signal, a GCR present signal, and an initialization signal from the GCR synchronization circuit 8. The GCR window signal is also applied to a control input of the MACB correlator 6. The circuit shown in Fig. 1 is a general architecture for a ghost cancellation system. The major circuit functionality consists of three primary modes of operation: 1. GCR Averaging 2. Channel Adaptation 3. Filter Coefficient Update During averaging mode, the GCR signal must be accurately located, otherwise, erroneous averaging will occur. The GCR synchronization circuit 8 along with the MACB correlator 6 comprise the inventive approach to locating the GCR signal line accurately. Channel Adaptation and Filter Coefficient Update can be handled purely in software, and the GCR synchronization circuit 8 does not have a direct impact on these circuit functions. The filter configuration control and adaptation algoridim circuit 9 may be implemented widi any general purpose microprocessor (μP). The PDFA 4 must have approximately 500 taps, be user configurable as a single N-tap FIR filter, with user programmable coefficients. Three Philips GB-180 filter chips may be used for the PDFA 4. At power on, the GCR synchronization circuit 8 signals the μPg to initialize, which resets the PDFA 4 and places the bypass multiplexer 2 in "BYPASS" mode. After initialization, the GCR synchronization circuit 8 signals die Pg to configure the PDFA 4 in die correlation mode and to load e filter coefficients with the time-reversed GCR signal by activating the CorrMode signal line, which, in effect, turns Uie PDFA 4 into a real¬ time GCR cross correlator. When a correlation peak is detected by the GCR synchronization circuit 8, the peak value is scaled and stored. The GCR synchronization circuit 8 then measures and stores me time (ΔT) between correlation peaks. The stored ΔT is used to generate a "window" (GCR-Window), which is active for die lengdi of the GCR signal. If a correlation peak is not detected, dien the assumption made is that no GCR signal is present. Since de-ghosting is not possible without a received GCR signal, the circuit continuously searches for a correlation peak while the video is bypassed. Once the correlation peak and ΔT values are determined, two modes of operation are possible. The first operating mode is to use the PDFA 4 as a real-time cross correlator during me active GCR-Window and a ghost cancellation filter for die inactive GCR-Window. This requires that the video signal be bypassed during the GCR-Window period. The second operating mode is to use the MACB correlator 6 to calculate the cross correlation between the stored GCR signal and die captured GCR signal off-line. By calculating "WinSize" points of the cross correlation, the GCR signal can be captured during die active GCR-Window period, and all relevant points of the cross correlation can be calculated by die MAC based correlator 6 before the next active GCR-Window period. In bom cases, if a correlation peak is not detected, die INIT signal is activated and die circuit initializes from the same point as at power-up. If a correlation peak is detected, dien the GCR-Present signal is asserted, which signals the μPg to use the last captured GCR signal in the next averaging iteration. The advantage of using the MACB correlator 6 to perform the Windowed GCR synchronization function is that no video signal is bypassed. Fig. 2 shows a block diagram of me GCR synchronization circuit 8 of the circuit of Fig. 1. The correlation signal, received at input 10, is applied to a first input 14 of a first multiplexer 12. The correlation signal is also applied, dirough a delay circuit 20, to a first input 24 of a second multiplexer 22. A threshold generator 32 applies a minimum threshold signal to a second input 16 of the first multiplexer 12 and a second input 26 of die second multiplexer 22. An ouφut 18 of the first multiplexer 12 is applied to a first input 36 of a first magnitude comparator 34. An ouφut 30 of u e second multiplexer 22 is applied to a D input of a peak register 42 having a Q ouφut 44 connected to a second input 38 of the first magnitude comparator 34. The ouφut 44 of the peak register 42 is also applied to a first input 48 of an first adder circuit 46, and, via a divide-by-2 divider 54, to a second input 50 of die first adder 46. An ouφut 52 from the first adder 46 is applied to a diird input 28 of the second multiplexer 22. An ouφut 40 from the first magnitude comparator 34 is applied to a direshold-GT signal input of a state machine 54. The state machine 54 determines the presence of the GCR signal and generates a GCR-Present signal, a GCR-Window signal, an initialization signal (INIT), and a correlation mode (CorrMode) signal. In addition, die state machine 54 generates an up/down count (Count-UD) signal, a Count-CE count enable signal, and a count-LE latch enable signal. These signals are applied to an up/down switching input of a counter 56, and to a CE input and LE input thereof, respectively. A search value generator 58 applies a search value signal to a first input 62 of a third multiplexer 60 which receives a zero signal on its second input 64 from a zero signal generator 70. An ouφut 68 of the third multiplexer 60 is applied to a count value (LOAD-VAL) input of the counter 56. A count value ouφut of the counter 56 is applied to a first input 74 of a second magnitude comparator 72, a first input 82 of a third magnitude comparator 80, a count value input of the state machine 54, and a first input 90 of a second adder 88, a second input 92 of the second adder 88 receiving the ouφut from a GCR-End signal generator 96, and an ouφut 94 from die second adder 88 being applied to a D input of a delta T register 98. A delta T register latch enable signal LE is generated by the state machine 54 and is applied to die LE input of the delta T register 98. A Q ouφut from the delta T register 98 is applied to the second input 76 of the second magnitude comparator 72 and to die first input 102 of a subtractor 100. A second input 104 of the subtractor 100 receives the ouφut from a GCR-Len signal generator 108, and an ouφut 106 from me subtractor 100 is applied to the second input 84 of the third magnitude comparator 80. An ouφut 78 of the second magnitude comparator 72 and an ouφut 86 of die mird magnitude comparator 80 are connected, respectively, to first and second inputs of an AND-gate 108, an ouφut thereof being connected to a window signal input of the state machine 54. The state machine 54 further generates a threshold comparison selection signal for switching the first multiplexer 12, a threshold register selection signal for switching the second multiplexer 22, a threshold register LE latch enable signal for the peak register 42, and a load value selection signal for switching the third multiplexer 60. Fig. 3 shows a flowchart of the operation of die GCR synchronization circuit 8, and, in particular, the state machine 54. After starting in block 200, initialization is instituted in block 202 in which the count value in the counter 56 is set to the search value, the peak register 42 is set to the threshold minimum and die correlation mode signal is set to be active. In block 204, a decision is made as to whether the correlation input signal is greater than the value in the peak register 42. If so, the current correlation input signal value is inputted into the peak register 42 in block 206 and die count value in me counter 56 is decremented in block 208. If not, the program proceeds direcdy to block 208 in which the count value in the counter 56 is decremented. Next, in block 210, it is determined whemer the count value in the counter 56 is equal to zero. If not, die program reverts back to block 204 where the current correlation input signal is compared to the value in the peak register 42. If so, in block 212, the value in me peak register 42 is compared widi me mreshold minimum generated by die threshold generator 32. If diis value is not equal to the direshold minimum, the program reverts to the initialization block 202. If so, in block 214, the peak register 42 is set equal to 3/4 of its previous value via the divider 54 and die first adder 46. The program then proceeds to block 216 in which the correlation input value is compared to die current value in the peak register 42. If the correlation input signal value is less than or equal to die current value in the peak register 42, in block 218, the count value in the counter 56 is incremented and, in block 220, it is determined whemer the current count value in the counter 56 is equal to a predetermined maximum value. If so, the program reverts to block 202, while if not, the program reverts to block 216. If, in block 216, the correlation input signal value is greater than the current value in the peak register 42, the count value in the counter 56 is set equal to zero in block 222, and in block 224, it is determined if die current count value is greater than a predetermined delay. If not, in block 226, the count value in counter 56 is incremented and die program reverts to block 224. If so, in block 228, the correlation input signal is compared to me current value in the peak register 42. If the current value of the correlation input signal is less than or equal to die current value in die peak register 42, the count value in the counter 56 is incremented in block 230 and dien die current count value in the counter 56 is compared to die predetermined maximum value in block 232. If the current count value in the counter 56 is less than the predetermined maximum value, the program reverts to block 228. If the current count value in die counter 56 is equal to the predetermined maximum value, the program reverts to block 202. If in block 228, the current value of the correlation input signal is greater than die current value in the peak register 42, in block 234, the delta T register 72 is set equal to the count value in the counter 56 plus the GCR-End signal. Then, in block 236, the GCR synchronization signal is windowed. The program then reverts to die initialization block 202. The procedure for the windowing of the GCR sync, using me PDFA 4 is shown in the flowchart of Fig. 4. After starting in block 300, the correlation mode signal is set to be inactive and the counter 56 is set to zero in block 302. Next, in block 304, it is determined whedier there is a rising edge in the GCR-Window signal. If not, the count value in the counter 56 is incremented in block 306 and die program reverts to block 304. If so, the correlation mode signal is set to be active in block 308, and then, in block 310, a decision is made as to whether the Threshold-GT signal is active. If so, in block 312, a signal is generated indicating mat the GCR is present and dien in block 314, it is determined whedier there is a falling edge in the GCR-Window signal. If not, in block 316, die count value in the counter 56 is incremented and die program reverts to block 314. If so, the program reverts to the block 302. If, in block 310, it is determined diat die Threshold-GT signal is not active, the count value in the counter 56 is incremented in block 318 and in block 320, it is determined whedier a falling edge is in the GCR-Window signal. If not, die program reverts to block 310. If so, in block 322, an initialization signal is generated and die program is exited at block 324. The procedure for the windowing of die GCR sync, using the MACB correlator 6 is shown in Fig. 5. After starting in block 400, in block 402, the count value in the counter 56 is set to zero. Then in block 404, it is determined whe er there is a rising edge in the GCR-Window signal. If not, the count value in the counter 56 is incremented in block 406 and dien die program reverts to block 404. If so, in block 408, it is determined whedier mere is a falling edge in the GCR-Window signal. If not, the count value in the counter 56 is incremented in block 410 and die program goes back to block 406. If so, in block 412, the count value in counter 56 is set to zero and, in block 414, it is determined whedier die Threshold-GT signal is active. If so, dien in block 416, a signal is generated indicating that the GCR is present and dien the program reverts to block 406. If not, it is determined whe er mere is a rising edge in the GCR-Window signal in block 418. If not, in block 420, the count value in the counter 56 is incremented and die program reverts to block 414. If so, in block 422, an initialization signal is generated and die program is exited at block 424. Fig. 6 shows a block diagram of the MACB correlator 6. The GCR- Window signal is applied to a state machine 600 which selectively applies an n-CE signal and an n-RST signal, and an m-CE signal and an m-RST signal to respective inputs of an n index counter 602 and an m index counter 604. The count ouφut from the n index counter 602 is applied to a Comp Val input of a range comparator 606 which receives the signal WinSize/2 from a generator 608 at a RangeLow input. The count ouφut from the n index counter 602 and die WinSize/2 signal from generator 608 are also applied to respective inputs of a calculation processor 610. The count ouφut from the m index counter 604 is applied to a m- count input of the calculation processor 610, and to a first input of an equality comparator 612. A second input of me equality comparator 612 receives the WinSize signal from a generator 614 and applies its ouφut to an m-done input of the state machine 600. The calculation processor 610 performs me following calculations: ml = GCR-Len - jm-count - WinSize/2 | ; and m2 = n-count + m-count - WinSize/2. A first ouφut from the calculation processor 610, carrying the signal ml, is applied to a RangeHigh input of the range comparator 606 which applies an InRange signal at its ouφut to an InRange input of the state machine 600. A multiplexer 616 receives the ouφut from the A/D converter 1 at a first input and a zero signal at a second input. The state machine 600 applies a RAMDataSel signal to a switching input of the multiplexer 616. An ouφut from die multiplexer 616 is applied to a data input of a GCR capture RAM 618, which receives, at its address input, die ouφut signal from die n index counter 602. An R/W (read or write) signal is applied by die state machine to an R W input of the RAM 618, while an ouφut from the RAM 618 is applied to an A input of an accumulation processor 620. A second ouφut from the calculation processor 610, carrying the signal m2, is applied to die address input of a GCR-ROM 622 which applies its DataOut signal to a B input of the accumulation processor 620. The state machine applies an ACC-EN signal and an ACC-RST signal to die accumulation processor 620. The accumulation processor 620 determines the calculation MACC = MACC + A*B, which is applied to its ouφut as the correlation ouφut. Fig. 7 shows die procedure for capturing titie zero padded GCR. After POWER ON in block 700, the n-RST signal, the m-RST signal and the ACC-RST signal are made active in block 702. Then, in block 704, it is determined whe er there is a rising edge in me GCR-Window signal. If not, the program reverts to block 704. If so, in block 706, the n-CE signal and die RAM-WE signal are made active. Next, in block 708, it is determined whether the n-count is in range. If not, die zero pad value is stored in the GCR-RAM in block 710, while if so, the GCR values are stored in the GCR-RAM in block 712. In either case, the program then proceeds to block 714 where it is determined whedier die GCR- Window signal is active. If so, the program reverts to block 706, while in the alternative, in block 716, the n-RST signal is made active and die RAM-WE signal is made inactive. The program then proceeds to die correlation process in block 718 and then reverts to block 702. Fig. 8 shows the procedure for correlation of WinSize points of cross correlation. After starting at block 800, the n-CE signal is made active in block 802. In block 804, it is determined whedier die n-count is in range. If not, die program reverts to block 802. If so, the ACC-EN signal is made active in block 806. In block 808, it is determined whedier titie n-count is in range. If so, the program reverts to block 806. If not, in block 810, it is determined whedier me m-done signal is active, if not, in block 812, the ACC-RST signal, the m-CE signal and die n-RST signal are made active and die program reverts to block 802. If so, the program exits at block 814. Numerous alterations and modifications of die structure herein disclosed will present themselves to those skilled in the art. However, it is to be understood diat die above described embodiment is for purposes of illustration only and not to be construed as a limitation of the invention. All such modifications which do not depart from die spirit of die invention are intended to be included within the scope of the appended claims. The invention can be implemented by means of (dedicated) hardware and/or by means of a computer loaded wim suitable software.

Claims: Claims: 1. A circuit for detecting and synchronizing a ghost cancellation reference (GCR) signal in a television video signal, comprising: means for receiving at least one field of an input video signal; means for finding a maximum correlation peak value in a field of said input video signal; means for scaling said maximum correlation peak value to a lower predetermined value for detection for forming a scaled peak value; means for synchronizing a next field of said video signal using said scaled peak value; and means for predicting a future position of the GCR signal. 2. The circuit as claimed in claim 1, characterized in that said circuit further comprises means for opening a window to test for a next correlation peak in a subsequent field of die video signal. 3. The circuit as claimed in claim 1, characterized in that said means for predicting a future position of the GCR comprises a video de-ghosting filter. 4. The circuit as claimed in claim 3, characterized in that said video de- ghosting filter is shared widi circuits for performing de-ghosting of the video signal. 5. The circuit as claimed in claim 2, characterized in that said video de- ghosting filter comprises a separate GCR match filter. 6. A method of detecting and synchronizing a ghost cancellation reference (GCR) signal in a television video signal, comprising the steps of: receiving at least one field of an input video signal; finding a maximum correlation peak value in a field of said input video signal; scaling said maximum correlation peak value to a lower predetermined value for detection for forming a scaled value; synchronizing a next field of said video signal using said scaled peak value; and predicting a future position of the GCR signal.

Inventors: HILL RAE L, SPEARMAN CHRIS L, HILL, RAE, L., SPEARMAN, CHRIS, L.
Applicants: PHILIPS ELECTRONICS NV, PHILIPS NORDEN AB, PHILIPS ELECTRONICS N.V.
Application year: 1996
Main classification: H04N5
IPC codes: H04N5