The invention is related to phase-locked loops, and in particular, to an apparatus and method for a phase-locked loop with equalizing pulse removal.
The NTSC standard for television defines a composite video signal. The composite video signal has a fixed vertical resolution of 525 horizontal lines, with 59.94 fields displayed per second. Even and odd fields are displayed sequentially, interlacing the full frame. One full frame is made of two interlaced fields, and is displayed about every 1/30 of a second. A composite sync signal may be derived from the NTSC composite video signal by performing functions such as clipping and buffering on the composite video signal. There may be several commercially available integrated circuits for generating a composite sync signal from a composite video signal, including the LM1881 from National Semiconductor Corporation.
The composite sync signal includes a horizontal sync region with a period of about 63.5 μs. During a vertical blanking interval, the composite sync signal still includes the horizontal sync pulses with a period of about 63.5 μs. However, during the vertical blanking period, equalizing pulses are interleaved with the horizontal sync pulses. The equalizing pulses have a period of about 63.5 μs, and lag behind the horizontal sync pulses by about 31.75 μs (or 31.8 μs, rounding to three significant digits). Accordingly, the period of the NTSC composite sync signal is approximately 31.8 μs during the vertical blanking period. However, this increased frequency NTSC signal when equalizing pulses occur may be problematic if a phase-locked loop (PLL) is employed for horizontal deflection.
PLL applications typically provide an output clock signal by comparing the output clock signal to a reference clock signal. A phase-frequency detector (PFD) circuit is often employed to provide a raw control signal to a loop filter. The phase-frequency detector circuit provides the raw control signal in response to comparing the phase and frequency of the output clock signal to the reference clock signal. The loop filter often is a low-pass filter (LPF) that is arranged to provide a smoothed or averaged control signal in response to raw control signal. Typically, a voltage-controlled oscillator (VCO) is arranged to receive the control signal from the loop filter. The VCO produces the clock signal in response to the control signal such that the frequency of the clock is varied until the phase and frequency of the clock signal are matched to the reference clock signal.
A PLL circuit may include a PFD circuit that provides UP and DOWN signals in response to the comparison between the output clock signal and the reference clock signal. The UP and DOWN signals are dependent on both the phase and frequency of the output and reference clock signals. The UP signal is active when the frequency of the output clock signal is lower than the reference signal, while the DOWN signal is active when the frequency of the output clock signal is determined to be higher than the reference signal. Similarly, the UP signal is active when the phase of the output clock is lagging behind the phase of the reference clock, and the DOWN signal is active when the phase of the output clock is leading the phase of the reference clock.
Non-limiting and non-exhaustive embodiments of the present invention are described with reference to the following drawings, in which:
Various embodiments of the present invention will be described in detail with reference to the drawings, where like reference numerals represent like parts and assemblies throughout the several views. Reference to various embodiments does not limit the scope of the invention, which is limited only by the scope of the claims attached hereto. Additionally, any examples set forth in this specification are not intended to be limiting and merely set forth some of the many possible embodiments for the claimed invention.
Throughout the specification and claims, the following terms take at least the meanings explicitly associated herein, unless the context dictates otherwise. The meanings identified below are not intended to limit the terms, but merely provide illustrative examples for the terms. The meaning of “a,” “an,” and “the” includes plural reference, and the meaning of “in” includes “in” and “on.” The phrase “in one embodiment,” as used herein does not necessarily refer to the same embodiment, although it may. The term “coupled” means at least either a direct electrical connection between the items connected, or an indirect connection through one or more passive or active intermediary devices. The term “circuit” means at least either a single component or a multiplicity of components, either active and/or passive, that are coupled together to provide a desired function. The term “signal” means at least one current, voltage, charge, temperature, data, or other signal.
Briefly stated, the invention is related to a phase-locked loop circuit that is arranged for equalizing pulse removal. The phase-locked loop circuit includes a multi-phase pulse generator circuit that is arranged to provide a feedback signal and a gate signal from an output of a voltage-controlled oscillation circuit. The gate signal leads the feedback signal by approximately one-fourth of a period. Also, an equalizing pulse removal logic circuit is arranged to provide a sync gate signal from the feedback signal, the gate signal, and a sync signal. The sync gate signal is provided such that, if the sync signal includes equalizing pulses, the sync gate signal corresponds to an inactive logic level during each equalizing pulse. A phase-frequency detector of the phase-locked loop circuit is gated such that the phase-frequency detector is not changed by the sync signal if the sync gate signal corresponds to the inactive logic level.
Gated phase-frequency detector circuit 110 may be arranged to provide signals UP and DOWN based, in part, on sync signal Sync, feedback signal FB, and sync gate signal Sync_gate. Signal Sync may be a composite sync signal, such as an NTSC composite sync signal, or the like.
Further, gated phase-frequency detector circuit 110 may be arranged such that, if signal Sync_gate corresponds to an active logic level, gated phase-frequency circuit 110 provides signals UP and DOWN in substantially the same manner as a phase-frequency detector. However, gated phase-frequency detector circuit 110 is further arranged such that, if signal Sync_gate corresponds to an inactive logic level, a logic level that is associated with signal UP remains the same, regardless of signal Sync.
In one embodiment, a flip-flop (not shown in
In another embodiment, a flip-flop (not shown in
Also, charge pump circuit 150 may be configured to provide charge pump current Icp responsive to signals UP and DOWN. Loop filter circuit 160 may be arranged to provide error signal Verr in response to current Icp. VCO circuit 170 is arranged to provide oscillator output signal VCO_out from signal Verr.
Multi-phase pulse generator circuit 180 may be arranged to provide signal FB by dividing a frequency that is associated with signal VCO_out. In one embodiment, multi-phase pulse generator circuit 180 is arranged to provide signal FB such that signal FB has a period of approximately 63.5 μs. Multi-phase pulse generator circuit 180 may be further arranged to provide signals Gate and OUT such that signals Gate and OUT have substantially the same frequency as signal FB, but different phases than signal FB. In one embodiment, the phase of signal OUT is adjustable, and the phase of signal Gate leads the phase of signal FB by approximately 90 degrees (i.e. one-fourth of a period).
Equalizing pulse removal logic circuit 190 is arranged to provide signal Sync_gate based, in part, on signals FB, Gate, and Sync. Equalizing pulse removal circuit 190 may arranged to provide signal Sync such that, if equalizing pulses are occurring in the sync signal, half of the pulses in signal Sync are ignored by gated phase-frequency detector circuit 110. Accordingly, each of the equalizing pulses may be ignored by gated phase-frequency detector circuit 110. In one embodiment, equalizing pulse removal circuit 190 is arranged to provide signal Sync_gate such that signal Sync_gate is substantially the same as signal Gate if signal FB is locked to signal Gate.
During the horizontal sync interval of an NTSC composite sync signal, the period is about 63.5 μs. However, the NTSC composite sync period includes equalizing pulses during a vertical blanking interval. When an NTSC composite sync signal includes equalizing pulses, the period of the signal is about 31.8 μs. Equalizing pulse removal logic circuit 190 may be arranged such that, if the period of signal Sync is about 31.8 μs, gated phase-frequency detector circuit 110 ignores half of the pulses in signal Sync, so that the period of signal Out remains unchanged (e.g. remains at about 63.5 μs) even if equalizing pulses occur in signal Sync.
PFD 220 may be arranged to provide signals UP and DOWN at up and down outputs respectively of PFD 220 based, in part, on the phases and frequencies of signals Sync and FB. PFD 220 may be arranged to receive: signal MXout at a first detector input, signal VDD at a second detector input, signal Sync at a reference input, and signal FB at a feedback input.
Multiplexer circuit 240 may be arranged to receive signal UP at a first multiplexer input, to receive signal VDD at a second multiplexer input, and to receive signal Sync_gate at a select multiplexer input. Also, multiplexer circuit 240 may be arranged to provide multiplexer output signal Mxout at a multiplexer output of multiplexer circuit 240 by multiplexing signals UP and VDD based on signal Sync_gate. Accordingly, multiplexer circuit 240 may be arranged to provide signal MXout such that signal MXout corresponds to a logic high if signal Sync_gate corresponds to an active logic level, and such that signal MXout corresponds to a logic level that is associated with signal UP if signal Sync_gate corresponds to an inactive logic level.
Although multiplexer circuit 240 is shown as receiving signal VDD, multiplexer circuit 240 may instead receive virtually any signal that provides a logic “high” instead of VDD. Also, in other embodiment, multiplexer 240 may instead receive virtually any signal that receives a logic “low”.
Flip-flop FF31 may be arranged to receive signal MXout at a D input, to receive signal Sync at a clock input, to receive signal CLEAR at a clear input, and to provide signal UP at a Q output. Also, flip-flop FF32 may be arranged to receive signal VDD at a D input, to receive signal FB at a clock input, to receive signal CLEAR at a clear input, and to provide signal DOWN at a Q output. Clear logic circuit 330 is arranged to provide signal CLEAR based, in part, on signals UP and DOWN.
Clear logic circuit 330 may be arranged to provide signal CLEAR by employing an AND function on signals UP and DOWN. Accordingly, clear logic circuit 330 may be arranged to provide signal CLEAR such that the signals UP and DOWN are reset if signals UP and DOWN both correspond to a high logic level.
In other embodiments, complementary logic may be employed such that clear logic circuit provides a NOR function on signals UP and DOWN such that signals UP and DOWN are reset if signal UP and DOWN both correspond to a low logic level.
Although D flip-flops are illustrated in
Lock detector 691 is arranged to determine whether phases associated with signals Sync and FB are substantially the same, and to provide signal lock_out based on the determination. Accordingly, signal lock_out corresponds to a first logic level (e.g. high) if signals Sync and FB have substantially the same phase, corresponds to a second logic level (e.g. low) otherwise. Signals Sync and FB are said to be locked if their phases are substantially the same.
Additionally, sync gate logic circuit 692 is arranged to provide signal Sync_gate based, in part, on signal lock_out, signal Gate, and signal FB. In one embodiment, sync gate logic circuit 692 is arranged to provide signal Sync_gate such that signal Sync_gate corresponds to an active logic level (e.g. high) if signal lock_out corresponds to an inactive logic level (e.g. low), and such that signal Sync_gate also corresponds to the active logic level if signal Gate corresponds to the first logic level (e.g. high). Sync gate logic circuit 692 may be arranged to provide signal Sync_gate such that signal Sync_gate corresponds to an active logic level under another condition that indicates that no equalizing pulses are occurring in signal Sync. Embodiments of sync gate logic circuit 692 are shown in greater detail with respect to
Inverter Inv81 is arranged to provide signal Unlocked from signal lock_out by inverting signal lock_out. OR gate O81 is arranged to provide signal Sync_gate by performing an OR function on signals Unlocked and Gate. Accordingly, when signals FB and Gate are locked, signal Sync_gate is substantially the same as signal Gate. If signal Sync is an NTSC composite sync signal and signals Sync and FB are locked, then during the horizontal sync interval, whenever signal Sync is high, signal Sync_gate is also high. However, if signal Sync has a period of about 31.8 μs, as when equalizing pulses occur in signal Sync, then signal Sync_gate may be low during half of the pulses in signal Sync. Accordingly, the gated phase-frequency detector circuit (e.g. gated phase-frequency detector circuit 110 of
Inverter Inv91 is configured to provide signal Unlocked from signal lock_out. OR gate O91 is arranged to provide signal Sync_gate from signals Unlocked, Gate, and Overflow.
Pulse counter circuit 994 is arranged to receive signal Gate at a stop input so that, when signal Sync corresponds twice the horizontal sync NTSC frequency, half of the pulses are counted. In another embodiment, a stop input may not be employed, so that all of the pulses are counted.
Pulse counter circuit 994 may be arranged such that signal overflow is asserted if a large number of pulses occur in signal Sync that are at approximately twice the horizontal sync NTSC frequency. Sync gate logic circuit 992 is configured to provide signal Sync_gate so that signal Sync_gate is substantially the same as signal Gate if equalizing pulses are occurring in signal Sync. However, if signal Sync is a progressive scan signal, or the like, pulses in signal Sync may have a similar frequency as a signal with interleaved equalizing pulses. If signal Sync is a progressive scan signal, it is preferable to not ignore any pulses in signal Sync, even though the frequency of signal Sync is substantially the same as the frequency a signal in which interleaved equalizing pulses occur. Accordingly, if a large number of pulses (e.g. more than 9) occur at approximately twice the horizontal sync NTSC frequency, then the pulses are probably not equalizing pulses, but instead are probably pulses from a progressive scan signal, or the like. Accordingly, if a large number of pulses occur at approximately twice the horizontal sync NTSC frequency, sync gate logic circuit 992 provides signal Sync_out at an active logic level.
Pulse counter circuit 994 is a counter circuit that is arranged to increment a value if a rising edge occurs in signal Sync while signal Gate is low and signal S_reset is inactive (e.g. low). Pulse counter circuit 994 is further arranged such that the value resets (e.g. to zero) if signal S_reset is active (e.g. high) when a rising edge occurs in signal Sync. Also, pulse counter circuit 994 is arranged to assert signal Overflow if the value overflows. In one embodiment, pulse counter circuit 994 is a five-bit counter, and the value overflows if the value reaches 31 before being reset. In other embodiments, pulse counter circuit 994 may have a number of bits other than five.
Additionally, pulse counter circuit 994 is arranged to reset responsive to signal S_reset when signal Sync resumes the horizontal sync NTSC frequency. Pulse counter reset logic circuit 996 is arranged to provide signal S_reset based, in part, on signals Sync and Gate.
Flip-flop FF101 is arranged to provide signal Delayed_gate from signals Gate and Sync. Additionally, XNOR gate O101 is arranged to provide signal S_reset from signals Delayed_gate and Gate. Timing of signals in
For the waveforms illustrated in
As further shown in
Further, as shown in
The above specification, examples and data provide a description of the manufacture and use of the composition of the invention. Since many embodiments of the invention can be made without departing from the spirit and scope of the invention, the invention also resides in the claims hereinafter appended.
Number | Name | Date | Kind |
---|---|---|---|
4364091 | Taguchi et al. | Dec 1982 | A |
6483361 | Chiu | Nov 2002 | B1 |
6642747 | Chiu | Nov 2003 | B1 |