1. Field of the Invention
The present invention relates to tracking a tone within a frequency range, in particular, to a carrier tracking system and method for tracking a tone with a maximum power within a predetermined frequency range.
2. Description of the Prior Art
In traditional analog TV broadcasting systems (e.g., NTSC, PAL, or SECAM) or digital TV broadcasting systems (e.g., ATSC, DVB-T, or SVB-TH), video and audio baseband signals are first modulated to become modulated intermediate frequency (IF) signals according to corresponding modulation (e.g., AM, FM, QPSK, QAM, or OFDM) and channel bandwidth specifications, and then the modulated IF signals are filtered, frequency up-converted, and amplified to become modulated radio frequency (RF) signals according to corresponding specifications. Finally, the modulated RF signals are coupled into air via antenna or conducted to coaxial transmission cables.
For example, in an NTSC system, an image baseband signal is first low-pass-filtered at 4.2 MHz and then amplitude-modulated to an IF signal at 45.75 MHz and filtered via a VSB shaping filter; besides, an audio baseband signal is first encoded via multi-channel television sound (MTS), low-pass-filtered at 100 kHz, and then frequency-modulated to an IF carrier at 41.25 MHz. Therefore the modulated IF signals of video and audio are mixed, filtered via a band-pass filter with a central frequency of 44 MHz and a bandwidth of 6 MHz, up-converted and then amplified to become an RF signal.
At the receiving end, the RF signals coupled via an antenna or a coaxial transmission cable are sent to a tuner for processing. Since the received RF signals are wideband in frequency (50 MHz-1 GHz), the tuner processes and demodulates the received RF signals with a specific radio frequency to recover the original video and audio signals carried by the received RF signals. Generally speaking, to facilitate a synchronization of carriers at the receiving end, a tone-like signal with a relatively large power, for example, a video carrier in the NTSC system, is allocated within a predetermined bandwidth. However, in order to avoid frequency bands which have many interference sources, channel frequencies might be intentionally adjusted (usually shifted by 1-2 MHz) to achieve a better reception. Under the condition that the receiving end is not notified about the frequency adjustment in advance, the receiving end is required to synchronize the newly adjusted channel frequency properly and quickly when executing channel sweeping (scanning) or channel alternation. Therefore, an accurate and quick carrier synchronization mechanism is required.
In addition, in some applications that require pattern identification, e.g., audio signal processing or image identification, it is usually necessary to search for a specific signal with a relatively large power within an incoming wideband signal. Thus, an accurate and quick searching synchronization mechanism is necessary.
In the prior art, a phase-lock loop (PLL) is often utilized to search and synchronize a carrier or a tone-like signal with relatively high power within a specific frequency range. However, a conventional PLL is hardly capable of fulfilling the aforementioned requirement due to a long settling time or incapability of tracking and synchronizing to the carrier or the tone-like signal.
The present invention brings out a carrier tracking system and method for searching and synchronizing a tone-like signal (a carrier or a tone) with a maximum power within a predetermined frequency range quickly and accurately.
According to one aspect of the present invention, a carrier tracking system for tracking a tone with a maximum power within a frequency range is provided. The carrier tracking system includes a complex frequency down-converter, a waveform generator, a coordinate converter, and a control circuit. The frequency down-converter generates a Cartesian signal by mixing an input signal and sine and cosine signals. The waveform generator generates the sine and cosine signals based on a frequency bias signal. The coordinate converter converts the Cartesian signal into a polar signal having a norm signal and a phase signal. The control circuit selects a candidate frequency within a predetermined frequency range based on the norm signal and a estimated frequency deviation corresponding to the candidate frequency based on the phase signal, and generates the frequency bias signal based on the candidate frequency, the estimated frequency deviation and a loop error determined by the phase signal.
According to another aspect of the present invention, a method for tracking a tone within a frequency range is provided. The method includes: generating a Cartesian signal by mixing an input signal and sine and cosine signals; generating the sine and cosine signals based on a frequency bias signal; converting the Cartesian signal into a polar signal having a norm signal and a phase signal; estimating the power of the input signal at a plurality of candidate frequencies within the predetermined frequency range based on the norm signal; estimating frequency deviations of the input signal at the plurality of candidate frequencies; selecting a candidate frequency at which the maximum power of the input signal is estimated and a frequency deviation corresponding to the candidate frequency at which the maximum power of the input signal is estimated; and generating the frequency bias signal based on the candidate frequency, the estimated frequency deviation and a loop error determined by the phase signal, where the loop error is generated based on the phase signal when the candidate frequency at which the maximum power of the input signal is estimated and the frequency deviation corresponding to the candidate frequency at which the maximum power of the input signal is estimated are selected.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Certain terms are used throughout the following description and claims to refer to particular system components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following discussion and in the claims, the terms “including” and “comprising” are used in an open-ended fashion, and thus should be interpreted to mean “including, but not limited to . . . . ” The terms “couple” and “couples” are intended to mean either an indirect or a direct electrical connection. Thus, if a first device couples to a second device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
Please refer to
The coordinate converter 130 is coupled to the complex frequency down-converter 110, and implemented for converting the real part signal S_I and the imaginary part signal S_Q in Cartesian coordinate into a converted result in polar coordinate, wherein the converted result comprises a norm signal S_Norm and a phase signal S_Phase. For example, a complex signal S_I+j*S_Q in Cartesian coordinate is converted by the coordinate converter 130 into S_Norm*êj*S_Phase in polar coordinate. Specifically, the coordinate conversion can be expressed as follows:
In one exemplary implementation, a CORDIC iteration algorithm is employed by the coordinate converter 130 to derive the norm signal S_Norm and the phase signal S_Phase according to the real part signal S_I and the imaginary part signal S_Q. However, this is for illustrative purposes only, and is not meant to be a limitation to the scope of the present invention.
The control circuit 140 is coupled to the coordinate converter 130 and the waveform generator 120, and implemented for determining the frequency bias signal Freq_Bias according to the converted result including the norm signal S_Norm and the phase signal S_Phase. The operation of control circuit 140 can be manifested by a finite state machine as shown in
S201: Start.
S202: Begin a first operation state S1. Therefore, the PLL is off and a rough frequency estimation (RFE) process starts.
S203: Check if the first timer T1 expires or not. If yes, go to step S204; otherwise, go back to step S202.
S204: Enter a second operation state S2. Therefore, the PLL is off.
S205: Check if the RFE process is finished successively. If yes, go to step S206 and start a second timer T2 simultaneously; otherwise, go back to step S202.
S206: Enter a third operation state S3. Therefore, the PLL is on and the RFE process is finished.
S207: Check if the second timer T2 expires or not. If yes, go to step S208; otherwise, go back to step S206.
S208: Check if the PLL is locked to the input signal or not. If yes, go to step S209; otherwise, go back to step S202.
In the beginning of the first operation state S1, a first timer T1 is started, and meanwhile a RFE process is also started. When the first timer T1 expires, the finite state machine thereby enters a second operation state S2. In the second operation state S2, the control circuit 140 determines whether the RFE process is successfully finished or not. If the RFE process is successfully finished, the finite state machine enters a third operation state S3; otherwise, the finite state machine returns to the first operation state S1 to start once again. In the beginning of the third operation state S3, a second timer T2 is started and the carrier tracking system 100 functions as a closed-loop PLL to begin a locking process by an initial frequency according to the estimation result derived in the first operation state S1, wherein the second timer T2 should be set long enough to assure a stabilized state of the closed-loop PLL. When the second timer T2 expires, the control circuit 140 determines whether the closed-loop PLL is locked to the input signal or not. If the closed-loop PLL is locked to the input signal, the operation of the finite state machine comes to an end; otherwise, the finite state machine returns to the first operation state S1 to start once again.
In addition, in this exemplary embodiment the control circuit 140 comprises a tone arbitrator 1401, a power detector 1402, a frequency discriminator 1403 and a loop filter 1404. The power detector 1402, respectively, estimates the power values of the input signal S_IN at a plurality of candidate frequencies within the predetermined frequency range based on the norm signal S_Norm. The frequency discriminator 1403 estimates frequency deviations Freq_Dev of the input signal S_IN at the plurality of candidate frequencies. The tone arbitrator 1401 selects a candidate frequency within the predetermined frequency range based on the norm signal S_Norm and an estimated frequency deviation Freq_Dev corresponding to the candidate frequency based on the phase signal S_Phase. The loop filter 1404 generates a loop error Loop_Err based on the phase signal S_Phase when the candidate frequency at which the maximum power value PV of the input signal S_IN is estimated and the frequency deviation Freq_Dev corresponding to the candidate frequency at which the maximum power value PV of the input signal S_IN is estimated are selected. Then, the tone arbitrator 1401 generates the frequency bias signal Freq_Bias based on the candidate frequency, the estimated frequency deviation Freq_Dev and the loop error Loop_Err determined by the phase signal S_Phase.
In the first operation state S1, the tone arbitrator 1401 controls the frequency bias signal Freq_Bias according to a plurality of candidate frequencies within the predetermined frequency range, respectively. The power detector 1402 estimates a power value PV of the input signal S_IN at each of the candidate frequencies in the first operation state S1 according to the norm signal S_Norm. Specifically, the power value PV can be expressed as follows:
The power detector 1402 is therefore used to find an estimated value substantially equal to or close to the power function expressed in equation (2). In one exemplary implementation, the power detector 1402 is implemented using a low-pass filter to perform a low-passing filtering upon the norm signal S_Norm to estimate one power value PV of the input signal S_IN at each of the candidate frequencies in the first operation state S1; in another exemplary implementation, a maximum value of the norm signal S_Norm is found during a predefined period for estimating one power value PV of the input signal S_IN at each of the candidate frequencies in the operation state S1.
The tone arbitrator 1401 selects a candidate frequency (i.e., a specific candidate frequency) from the plurality of candidate frequencies within the predetermined frequency range, where the selected candidate frequency corresponds to a maximum power value PV selected from the power values PV of the input signal S_IN at the plurality of candidate frequencies. The frequency discriminator 1403 determines a frequency deviation Freq_Dev according to the phase signal S_Phase. Specifically, the frequency deviation Freq_Dev can be expressed as follows:
The frequency discriminator 1403 is therefore used to find an estimated value substantially equal to or close to the frequency deviation Freq_Dev expressed in equation (3). An exemplary implementation of the frequency discriminator 1403 is shown in
Please refer to
In this embodiment, since the objective is to find a tone or a carrier with a maximum power within a predetermined frequency range, the tone arbitrator 1401 therefore picks a specific candidate frequency from the candidate frequencies, and the estimated power value PV of the input signal S_IN at the specific candidate frequency is larger than the estimated power value PV of the input signal S_IN at other candidate frequency. In more detail, the specific candidate frequency is the closest to the tone (or the carrier) than other candidate frequencies.
For example, in
However, some constraints must be put before determining the target frequency. On one hand, Doppler effect and multi-path fading might seriously degrade the received signal and leads to an unstable connection; on the other hand, as shown in
In order to avoid the undesired false signal detection, certain predetermined criteria must be put upon the frequency deviation Freq_Dev and the power value PV of the input signal S_IN. In this embodiment, the tone arbitrator 1401 further processes the frequency deviation Freq_Dev to derive an average of the frequency deviation Freq_Dev and a variance of the frequency deviation Freq_Dev. In the first operation state S1, the power value PV corresponding to the specific candidate frequency must exceed a power threshold; meanwhile, the average of the frequency deviation Freq_Dev and the variance of the frequency deviation Freq_Dev corresponding to the specific candidate frequency are examined whether they satisfy the predetermined criteria (i.e., the average of the frequency deviation Freq_Dev and the variance of the frequency deviation Freq_Dev do not exceed an average threshold and a variance threshold, respectively). The tone arbitrator 1401 sets the target frequency by a default frequency when the power value PV corresponding to the specific candidate frequency does not exceed the power threshold or the frequency deviation Freq_Dev do not satisfies the aforementioned predetermined criteria; and the tone arbitrator 1401 sets the target frequency by an adjusted candidate frequency (i.e., the frequency offset value plus the specific candidate frequency) when the power value PV corresponding to the specific candidate frequency exceeds the power threshold and the frequency deviation Freq_Dev satisfies the aforementioned predetermined criteria.
In the second operation state S2, given that the aforementioned criteria are all fulfilled and the target frequency is set to be the adjusted candidate frequency (i.e., the frequency offset value plus the specific candidate frequency), the power value PV corresponding to the adjusted candidate frequency and the frequency deviation Freq_Dev corresponding to the adjusted candidate frequency thereof still have to fulfill certain criteria to ensure proper detection. For example, the carrier tracking system 100 in
Please refer to
The aforementioned average of the frequency deviation Freq_Dev (i.e., Freq_Dev_Mean in
As shown in
In view of disclosure above, the method employed by the carrier tracking system 100 for tracking a tone within a predetermined frequency range can be briefly summarized using following steps: generating a Cartesian signal by mixing an input signal and sine and cosine signals; generating the sine and cosine signals based on a frequency bias signal; converting the Cartesian signal into a polar signal having a norm signal and a phase signal; selecting a candidate frequency within the predetermined frequency range based on the norm signal and a estimated frequency deviation corresponding to the candidate frequency based on the phase signal; and generating the frequency bias signal based on the target frequency (which is generated based on the candidate frequency and the estimated frequency deviation) and a loop error.
In summary, a carrier tracking system and method for tracking a tone within a predetermined frequency range are disclosed. With the help of a coordinate converter, the proposed carrier tracking system and method are capable of estimating a frequency very close to the target frequency quickly and avoiding misjudging a false signal as the target signal by utilizing the RFE process. In this way, tone-like signal (a carrier or a tone) with a maximum power within a predetermined frequency range could be synchronized quickly and accurately, leading to an improvement in the overall system performance.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention.