The present invention relates to the field of communications and more particularly relates to an FM stereo (MPX) decoder incorporating a pilot recovery phase locked loop (PLL) with an auxiliary Costas loop based pilot to stereo component phase correction circuit able to achieve improved stereo channel separation.
FM stereo demodulation techniques, having been developed in the 1930s, are well known in the art. The signal transmitted over the air is referred as the FM stereo MPX signal. A diagram illustrating the spectral components of a conventional FM stereo MPX signal is shown in
Prior art FM stereo demodulation is achieved by extracting two audio signal paths from the MPX (FM stereo) signal. The demodulation is assisted by the FM stereo indication pilot carrier 16 located at 19 kHz. A stereo decoder takes the demodulated signal and regenerates the stereo component carrier using a phased locked loop (PLL) locked on the pilot tone. It then uses this carrier for demodulation of the stereo audio component (i.e. L−R signal).
A block diagram illustrating an example prior art stereo decoder circuit is shown in
In operation, the MPX stereo signal is input to two paths: a stereo path and a mono path. In the mono path, the MPX signal is simply low pass filtered by LPF 32 which functions to pass the M=L+R mono signal component. In the stereo path, the MPX signal is input to the pilot recovery PLL which functions to recover the stereo carrier from the 19 kHz pilot tone. The MPX signal is multiplied by the quadrature of the recovered pilot tone via multiplier 23. The product then undergoes low pass filtering via LPF 25. This operation generates a signal proportional to the phase error between the reconstructed pilot carrier and the MPX pilot signal. This phase error signal then undergoes loop filtering via loop filter 27 in order to achieve smoothing of unwanted transients. The output of the loop filter is the frequency deviation input to the VCO block 29. The output of the VCO block is the regenerated stereo carrier used to demodulate the stereo signal. The frequency of the recovered stereo carrier signal is also divided by 2 via block 31 and is used to close the loop.
The 38 kHz pilot tone output of the VCO is multiplied with the MPX signal via multiplier 26. The resulting product is then low pass filtered via LPF 28 which functions to pass the S=L−R stereo signal component. The sum and difference of the S and M signals are then generated via summer 30 and difference block 34 to yield the left and right audio channels, respectively.
As described above, a conventional stereo FM radio signal contains a pilot carrier that is used to reconstruct the stereo carrier (which was suppressed at the transmitter) which is then used to modulate the stereo component of the FM signal. The stereo channel separation performance of a stereo FM receiver is limited by the phase accuracy of the reconstructed stereo carrier signal. The stereo carrier phase inaccuracy is expressed as the phase offset between the recovered pilot carrier and the actual true stereo carrier. The phase offset is typically caused by non-idealities at both the transmitter and the receiver. Thus, if there is a phase (i.e. angle) difference between the phase of the transmitted pilot and the stereo pilot used to modulate the stereo component, the full stereo S signal cannot be generated at the receiver. Ideally, the phase difference is zero which permits high stereo separation between L and R channels since the full amplitude of S can be generated. In reality, however, this is not possible.
The stereo FM modulation standard ITU-R recommendation BS.450-3, “Transmission standards for FM sound broadcasting at VHF,” ITU, 1982-1995-2001, allows for a phase inaccuracy in the stereo pilot of up to 3 degrees. Such a phase offset will cause a phase offset of up to 6 degrees on the stereo component carrier, whose frequency is twice that of the pilot frequency. In practice, however, numerous commercial FM broadcast stations exhibit an even greater phase offset then 3 degrees between the stereo indication pilot and the stereo component carrier.
Such a phase offset limits the amount of stereo channel separation the MPX decoder is able to achieve when using the classical phased locked loop (PLL) to recover the stereo carrier from the transmitted pilot wave. The problem is expressed mathematically below.
Consider a transmitted signal y(t):
y(t)=M(t)+sin (ωt+Δθ)+S(t) sin (2ωt) (1)
where
The ITU cited supra defines stereo separation as the following. First, an audio signal is transmitted on the Left audio channel only. Then, the relation between the desired signal received on the Left channel to the signal leakage on the Right channel is the stereo separation.
Thus, in this example, we have:
M(t)=S(t)=L (5)
The desired signal at the Left channel will be:
Similarly, the leakage signal on the Right channel will be:
The total stereo separation is therefore limited by:
Thus, for example, for a phase offset of 3 degrees the stereo separation is limited to 51 dB. A phase offset of just 15 degrees, however, limits the separation to only 23 dB.
Note that the use of narrow-band loop filters in the receiver PLL to improve the total stereo audio quality raises the maximum possible instantaneous phase offset. Note also that most FM radio manufactures assume an ideal transmitted signal and attempt to improve the pilot recovery at the receiver. This, however, is not the case as the ITU allows for a small phase offset, thus leading to lower stereo separation.
There is thus a need for a mechanism that overcomes the disadvantages of the prior art. In particular, there is a need for a FM stereo decoder that is able to improve the stereo separation in an FM stereo radio without degrading the performance of the radio and without significantly increasing the cost and complexity of the radio.
The present invention is a system and method for correcting the residual phase offset between the recovered pilot and the stereo signal. The invention achieves this through the use of an additional loop that locks onto the stereo component itself and which functions to generate a pilot to stereo component phase correction signal. This phase correction signal is added to the recovered stereo carrier phase which is used to generate the recovered stereo pilot carrier. The received MPX signal is multiplied by the recovered stereo pilot carrier to generate the stereo L−R component.
In the example embodiment presented herein, a Costas loop is used generate the pilot to stereo component phase correction signal. Such a loop is activated together with the main pilot recovery PLL that locks onto the pilot tone in the demodulated MPX signal. The loop bandwidth of the Costas loop is significantly narrower than that of the pilot recovery PLL in order that the pilot recovery PLL does not interfere with the Costas loop. The auxiliary Costas loop is thus operative to track and determine a residual phase error of up to several degrees.
Several advantages of the stereo decoder of the present invention comprising a Costas loop include: (1) the stereo separation achieved by FM radios constructed with the stereo decoder of the present invention significantly outperform currently known stereo decoding techniques, (2) the stereo decoder of the present invention enable FM radios to achieve high stereo separation even with an ill-conditioned transmitted signal (i.e. when the pilot phase of the transmitted signal significantly differs from the stereo carrier phase caused by poor stereo separation at the FM station transmitter), and (3) requirements on the quality of the pilot tone recovery can be relaxed, resulting in much faster lock times and better tracking with a simpler and less costly design.
Note that some aspects of the invention described herein may be constructed as software objects that are executed in embedded devices as firmware, software objects that are executed as part of a software application on either an embedded or non-embedded computer system such as a central processing unit (CPU), digital signal processor (DSP), microcomputer, minicomputer, microprocessor, etc. running a real-time operating system such as WinCE, Symbian, OSE, Embedded LINUX, etc. or non-real time operating system such as Windows, UNIX, LINUX, etc., or as soft core realized HDL circuits embodied in an Application Specific Integrated Circuit (ASIC) or Field Programmable Gate Array (FPGA), or as functionally equivalent discrete hardware components.
There is thus provided in accordance with the present invention, a method of decoding a stereo MPX signal, the method comprising the steps of recovering a pilot phase signal from the MPX signal, generating a pilot-to-stereo component phase correction signal as a function of a stereo carrier phase signal and the MPX signal, summing the pilot-to-stereo component phase correction signal with a frequency doubled pilot phase signal to yield the stereo carrier phase signal, mixing the MPX signal with the sine of the stereo carrier phase signal to yield a stereo output signal.
There is also provided in accordance with the present invention, a stereo MPX decoder comprising a pilot recovery phase locked loop (PLL) circuit operative to generate a pilot phase error from an input MPX signal, a pilot to stereo component phase recovery circuit operative to extract the phase difference between the MPX signal and a stereo carrier phase signal to yield a pilot to stereo component phase correction signal, an adder for summing the pilot to stereo component phase correction signal with a frequency doubled pilot phase error signal to yield the stereo carrier phase signal and a mixer operative to multiply the MPX signal with the sine of the stereo carrier phase signal to yield a stereo output signal therefrom.
There is further provided in accordance with the present invention, a stereo MPX decoder comprising a phase locked loop (PLL) circuit adapted to generate a pilot phase error from an input MPX signal, a Costas loop circuit coupled to the PLL and operative to generate a phase correction signal representing the phase difference between a received stereo pilot carrier signal and an expected stereo pilot carrier signal, compensating the received pilot carrier signal with the phase correction signal to yield a stereo carrier phase signal and means for generating a stereo output signal as a function of the stereo carrier phase signal and the MPX signal.
There is also provided in accordance with the present invention, a stereo MPX decoder comprising a phase locked loop circuit comprising a pilot tone phase locked loop (PLL) circuit adapted to generate a pilot phase error from an input MPX signal, a Costas loop circuit coupled to the PLL and operative to generate a phase correction signal representing the phase difference between a received stereo pilot carrier signal and an expected stereo pilot carrier signal, compensating the received pilot carrier signal with the phase correction signal to yield a stereo carrier phase signal, means for generating a stereo output signal as a function of the stereo carrier phase signal and the MPX signal, a filter operative to generate a mono output signal from the MPX signal and a stereo blend circuit operative to generate a left output signal and a right output signal from the mono output signal and the stereo output signal.
There is further provided in accordance with the present invention, a frequency modulation (FM) radio comprising an FM demodulator coupled to an antenna and operative to generate an MPX signal from an RF input signal received therefrom, a MPX stereo decoder coupled to the FM demodulator, the MPX stereo decoder comprising a phase locked loop (PLL) circuit adapted to generate a pilot phase error from an input MPX signal, a Costas loop circuit coupled to the PLL and operative to generate a phase correction signal representing the phase difference between a received stereo pilot carrier signal and an expected stereo pilot carrier signal, compensating the received pilot carrier signal with the phase correction signal to yield a stereo carrier phase signal, means for generating a stereo output signal as a function of the stereo carrier phase signal and the MPX signal, filter means for generating a mono output signal from the MPX signal and a stereo blend circuit operative to generate a left output signal and a right output signal from the mono output signal and the stereo output signal.
The invention is herein described, by way of example only, with reference to the accompanying drawings, wherein:
The following notation is used throughout this document.
The present invention is a system and method for correcting the residual phase offset between the recovered pilot and the stereo signal. The invention achieves this through the use of an additional loop that locks onto the stereo component itself and which functions to generate a pilot to stereo component phase correction signal. This phase correction signal is added to the recovered stereo carrier phase which is used to generate the recovered stereo pilot carrier. The received MPX signal is multiplied by the recovered stereo pilot carrier to generate the stereo L−R component.
In the example embodiment presented herein, a Costas loop is used generate the pilot to stereo component phase correction signal. Such a loop is activated together with the main pilot recovery PLL that locks onto the pilot tone in the demodulated MPX signal. The loop bandwidth of the Costas loop is significantly narrower than that of the pilot recovery PLL in order that the pilot recovery PLL does not interfere with the Costas loop. The auxiliary Costas loop is thus operative to track and determine a residual phase error of up to several degrees.
A high level block diagram illustrating an example FM radio constructed in accordance with the present invention is shown in
The MPX signal is input to the stereo decoder which functions to generate the left and right audio channels. The pilot recovery PLL functions to reconstruct the stereo pilot that was suppressed at the transmitter generate the and auxiliary Costas loop 48 in the stereo decoder function to track and generate a pilot to stereo component phase correction signal that is added to the reconstructed stereo carrier that is used to demodulate the stereo component of the MPX signal. The left audio signal is input to a DAC 49 whose output is fed to left speaker 50. Similarly, the right audio signal is input to a DAC 51 whose output is fed to right speaker 52. Note that any suitable pilot carrier recovery technique may be used with the present invention. The use of a phase locked loop in the embodiments described herein are presented for example purposes only and can be replaced by other suitable pilot carrier recovery techniques, e.g., a narrow bandpass filter, without departing from the scope of the invention.
A block diagram illustrating the FM demodulator portion of the FM radio of the present invention in more detail is shown in
The RF signal from the antenna input is amplified by the LNA, then demodulated to an intermediate frequency (IF) by mixing with the local oscillator. The output of the mixer is enhanced again by the VGA and then low-pass filtered and digitized by the ADC. The digital FM signal is decimated using the CIC filters, demodulated to the baseband via image reject mixer 92, passes through the channel selection filter 94 and is input to the arctan demodulator 96 for FM demodulation. The residual frequency offset is corrected by DC offset rejection circuit 84 and then the MPX signal is decimated again prior to its processing in the stereo decoder block.
The FM stereo decoder of the present invention will now be described in more detail. A block diagram illustrating an example stereo decoder circuit constructed in accordance with the present invention in more detail is shown in
In operation, the MPX stereo signal output of the FM demodulator is input to the LPF 124, PLL module 122 and multiplier 126. The LPF functions to pass the baseband mono M=L+R component. The PLL module functions to recover the stereo pilot carrier originally suppressed at the FM station transmitter. The stereo carrier phase, output from the PLL module, is input to a high precision sine module 125 adapted to generate the sine function of the stereo carrier phase input which is the stereo pilot carrier signal. The pilot carrier signal is then used to demodulate the stereo component of the MPX signal via multiplier 126 resulting in the M=L−R signal which is then filtered by LPF 128. The resulting M and S signals are input to the stereo blend circuit 130 which functions to take the sum and difference resulting in the left and right audio signals. After de-emphasis blocks 132, 134, the left and right audio channels are converted to analog via DACs 49, 51 (
The stereo/mono decision block functions to determine whether the received signal is a stereo MPX signal. This is achieved by estimating the magnitude of the pilot carrier signal. The product of the input MPX signal and the restored pilot carrier is passed through a low pass α filter comprising a single pole digital filter characterized by the following equation:
yn=yn-1+α(xn-yn-1) (9)
If the filtered output is higher than a threshold, a stereo signal is present, otherwise a mono signal is present. Note that, preferably, two different thresholds are applied to the filter output thus providing some hysteresis.
The lock indication signal is output by the PLL module and is generated by rough estimating the phase error variance at the input to the loop filter in the recovery PLL. The phase error variance is estimated by transferring an absolute value of the phase error through a low pass α filter. Hysteresis in the PLL state switching is achieved by using two different thresholds for the lock indication in similar fashion to the stereo/mono indication circuit described supra.
The mono component of the audio signal is input to the pause detector 138. The pause detector functions to discover silent periods in the audio signal by transferring an absolute value of the audio signal through a single-pole low-pass filter. The smoothed audio level is then compared to a threshold to decide whether there is any audio activity. The silent audio periods may then be used to smoothly switch the RF radio station to an alternate frequency if information regarding alternate frequencies is available from the RDS signal.
The operation of the PLL module portion of the stereo decoder will now be described in more detail. A block diagram illustrating an example phase locked loop (PLL) module constructed in accordance with the present invention in more detail is shown in
The pilot recovery DPLL 210, comprises a multiplier 212, low pass filter 214, loop flter 216, NCO 218 and cosine block 220. The DPLL is a digital second order phased locked loop used to recover the suppressed 38 kHz stereo component carrier from the stereo pilot 19 kHz wave to demodulate the stereo component. The pilot recovery loop is locked onto the phase of the pilot carrier component of the input MPX signal. Optinally, a gear-shift mechanism is used to apply different loop bandwidths in the loop's acquisition and tracking stage. The loop filter consists of a proportional gain and an integrator to enable the PLL to track pilot frequency offset with no residual phase offset. A numerically controlled oscillator (NCO) 218 is applied to compute the carrier phase. Note that the NCO is effectively an integrator of the previously calculated loop filter output (i.e. instantaneous frequency offset). A high resolution sine table 125 (
The presence of the pilot carrier wave is used as the indication of stereo component existence. The recovered carrier is coherent (i.e. same zero crossing times) to the transmitted pilot. The mono component (L+R) is generated by low pass filtering the MPX signal via LPF 202. The stereo component demodulated signal is generated by filtering, via LPF 204, the product of the MPX signal and the output of the sine table 208 generated via multipluer 206. Both outputs require low pass filtering in order to remove the pilot carrier wave, the alternate component and the RDS component.
The pilot to stereo component pahse recovery loop or Costas loop 226 comprises a sine block 228, cosine block 230, multipliers 232, 242, 238, low pass filters 236, 246 and loop filter 240. The auxiliary Costas loop 226 is used to correct the phase error between the transmitted pilot and the stereo component carrier. Note that the ITU-R recommendation BS.450-3, cited supra, specifies that a 6 degree phase offset on the stereo component carrier is permitted. The use of the phase correction mechanism of the present invention significantly improves the Left to Right stereo audio channel separation. The pilot to stereo component phase recovery loop (i.e. Costas loop) is prefereably activated immediately after the pilot recovery PLL becomes locked. The loop bandwidth of the Costas loop is prefereably significantly narrower than that of the pilot recovery PLL in order that the Costas loop does not interfere with the pilot recovery PLL. The Costas loop is operative to track a residual phase error as high as several degrees.
In operation, the input MPX signal is multiplied by the cosine (cosine block 220) of the reconstructed pilot phase. The product then undergoes low pass filtering via LPS 214 in order to obtain the phase error. The loop filter 216 filters the phase error signal to obtain a frequency step for the NCO 218. The NCO accumulates its input to produce the pilot phase. This phase is also multiplied by two (block 222) in order to obtain the phase of the stereo component carrier.
The MPX signal is also multiplied (via multipliers 232, 242) by the sine (block 228) and cosine (block 230) of the doubled accumulated NCO angle summed with an angle correction generated by the Costas loop via adder 224. Both results are low pass filtered via LPFs 232, 244 and then multiplied via multiplier 238 to produce a signal proportional to the pilot to stereo component residual phase error. This residual phase error is then filtered by a second loop filter 240, which yields the Costas loop phase correction (i.e. pilot to stereo component phase correction). Note that optionally, the sign of the LPF outputs are used rather than the outputs themselves. Sign generator blocks 236, 246 function to determine the sign of the output of LPFs 234, 244, respectively.
As described supra, the PLL module rebuilds the stereo indication pilot carrier by locking a second order loop on its phase. The signals generated include twice the pilot phase, which is the stereo component carrier phase, the pilot phase itself as well as the loop phase error subsequently input to the loop filter. The phase difference estimation is performed by low pass filtering of the MPX input multiplied by the quadrature of the estimated pilot phase as follows:
Low pass filtering yields
for small θ.
The stereo carrier phase is fed to a sine and cosine function (as cos(x)=sin (x+π/2)) whose outputs are multiplied with the MPX signal. Two low pass filters are used to remove the high frequency components. The sign functions 236, 246 are applied to remove the dependence of the phase correction on signal amplitude. The two signals are then multiplied and passed through a loop filter.
Mathematically, the MPX signal can be described as follows:
MPX(t)=M(t)+sin (2πƒct)+S(t) sin (4πƒct+φ) (11)
where
Assuming the PLL is locked, demodulation by cos (4πƒct) and sin (4πƒct) is performed. Therefore:
sI(t)=M(t) sin (4πƒct)+sin (2πƒct) sin (4πƒct)+S(t) sin (4πƒct+φ) sin (4πƒct) sQ(t)=M(t) cos (4πƒct)+sin (2πƒct) cos (4πƒct)+S(t) sin (4πƒct+φ) cos (4πƒct) (12)
where sI(t) and sQ(t) are the demodulated signals at both inphase and quadrature arms.
Assuming an integrate and dump process yields a good estimate of the DC component of the signal and filters out all the high frequency components, we obtain:
Therefore, multiplying the two yields:
Taking the sign yields:
sign{sII&D(t)sQI&D(t)}=sign{sQI&D(t)}·sign{sII&D(t)}=sign{φ} (15)
Equation 15 reveals that the detector is independent of the signal amplitude and phase and its output is the sign of the error phase φ. Note that since the loop filter contains an integrator it is able to generate a constant phase shift after the error in its input has converged to zero.
Thus, the pilot to stereo component phase recovery mechanism of the present invention effectively and without any prior knowledge about the stereo audio signal locks onto the stereo band residual phase error and corrects for it thus improving the overall signal quality as well as significantly improving stereo channel separation.
A graph illustrating the improved stereo channel separation performance achieved using the stereo decoder circuit of the present invention is shown in
In alternative embodiments, the methods of the present invention may be applicable to implementations of the invention in integrated circuits, field programmable gate arrays (FPGAs), chip sets or application specific integrated circuits (ASICs), DSP circuits, wired or wireless implementations and other communication system products.
It is intended that the appended claims cover all such features and advantages of the invention that fall within the spirit and scope of the present invention. As numerous modifications and changes will readily occur to those skilled in the art, it is intended that the invention not be limited to the limited number of embodiments described herein. Accordingly, it will be appreciated that all suitable variations, modifications and equivalents may be resorted to, falling within the spirit and scope of the present invention.
This application claims priority under 35 U.S.C. § 119(e) to U.S. Provisional Application Ser. No. 60/712,158, filed Aug. 29, 2005, entitled “FM Stereo (MPX) Decoder Phase-Locked Loop (PLL),” incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
60712158 | Aug 2005 | US |