A phase detector

Abstract: A horizontal phase detector of a television apparatus receives an analog composite video signal (130) that is sampled and digitized at a rate determined in accordance with a clock signal (CK). The leading edge of a simulated sync pulse signal is computed from the digitized signal using interpolation. The phase detector also receives a second signal (OSC) that is indicative of a transition edge of a horizontal oscillator signal. The timing of the transition edge is contained in first (MS) and second (SK) signal parts. The first part (MS) is a periodic signal having a transition edge coincident with that of the clock signal (CK), and the second part (SK) is a skew signal that represents a fraction of the period of the clock signal (CK). The leading edge of the computed sync pulse signal is phase-compared with the oscillator transition edge to generate a phase difference signal (PH) for synchronizing horizontal oscillator operation.

Description: The invention relates to a phase detector that may be used in a phase-lock-loop circuit of, for example, a digital television apparatus. In a digital television receiver, for example, it may be desirable to generate the deflection current using a phase-lock-loop circuit (PLL). A periodic output signal of the PLL that is used for driving, for example, a horizontal output stage is synchronized to an incoming synchronizing signal such as the horizontal sync pulses of a baseband television signal. Unlike in an analog PLL circuit that utilizes a voltage controlled oscillator (VCO) having a controllable frequency, it may be desirable to operate the PLL circuit of the digital television synchronously with a common system clock having, for example, a constant frequency. The periodic output signal, generated by the digital PLL circuit, may include two parts: a first signal part that changes states or has a transition edge coincidental width the system clock and a second signal part that is indicative of a fraction of the clock period and that may be updated once in each cycle of the periodic signal. A timing edge of the periodic output signal may be defined to occur at an instant corresponding to the fraction of the clock period that follows the transition edge of the first signal part. The fraction of the clock period is determined in accordance with the second signal part. The information contained in the second signal part may be referred to as skew information. An example of a PLL that generates signals such as the first and second signal parts is described in U.S. Patent No. 4,639,780 in the name of D.H. Willis, entitled TELEVISION SYNCHRONIZING APPARATUS (the Willis patent). In such digital phase-lock-loop circuit, the incoming synchronizing signals, such as, for example, the horizontal sync pulses of a baseband television signal, is sampled at the system clock rate and then digitized in an analog-to-digital converter. The resulting digitized synchronizing signal and the periodic output signal of the PLL are coupled to corresponding input ports of a phase detector of the digital PLL that generates a feedback, phase difference signal from the two signals. For obtaining the phase difference signal, some prior art digital phase detectors utilize information obtained in each sampling period of the system clock throughout the duration of the sync pulse. Disadvantageously, a noise signal accompanying the sync pulse may affect, in such prior art detector, the phase difference signal any time throughout the sync pulse when such noise appears at the sampling instants. It is herein recognized as desirable to reduce the effect of such noise signal by utilizing only samples that occur in the proximity of a transition edge within the sync pulse. In this way, a noise signal that occurs at other sampling instants of the sync pulse, advantageously, will not substantially affect the phase difference signal. Furthermore, it may be desirable to generate a correct phase difference signal even when the width of the given sync pulse or the period of the given sync pulse is not equal to an integer multiple of the sampling clock period. In accordance with one aspect of the invention, there is provided a digital phase detector responsive to first and second input signals for generating a phase difference signal that is indicative of a phase difference therebetween, comprising: a source of a periodic clock signal; sampling means responsive to said first input signal and to said clock signal for sampling said first input signal to generate a sampled signal that contains first and second sampled values of said first input signal, each of said first and second sampled values being representative of said first input signal at corresponding first and second instants that occur synchronously with respect to said clock signal; characterized by computing means being responsive to said sampled signal for computing, by interpolation of said first and second sampled values, a third value that is representative of said first input signal at a third instant when a transition edge in said first input signal is estimated to occur, said computing means further being responsive to said second input signal for computing a difference between said third instant and a corresponding instant when a corresponding transition edge in said second input signal occurs to generate said phase difference signal in accordance with said difference. In accordance with another aspect of the invention, there is provided a digital phase detector responsive to a first input signal having a pulse that includes first and second transition edges that change in opposite manner such that both said first and second transition edges define said pulse, and responsive to a second input signal for generating a phase difference signal that is indicative of a phase difference between said first and second input signals, comprising: a source of a periodic clock signal; sampling means responsive to said first input signal and to said clock signal for generating a sampled signal that contains a plurality of sample portions that are representative of corresponding levels in said first input signal; characterized by second means responsive to said sampled signal for selecting, from said plurality of sample portions, a first sample portion that is indicative of a first instant when said first transition edge occurs such that, in selecting said first sample portion, said second means excludes each sample portion of said plurality of sample portions that corresponds to any portion of said pulse that is not associated with said first transition edge, said second means being responsive to said second input signal for generating said phase difference in accordance with said second input signal and in accordance with said first sample portion to the exclusion of the remaining ones of said plurality of sample portions. In the Drawing: FIGURE 1 illustrates a phase detector embodying the invention; and FIGURES 2a-2g illustrate waveforms useful in explaining the operation of the phase detector of FIGURE 1. FIGURE 1 illustrates a block diagram of a horizontal deflection circuit including a phase-lock-loop circuit (PLL) 20. It includes a sequential counter 21 that has the analogous function of a VCO of a conventional phase-lock-loop circuit. Counter 21 is a programmable counter that is incremented after each leading edge of a clock CK having a period t CK , illustrated in the timing diagram of FIGURE 2a. It counts up, from an initial value of, for example, 1 until it is reset to the initial value by a reset pulse RESET at an input terminal 21a of FIGURE 1. Pulse RESET controls the number of clock CK periods t CK that are included in a corresponding period, or sequence, N, of counter 21. A signal CT, at an output port 21b of counter 21, supplies, in a given sequence N, the current count of counter 21 that occurs coincidentally with clock CK. A skew signal SK, generated by a skew generator 201, as described later on, defines a fraction f of period t CK of clock CK. Signal CT together with signal SK define a corresponding timing, or transition edge in each sequence N that occurs, for example, once in each horizontal period H. The timing edge is shifted in time, by an amount that is determined in accordance with fraction f, relative to clock CK, and also relative to signal CT that occurs coincidentally with clock CK. Signal CT is also coupled to a decoder 23 that generates a signal MS having the period H that occurs coincidentally with clock CK. A pulse generator 54 generates, in accordance with signals SK and CT, a signal HORDRIVE, for example, once in each period H. Signal HORDRIVE provides the switching signal to a horizontal output stage 41 that operates at a frequency H that corresponds with that of signal HORDRIVE. PLL 20 includes a phase detector 202, embodying an aspect of the invention. Phase detector 202 receives a signal 130. Signal 130 may be, for example, an analog, baseband, television signal that includes a signal portion that is referred to as synchronizing signal SYNC, occurring at the horizontal frequency f H in each period H. Phase detector 202 also receives signals MS and SK that, together, define a timing or transition edge OSC of a periodic signal. Edge OSC is to be phase-compared in detector 202 with signal SYNC having a leading edge SY LE . Phase detector 202 generates a phase difference signal PH (from microcomputer 140) in accordance with a difference between the instants when edges OSC and SY LE occur, respectively. Signal PH, that is analogous to an output signal of a phase detector of a conventional PLL, is used in PLL 20 for varying the phase of edge OSC to synchronize timing edge OSC to signal SYNC. Signal PH is coupled via a low-pass-filter 33 that determines the response time of PLL 20. A filtered signal LPFO of filter 33 is coupled to an input terminal of a skew generator 201 that generates skew signals SK, that was mentioned before, and a signal PERIOD representative of the actual horizontal period H between sync pulses in integer number periods of clock CK. Signal PERIOD that is therefore also indicative of the period of sequence N is coupled to a comparator 200 that generates pulse RESET that resets counter 21, in accordance with signal PERIOD, for example, once in each period H. During transient conditions, when timing edge OSC of PLL 20 is not yet in synchronism with signal SYNC, phase difference signal PH that is filtered in filter 33 varies the values of signals SK and CT in such a way to cause timing edge OSC to occur in synchronism with signal SYNC. The operation of a PLL that is similar to PLL 20 is described in detail in the Willis patent. It should be understood that phase detector 202, embodying the invention, operates differently from a corresponding phase detector of the PLL of the Willis patent. FIGURES 2a-2g illustrate waveforms useful for explaining the operation of detector 202 of FIGURE 1. Similar symbols and numbers in FIGURES 1 and 2a-2g represent similar items or functions. Analog baseband signal 130 of FlGURE 1 is coupled from, for example, a video detector of a television receiver, not shown in the FIGURES. Signal 130 is sampled, once in each period t CK of a clock CK, by an analog-to-digital (A/D) converter 110 that produces a digitized signal 130a. When signal 130 is an NTSC type signal, the frequency of clock CK may be, for example, four times that of the color subcarrier. Signal 130a is coupled via a digital lowpass filter 111 that generates from the samples of signal 130a a lowpass filtered signal 130b, shown schematically in FIGURE 2b. Lowpass filter 111 of FIGURE 1 reduces accompanying noise. Filter 111 also establishes a predetermined rate of change r′ of a defined slope r between the corresponding values of consecutively occurring samples of the leading edge of signal 130b of FlGURE 2b. The leading edge of signal 130b corresponds with leading edge SY LE of synchronizing signal SYNC that is included in signal 130 of FIGURE 1. As a result of the smoothing operation of lowpass filter 111, the rate of change r′ of slope r in signal 130b of FIGURE 2b tends to remain substantially the same with variations in the slope of the leading edge SY LE in composite video signal. Signal 130b is coupled to a first input port of a comparator 112 that receives at a second input port a slice level signal SL that may be generated in a conventionally designed slice level detector 113. Slice level signal SL may be, in a simplified arrangement, a constant signal; alternatively, it may be a dynamically variable signal that varies in accordance with the amplitude of signal 130. As long as signal 130b of FIGURE 2b is, for example, more positive than slice level signal SL, a sync signal H s of FIGURE 2c, developed at an output terminal of comparator 112 of FIGURE 1, is at a first, or FALSE state. Signal H s being FALSE indicates the occurrence of the corresponding portion in signal 130b that is not used for providing synchronizing information such as, for example, the entire active video line portion of a given period H. On the other hand, when signal 130b of FIGURE 2b becomes less positive than slice level signal SL, that occurs after time T fs of FIGURE 2c, the state of signal H s is TRUE, indicating the occurrence of sync pulse information in signal 130 of FIGURE 1. Signal H s of FlGURE 1, having a leading edge that occurs at time T fs of FIGURE 2c, occurs when signal 130b of FIGURE 1 becomes less positive than slice level signal SL. Thus, a value of a difference between signals 130b and SL changes polarity at time T fs of Figure 2b. Signal H s of FIGURE 1 is coupled, for example, to a conventionally built differentiator 121 that generates a pulse START of FIGURE 2g immediately following time T fs . Pulse START is indicative of the occurrence of a corresponding level change in signal 130b of FIGURE 1. Undelayed signal 130b and signal 130b that is delayed by one period t CK of clock CK are coupled to input ports 125c and 125b, respectively, of a latch 125. Pulse START that is coupled to a clock receiving terminal 125a of latch 125 stores the corresponding signals at ports 125c and 125b at time T fs of FIGURE 2b to provide output signals S b and S a of FIGURE 1, respectively. Signal S b provides the value of signal 130b of FIGURE 2b at time T fs , when signal 130b is less positive than signal SL. Similarly, signal S a provides the value of signal 130b of FIGURE 2b at the immediately preceding edge of clock t CK at a time T a , when signal 130b is more positive than signal SL. At time T a of FIGURE 2b, that occurs coincidentally with clock CK, and one period t CK prior to time T fs , the value of signal 130b that establishes signal S a of FIGURE 1, is more positive than slice level signal SL of FIGURE 2b by an amount, referred to as "a". Similarly, at time T fs , the value of signal 130b, that establishes signal S b of FIGURE 1, is less positive than signal SL of FIGURE 2b by an amount, referred to as "b". Pulse START is also coupled to a SET input terminal 115a of a RESET-SET (R-S) flip-flop 115, causing an output signal 115b to assume a TRUE state at an output Q terminal of flip-flop 115, that is coupled to an input 117a of an "AND" gate 117. The signal at output Q terminal being TRUE, enables "AND" gate 117 to couple the pulses of clock CK to a clock receiving input terminal 116a of a counter 116 that counts the pulses of clock CK. Pulse START is additionally coupled through an "OR" gate 118 to a RESET input terminal 116b of counter 116 for initializing an output signal COUNT of counter 116 to zero at the beginning of each computation cycle of microcomputer 140 that computes the value of a signal PH. Each computation cycle occurs when pulse START occurs. Signal COUNT provides the state of counter 116 and is used to provide various time-out information as will be described below. Signal COUNT of counter 116, for example, increments once each time clock CK occurs from the initial value that is zero until signal COUNT reaches an upper limit of, for example, 64. Signal COUNT is coupled to an input port of a decoder 141 that generates a triggering edge 141a when signal COUNT attains a predetermined value that represents a time-out interval of, for example, two microseconds. Triggering edge 141a is coupled to a triggering edge receiving input terminal of a flip-flop 142. Edge 141a causes flip-flop 142 to store the TRUE/FALSE state of signal H s at the end of such time-out interval to form a signal VALID that is coupled to microcomputer 140. In the event that signal H s is FALSE at the end of the time-out interval, when edge 141a occurs, signal VALID becomes FALSE. This may result from a sync signal SYNC of signal 130 being narrower than the minimum requirement of two microseconds. On the other hand, if signal H s is TRUE at the time edge 141a occurs, representing a sufficiently acceptable duration of sync signal SYNC, signal VALID becomes TRUE. Only when signal VALID is TRUE, will microcomputer 140 compute the value of phase difference signal PH, as described later on. When signal COUNT has reached the upper limit that in this example is equal to 64, representing a time out interval of approximately 5 microseconds, a decoder 122 that receives signal COUNT generates a signal UPDATE that is coupled through "OR" gate 118 to terminal 116b of counter 116 for initializing counter 116 to zero again to restart the computation cycle of signal PH. Signal COUNT is also coupled to an input port 123a of a latch 123 that stores the value of signal COUNT, referred to hereinafter as value y, when an edge MSa of oscillator signal MS of FIGURE 2e occurs. Thus, an output signal COUNT1 at an output port 123b of latch 123 of FIGURE 1 contains the value y of signal COUNT that occurs when edge MSa of oscillator signal OSC of FIGURE 2e occurs. Signal COUNT1 or value y is indicative of the time elapsed between the leading edge of pulse START, at time T fs of FIGURE 2g, and edge MSa of edge OSC of FIGURE 2e that occurs at time T₁. Assume that in the embodiment of FIGURE 1 signal MS changes simultaneously with signal COUNT. Therefore, the value y respresents signal COUNT1 prior to the occurrence of signal MS. It follows that the length of interval T fs -T₁ is equal to (y+1) multiplied by t CK , as shown in FIGURE 2f. Pulse START of FIGURE 1 is coupled to a reset input RS of latch 123 to cause signals COUNT1 and COUNT to be initialized to zero at the beginning of each computation cycle of signal PH. The computation by microcomputer 140 of signal PH in a given computation cycle begins when counter 116 reaches the upper limit = 64, thereby generating signal UPDATE in decoder 122 which is then read by the microcomputer 140. For the purpose of explaining the computation algorithm of signal PH in microcomputer 140, assume that the period t CK of clock CK is normalized and is equal to unity. In its first step of the computation cycle, microcomputer 140 tests signal VALID. If signal VALID is FALSE, indicating that the duration of sync signal SYNC is narrower than, for example, the minimum required two microseconds, microcomputer 140 rejects the current signal SYNC and considers the signal as being invalid. Microcomputer 140 then begins testing again the output of decoder 122 for detecting signal UPDATE in the next computation cycle. If signal VALID is TRUE, microcomputer 140 proceeds to compute signal PH in the current computation cycle in a second step which tests signal COUNT1. A first hypothetical situation exists if the value y of signal COUNT1 is different from zero. This situation exists when the phase difference is within a window period of, for example, approximately 5 microseconds that is determined by the upper count limit 64 of counter 116. In this situation, edge MSa of FIGURE 2e occurs before counter 116 of FIGURE 1 reaches its upper limit. As mentioned previously, counter 116 begins counting upon the occurrence of pulse START such as at time T fs of FIGURE 2d and ends counting approximately 5 microseconds later at a count of 64 clock periods at time T es . A simulated sync signal SIM of FIGURE 2d has a duration that corresponds with the window period. Signal SIM that represents a mathematical equivalent of sync signal 130b of FIGURE 1 is analytically reconstructed by microcomputer 140 from the samples of signal 130b by means of interpolation. Signal SIM of FIGURE 2d has a leading edge where the characteristic slope r of signal 130b of FIGURE 2b is computed to be equal to slice signal SL at a zero crossing time T zc that occurs between times T a and T fs . Time T zc is calculated in microcomputer 140 by, for example, simple trigonometric interpolation from the values "a" and "b" of FIGURE 2b derived from signals S a and S b stored in latch 125 of FIGURE 1. Other conventional interpolation techniques may be used instead of the trigonometric one. The result of the computational interpolation is that crossover time T zc is computed to occur before time T fs by an interval X of FIGURE 2a, where X is a fraction of clock period t CK and is equal to X = ( b a+b ) xt CK . Embodying an aspect of the invention, time T zc of FIGURE 2d defines the time, to within a fraction of a clock period, when a leading edge occurs of simulated, or computed, sync signal SIM of FIGURE 2d. Signal SIM is derived from the synchronizing pulse in video signal 130 of FIGURE 1. Therefore, computation of phase difference signal PH of FIGURE 1 may be based on the use of simulated signal SIM to advantageously generate phase difference signal PH to within a fraction of a clock. Embodying an additional aspect of the invention, simulated sync signal SIM of FIGURE 2d, having a leading edge at time T zc , is defined as having a fixed rather than a variable width. The fixed width is selected to equal an integer k, such as, for example, k=65, multiplied by the length of period t CK of clock CK of FIGURE 2a. The value k determines a dynamic range or the window period of phase detector 202 of FIGURE 1. When the time difference between the input signal SYNC and edge OSC is smaller than approximately 5 microseconds, as determined by the width of signal SIM, a change in phase in edge SY LE , for example, will cause a corresponding proportional change in signal PH. Outside the dynamic range, a change in phase will not produce any corresponding proportional change in signal PH. Thus outside the dynamic range signal PH may retain a constant value. Such characteristic of detector 202 is useful for obtaining a fast settling time in PLL 20 when a phase perturbation occurs in, for example, signal SYNC. To provide for a width of k=65, the simulated trailing edge of simulated signal SIM of FIGURE 2d is defined to occur at a time T e . Time T e occurs after the lapse of an interval (1 - b a+b ) clock periods t CK following that edge of clock CK that is coincident with time T es . Time T es follows time T fs by 64xt CK clock periods. During the interval T zc -T e of FIGURE 2d, simulated sync signal SIM is defined to be at a TRUE state. Edge OSC of FIGURE 2e, that is to be phase compared with signal SIM of FIGURE 2d, includes signals MS and SK of FIGURE 1, as described before. Transition edge MSa of signal MS, that occurs at, for example, time T₁, occurs coincidentally with a corresponding edge of periodic clock CK of FIGURE 2a. Also as described before, signal SK of FIGURE 1, that is referred to as a skew signal, is a digital word that represents the value of a fraction f of period t CK of clock CK of FIGURE 2a. Taken together, signals MS and SK of FIGURE 1, define periodic timing edge OSC. Edge OSC is analogous to the output signal of a VCO of a conventional PLL. Edge OSC occurs at time T₂ of FIGURE 2e that occurs, for example, at time T₂=T₁+fxt CK . Time T₂ therefore occurs between transition edge MSa and that of the next clock CK of FIGURE 2. Edge OSC is thus defined with a resolution that is better than period t CK of FIGURE 2a. Embodying a further aspect of the invention, periodic timing edge OSC of FIGURE 2e is phase compared in detector 202 of FIGURE 1 with simulated signal SIM of FIGURE 2d. Because simulated signal SIM of FIGURE 2d has a width that is equal to integer multiple k of period t CK , the phase computation of signal PH, advantageously, remains correct even when both the duration of horizontal period H and the width of sync signal SYNC of video signal 130 of FIGURE 1 are not each equal to an integer multiple of period t CK . The duration of the period H may vary when video signal 130 of FIGURE 1 is, for example, generated by a video tape recorder. Advantageously, samples of signal 130b of FIGURE 2b that are not associated with leading edge SY LE of FIGURE 1 are excluded from affecting the computation of signal PH. Since the information needed to construct simulated sync signal SIM is obtained from the sampled sync signal 130b only at times T a and T fs of FIGURE 2b, any noise that is associated with signal 130b at other times, advantageously, does not significantly affect the accuracy of the computation of phase difference signal PH of FIGURE 1. Embodying an aspect of the invention, phase difference signal PH is related to the time difference between the leading edge of simulated sync signal SIM of FIGURE 2d and transition edge OSC of FIGURE 2e, as defined by signals MS and SK of FIGURE 1. This difference is derived by microcomputer 140 by computing the difference between the length of interval T₂-T zc of FIGURES 2d-2g and the length of interval T e -T₂. The length A p in FIGURE 2f of interval T₂-T zc of FIGURE 2d is equal to the sum of three terms : b a+b , y+1 and fraction f. As explained before, the term b a+b is equal to the length of interval X of FIGURE 2b, the value y is contained in signal COUNT1 of FIGURE 1, and fraction f is contained in skew word SK. The length A n of FIGURE 2f of interval T e -T₂ of FIGURE 2d is equal to the sum of three terms: 1-f, 64-y-2 and (1 - b a+b ), as shown schematically in FIGURE 2f. Thus, signal PH of Figure 1 is equal to a difference A p -A n that is equal to ( 2b a+b + 2f) + (2y - 63). The first parenthetical term may include a fraction of period t CK . The second parenthetical term indicates an integer multiple of period t CK . The closer that edge OSC of FIGURE 2e is to time T zc , the more negative is signal PH of FIGURE 1. On the other hand, the closer that edge OSC of FIGURE 2e is to time T e , the more positive is signal PH of FIGURE 1. Phase difference signal PH is zero when timing edge OSC of FIGURE 2e occurs at a predetermined instant relative to time T zc that is approximately at the center of interval T zc -T e of FIGURE 2d. Embodying an aspect of the invention, phase difference signal PH is proportional to the time difference between time T₂, corresponding to transition edge OSC of FIGURE 2e as defined by signals MS and SK of FIGURE 1, and time T zc of FIGURE 2d, determined by the leading transition edge of sync signal SYNC of signal 130 of FIGURE 1. To derive this time difference, microcomputer 140 of phase detector 202 uses synchronization information derived from simulated signal SIM having a leading transition edge that is determined by the leading edge of sync signal SYNC of signal 130 of FIGURE 1 and having a width that is equal to an integer multiple of clock period t CK . The other information used is the oscillator timing information derived from skew signal SK, and from signal MS having edge MSa that occurs coincidentally with clock CK. This concludes an explanation of the first hypothetical situation where oscillator edge OSC of FIGURE 2e occurs inside the window period, or interval T zc -T e of FIGURE 2d that is defined by simulated signal SIM. Such window period is established by signal SIM. The length of the window period is equal to, for example, approximately 5 microseconds, as described before. In second and third hypothetical situations, that are described below, the phase difference is outside the window period that is established by signal SIM. In these situations, it may be desirable, to establish signal PH at a constant level in order to obtain a fast response or settling time of PLL 20 of FIGURE 1 when phase perturbation occurs. Such constant level of signal PH has a corresponding polarity that is indicative of a phase lag, when the second situation exists, or of a phase lead, when the third situation exists. Accordingly, pulse START is also coupled to a triggering terminal of a flip-flop 124 that stores the TRUE/FALSE state of signal MS of FIGURE 2d at time T fs to generate the corresponding TRUE/FALSE state of a signal POLARITY that is used for distinguishing between the second and third situations. The state of signal POLARITY of FIGURE 1 at an output terminal of flip-flop 124 provides microcomputer 140 with the state of signal MS at time T fs of FIGURE 2e. Signal POLARITY is used in the second and third hypothetical situations for determining whether the phase difference is positive or negative. The second hypothetical situation exists when the phasing between sync signal SIM and oscillator edge OSC occurs after time T e of FIGURE 2e. In this situation, both the value y of signal COUNT1 of FIGURE 1 is zero and signal POLARITY, that is tested by microcomputer 140, is FALSE. This occurs, for example, when edge MSa′ of signal MS and the corresponding edge OSC of FIGURE 2e occur, after time T e , as shown by the corresponding dashed line in FIGURE 2e. In the second hypothetical situation microcomputer 140 of FIGURE 1 establishes signal PH to be at a constant predetermined positive value that is the same irrespective of the particular value of the phase difference. A third hypothetical situation exists when the phasing between sync signal SIM and oscillator edge OSC is such that edge OSC occurs prior to time T zc of FIGURE 2e. In this situation, both the value y is zero and signal POLARITY is TRUE. This occurs where edge MSa″ of signal MS of FIGURE 2e occurs prior to time T zc , as shown by the corresponding dashed line. In the third hypothetical situation, signal PH of FIGURE 1 is established by microcomputer 140 to be at a constant predetermined negative value that is the same irrespective of the particular value of the phase difference. After the computation of signal PH is accomplished, microcomputer 140 begins testing for the next occurrence of signal UPDATE. When signal UPDATE is again detected after signal SYNC of the following period H is received, the computation cycle of signals PH begins again.

Claims: A digital phase detector responsive to first and second input signals for generating a phase difference signal that is indicative of a phase difference therebetween, comprising: a source of a periodic clock signal; sampling means (110) responsive to said first input signal (130) and to said clock signal (CK) for sampling said first input signal (130) to generate a sampled signal (130a) that contains first and second sampled values of said first input signal, each of said first and second sampled values being representative of said first input signal (130) at corresponding first and second instants that occur synchronously with respect to said clock signal (CK); characterized by computing means (140) being responsive to said sampled signal (130a) for computing, by interpolation of said first and second sampled values, a third value that is representative of said first input signal (130) at a third instant when a transition edge (SY LE ) in said first input signal (130) is estimated to occur, said computing means (140) further being responsive to said second input signal for computing a difference between said third instant and a corresponding instant when a corresponding transition edge in said second input signal (OSC) occurs to generate said phase difference signal (PH) in accordance with said difference. A phase detector according to Claim 1 characterized in that said computing means comprises a microcomputer (140). A phase detector according to Claim 1 characterized in that said second input signal (OSC) comprises a first signal part (MS) that is synchronous with said clock signal (CK) and a second signal part (SK) containing a value that is indicative of a fraction of the period of said clock signal such that both said first (MS) and second (SK) parts in combination are indicative of said corresponding instant when said corresponding transition edge (SY LE ) occurs in said second input signal (130) to within a fractional period of said clock signal (CK). A phase detector according to Claim 3 characterized in that said second signal part (SK) defines said corresponding instant relative to an instant that is defined by said first signal part (MS). A phase detector according to Claim 3 characterized in that said computing means (140) generates said phase difference signal (PH) in accordance with a fourth instant separated from said third instant by an integer multiple of the period of said clock signal (CK). A phase detector according to Claim 5 characterized in that said computing means (140) generates said phase difference signal (PH) at a predetermined value that remains unchanged when said corresponding transition edge in said second input signal (OSC) occurs outside an interval that is between said third and fourth instants. A phase detector according to Claim 1 characterized in that said first input signal (130) is representative of a synchronizing pulse in a baseband video signal. A phase detector according to Claim 1 characterized in that said first input signal (130) is at a television line rate. A phase detector according to Claim 7 characterized by a comparator (112) responsive to a synchronizing pulse slice level signal (SL) and to said sampled signal (130a) for generating a third signal (H S ) when a difference therebetween changes polarity. A phase detector according to Claim 9 characterized by means (125) responsive to said third signal (H S ) and to said sampled signal (130a) for selecting said first and second sampled values such that each of said first and second instants is determined relative to an instant when said third signal (H S ) is generated. A phase detector according to Claim 10 characterized in that said computing means (140) is responsive to said third signal (H S ) for estimating said transition edge in said first input signal (130) to occur at said third instant that occurs prior to the generation of third signal (H S ) by an interval that is related to said first value divided by a sum of said first and second values. A phase detector according to Claim 10 characterized in that said computing means (140) is responsive to said third signal (H S ) for estimating said transition edge in said first input signal (130) to occur at said third instant that is intermediate said first and second instants. A phase detector according to Claim 1, for use in a television apparatus, characterized in that said first input signal is a baseband video signal (130), and said transition edge in said first input signal comprises the leading edge of a synchronizing pulse. A digital phase detector responsive to a first input signal (130) having a pulse that includes first and second transition edges that change in opposite manner such that both said first and second transition edges define said pulse, and responsive to a second input signal (OSC) for generating a phase difference signal (PH) that is indicative of a phase difference between said first (130) and second (OSC) input signals, comprising: a source of a periodic clock signal (CK); sampling means (110) responsive to said first input signal (130) and to said clock signal (CK) for generating a sampled signal (130a) that contains a plurality of sample portions that are representative of corresponding levels in said first input signal (130); characterized by second means (140) responsive to said sampled signal (130a) for selecting, from said plurality of sample portions, a first sample portion that is indicative of a first instant when said first transition edge occurs such that, in selecting said first sample portion, said second means (140) excludes each sample portion of said plurality of sample portions that corresponds to any portion of said pulse that is not associated with said first transition edge, said second means (140) being responsive to said second input signal (OSC) for generating said phase difference (PH) in accordance with said second input signal (OSC) and in accordance with said first sample portion to the exclusion of the remaining ones of said plurality of sample portions. A phase detector according to Claim 14 characterized in that said second means (140) detects a change in said sampled signal that is indicative of the occurrence of said first transition edge and selects from said plurality of sample portions a second sample portion that corresponds to a portion of said first input signal that occurs prior to said first instant for generating said phase difference (PH) in accordance with said first and second sample portions. A phase detector according to Claim 15 characterized in that said second means (140) generates in accordance with said first and second sample portions, using interpolation, a first value that is representative of said first instant such that said first instant occurs intermediate an instant that corresponds with said first sample portion and an instant that corresponds with said second sample portion. A phase detector according to Claim 16 characterized in that the length of an interval between said instants that correspond with said first and second sample portions is equal to the period of said clock signal (CK). A phase detector according to Claim 16 characterized in that said second means (140) generates in accordance with said first value a second value that is indicative of a time elapsed between said first instant and an instant that corresponds with a transition edge in said second input signal (OSC). A phase detector according to Claim 14 characterized in that said second input signal (OSC) includes a first signal portion (MS) that represents a transition edge in said second input signal with a resolution that is in accordance with the period of said clock signal and a second signal portion (SK) that represents a skew of said transition edge relative to said first signal portion (MS) of said second input signal (OSC) with a resolution of a fraction of the period of said clock signal (CK). A phase detector according to Claim 14 characterized in that said phase difference signal (PH) is capable of providing phase information that is required for controlling a horizontal phase-lock loop circuit (20) of a television apparatus.

Inventors: BALABAN ALVIN RUEBEN, STECKLER STEVEN ALAN, BALABAN, ALVIN RUEBEN, STECKLER, STEVEN ALAN
Applicants: RCA THOMSON LICENSING CORP, RCA THOMSON LICENSING CORPORATION
Application year: 1988
Main classification: H03L7
IPC codes: H03L7, H04N5, H04N3, H03K5