# Patent

## Title
System and method for suppression of RFI interference

## Abstract

A system and method for suppressing RFI receives a differential input signal Vd, and a signal Vcm which varies with the common mode component of Vd. Vcm is phase-shifted and then amplified with a programmable gain G1 to produce an output VA1. A subtractor produces an output Vsub which varies with Vd−VA1. Vsub is amplified with a programmable gain G2 to produce an output VA2. An analog input signal processing circuit receives VA2 at an input which has an associated maximum dynamic range. A processor adjusts G2 such that VA2 covers the maximum dynamic range, adjusts the phase shift and G1 to minimize VA2, and adjusts G2 to increase VA2 such that it again covers the maximum dynamic range. The RFI in Vd is substantially subtracted out, thereby enabling the full dynamic range of the analog input signal processing circuit to be employed in receiving Vd.

## Background
BACKGROUND OF THE INVENTION
1. Field of the Invention
This invention relates to the field of radio frequency interference (RFI) suppression, and particularly to systems and methods for suppressing RFI in wired transmission systems.
2. Description of the Related Art
The performance of wired data transmission systems can be degraded by RFI which originates from local amateur radio operators. For example, a high-speed Internet access system employing VDSL modems might occupy a bandwidth of up to 12 MHz; amateur radio bands are allocated frequency bands between 1.8 MHz and 30 MHz. A signal received by the modem is typically fed to the input of an analog-to-digital converter (ADC). Due in part to poor balance of the twisted pairs making up the data transmission system, RFI from a local ham operator can be coupled into the ADC input. The RFI power may be 10–20 dB larger than the received signal power, thereby significantly degrading the dynamic range of the ADC.
Some modems employ a receive (RX) filter designed to attenuate any signals beyond 12 MHz. However, such filters are generally less than 100% effective; as such, RFI due to amateur radio frequencies between 1.8 MHz and 30 MHz can adversely affect modem performance.
SUMMARY OF THE INVENTION
A system and method for suppressing RFI is presented, which significantly reduces RFI present in a data signal applied to the analog input of a receiving system.
The present system receives a differential input signal Vd at a first input, and a signal Vcm which varies with the common mode component of Vd at a second input. Signal Vcm is compared with a predetermined threshold, and an “enable” flag is set when Vcm is greater than the threshold—thereby indicating the presence of RFI in differential input signal Vd and Vcm.
Vcm is phase shifted by a programmable amount Φ1, and the phase-shifted output is provided to a first amplifier having a programmable gain G1 which produces an output VA1 that varies with Vcm*G1. A subtractor circuit receives Vd at a first input and VA1 at a second input and produces an output Vsub which varies with Vd−VA1. A second amplifier having a programmable gain G2 receives Vsub at an input and produces an output VA2 which varies with Vsub*G2.
An analog input signal processing circuit, typically an analog-to-digital converter (ADC), receives VA2 at an input which has an associated maximum dynamic range. A processor, typically a digital signal processor (DSP), receives the enable flag and a signal which varies with VA2—such as the output of an ADC—at respective inputs. The processor is arranged to:
adjust programmable gain G2 such that VA2 covers the analog input signal processing circuit's maximum dynamic range;
adjust, if the enable flag is set, programmable phase Φ1 and programmable gain G1 to minimize VA2;
adjust, after VA2 is minimized, programmable gain G2 to increase VA2 such that it again covers the maximum dynamic range.
When so arranged, most or all of the RFI present in input signal Vd is subtracted out, thereby enabling the full dynamic range of the analog input signal processing circuit to be employed in receiving VA2.
Further features and advantages of the invention will be apparent to those skilled in the art from the following detailed description, taken together with the accompanying drawings.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram illustrating the basic principles of the present RFI suppression system.
FIG. 2 is a flow chart illustrating one possible sequence of steps with which the present RFI suppression method might be practiced.



DETAILED DESCRIPTION OF THE INVENTION
The present system reduces undesirable RFI present in a data signal received by, for example, a VDSL modem. The RFI typically originates with local amateur radio operators, which operates on frequency bands from 1.8 MHz to 30 MHz, though the invention is applicable to RFI in any frequency band. Reduction or cancellation of undesirable RFI is needed to ensure that the full dynamic range of the analog receiving circuitry is available to the incoming data signal.
A diagram illustrating the principles of the present system is shown in FIG. 1. A differential input signal Vd is received at an input 10. A signal Vcm which varies with the common mode component of differential input signal Vd is received at an input 12. In a typical application such as a VDSL modem, a transmitted differential input signal is normally coupled to the modem through a hybrid circuit which includes a transformer. Vcm could be obtained from a center tap on the primary side of the transformer, with Vd being the differential signal across the secondary side. Undesirable RFI may be coupled into Vd and Vcm.
When RFI is present—
Vd is given by:

Vd=Vdmt+Vrfid+Vn1,

where Vdmt is the desired differential input signal, Vrfid is the differential component of the RFI present in Vd, and Vn1 is an uncorrelated noise signal.

Vcm is given by:

Vcm=Vdmtc+Vrfic+Vn2,

where Vdmtc is the common mode part of the desired input signal, Vrfic is the common mode part of the RFI signal, and Vn2 is an uncorrelated noise signal.

The differential and common mode components of the RFI signal can be approximated by:

Vrfid=Vda·cos(ωt+Φd) and Vc=Vc·cos(ωt+Φc),

where Vda and Vc are the amplitudes of the differential and common mode components of the RFI present in Vd and Vcm, respectively, ω is the frequency of the RFI signal, and Φd and Φc are the phase differences between Vrifd and Vrfic, respectively, and the RFI signal. Then,





  
    V
    c
  
  =
  
    
      
        
          5.48
          ⁢
          
            
              P
              t
            
          
        
        d
      
      ⁢
      
        
      
      ⁢
      and
      ⁢
      
        
      
      ⁢
      
        V
        da
      
    
    =
    
      
        5.48
        ⁢
        
          
            P
            t
          
        
      
      
        d
        ·
        b
      
    
  




where Pt is the RF power transmitted, d is the distance of the modem input cable from the amateur radio transmitter, and b is the “balance” of the cable. “Balance” of the cable is a function of frequency, and reduces at higher frequencies. As a typical example, Pt might be 400 W, d might be 10 m, and b might be 30 db. Then, Vrfid will be about 11 volts, and Vrfic will be about 360 mv. Therefore, in the presence of RFI, Vrfid and Vrfic will be much larger than the desired signal (typically around 60–80 mv for a cable length of 1.5 km). As such, small noise sources Vdmtc, Vn1 and Vn2 can be neglected.

Signal Vcm is preferably fed to a programmable phase shifter circuit 13 which introduces a phase shift of Φ1 into Vcm. Φ1 is preferably varied by means of a control signal ch_PH provided to phase shifter 13; circuit 13 is arranged to vary Φ1 when ch_PH is set, and to hold Φ1 at its current setting when ch_PH is reset. The phase-shifted output of phase shifter 13 is connected to an amplifier A1 having a programmable gain G1 which produces an output VA1 that varies with Vcm*G1. Gain G1 is preferably varied by means of a control signal ch_G1 provided to A1; A1 is arranged to vary G1 when ch_G1 is set, and to hold G1 at its current setting when ch_G1 is reset. Differential input signal Vd is connected to a first input of a subtractor circuit 14, and VA1 is connected to the subtractor's second input, such that the subtractor produces an output Vsub which varies with Vd−VA1. Signal Vsub is connected to an amplifier A2 having a programmable gain G2, which produces an output VA2 that varies with Vsub*G2. Gain G2 is preferably varied by means of a control signal ch_G2 provided to A2; A2 is arranged to vary G2 when ch_G2 is set, and to hold G2 at its current setting when ch_G2 is reset. In the examples herein, the control signals are “set” when they are at a logic “1”, and are “reset” when they are at a logic “0”; of course, this might be reversed in some applications.
Signal VA2 is provided to the input 15 of an analog input signal processing circuit 16 which has an associated maximum dynamic range. When RFI is present in signal VA2, it takes up some of this dynamic range, and thereby reduces the dynamic range available for the desired input signal. It is this dynamic range that the invention is designed to take full advantage of, by reducing the RFI present in VA2.
When arranged as shown (and with Vdmtc, Vn1 and Vn2 neglected), signal VA2 is given by:

VA2=G2(Vdmt+Vda·cos(ωt+Φd)−(G1(Vc·cos(ωt+Φc+Φ1)))

The RMS value of signal VA2 for a given Vdmt signal will be a minimum when the differential and common mode components of the RFI are cancelled. To achieve this, the phase Φ1 and the gain Gi need to be adjusted such that Φc+Φ1=Φd and





  
    G1
    =
    
      
        V
        da
      
      
        V
        c
      
    
  
  ;




the RMS value of signal VA2 will be higher for all other values of Φ1 and G1. The present invention controls the phase Φ1 and the gain G1 of amplifier A1 to minimize the RMS value of signal VA2. If RFI is present, there will be a common mode RFI component present in Vcm, and a differential component present in Vd. The common mode and differential RFI components present in Vcm and Vd are highly correlated. Thus, gain applied to Vcm (G1) is adjusted so that the magnitudes of the common mode and differential RFI components match, so that when the gain-adjusted common mode component is subtracted from the differential component, the RFI in the resulting signal is substantially reduced or eliminated.

If there is RFI present, then the common mode component Vdmtc of the desired signal will be attenuated by the gain G1 of PGA1, and there will be limited degradation of desired signal Vdmt. This is because, after attenuation, the common mode component Vdmtc will be much smaller than Vdmt, and thus the subtraction will have a very limited effect on Vdmt.
The invention preferably provides a means of disabling the RFI cancellation scheme when the RFI present is less than a predetermined threshold, so that the scheme does not add noise to the signal path or reduce the magnitude of desired signal Vdmt. This is accomplished by comparing Vcm with a threshold voltage (Vth) selected to indicate the presence of RFI, using a comparison circuit 19 such as a comparator A3 (as shown in FIG. 1), for example. When Vcm>Vth, an “enable flag” ENB is set—indicating the presence of RFI; conversely, when Vcm<Vth, ENB is reset (i.e., set to a logic “0” in the examples herein).
The invention includes a processor 20, typically a DSP, which receives ENB and outputs control signals ch_G2, ch_G1 and ch_PH. When ENB is reset, processor 20 disables the RFI cancellation scheme. Disabling the cancellation scheme comprises resetting control signals ch_G1 and ch_PH so that G1 and Φ1 become fixed. Disabling the cancellation scheme preferably also comprises disabling subtractor circuit 14, such that Vsub=Vd−VA1 when ENB is set, and Vsub=Vd when ENB is not set; this might be accomplished with a control signal ENB2 generated by the DSP, which tracks the state of ENB.
The system operates as follows. An RMS voltage value VRMS(max) corresponding to the full dynamic range of the input 15 of analog input signal processing circuit 16 is ascertained. Circuit 16 typically produces an output 18 which varies with the voltage applied to its input. The RMS voltage VA2(RMS) of signal VA2 applied to input 15 is compared with VRMS(max); this is preferably accomplished by processor 20, which receives the output 18 of analog input signal processing circuit 16 and compares it with a stored value representing VRMS(max). When VA2(RMS)=VRMS(max), no action is necessary. However, if VA2(RMS)≠VRMS(max), processor 20 sets control signal ch_G2, causing the gain G2 of amplifier A2 to vary. G2 is varied until VA2(RMS)=VRMS(max), at which point ch_G2 is reset, thereby locking in G2.
Now, if enable flag ENB is set, processor 20 sets control signal ch_PH, causing the phase shift Φ1 introduced by programmable phase shifter 13 to vary. Φ1 is varied until a minimum value for VA2(RMS) is achieved, at which point ch_PH is reset. Control signal ch_G1 is then set, causing the gain G1 of amplifier A1 to vary. G1 is varied until a minimum value for VA2(RMS) is achieved, at which point ch_G1 is reset. Φ1 and G1 are varied iteratively until the lowest possible minimum value for VA2(RMS) is achieved, at which point G1 and Φ1 are locked in. Because only Φ1 and G1 are being adjusted, any reduction in VA2(RMS) as Φ1 and G1 are varied is largely due to RFI being subtracted from Vd by subtractor 14.
Then, processor 20 again sets control signal ch_G2, causing the gain G2 of amplifier A2 to vary until VA2(RMS)=VRMS(max), at which point ch_G2 is reset. By so doing, most or all of the RFI present in input signal Vd is subtracted from Vd by subtractor circuit 14.
Comparison circuit 19 might alternatively be implemented with a one-bit or a multiple-bit ADC, with Vth connected to the ADC's reference voltage input and Vcm connected to its analog input. In some applications, it might be desirable for the system to have a variable threshold voltage Vth. This could be accommodated by using a multiple-bit ADC that receives a fixed threshold voltage Vth, with processor 20 arranged to interpret the ADC's digital output based on the desired threshold voltage. If using a one-bit ADC, Vth itself would have to vary.
A preferred method of reducing RFI in accordance with the present invention is illustrated in FIG. 2; the steps shown in the flow chart would be employed with a system configuration similar to that shown in FIG. 1. In step 30, the RMS value of the signal applied to the analog input signal processing circuit is measured; in the preferred embodiment, the analog input signal processing circuit is an ADC, and a DSP monitors the ADC's digital output (which varies with the ADC's analog input) to determine the RMS value of the ADC's input signal. A DSP typically employs an algorithm to perform the measurement, which determines the RMS value for a “frame” having a defined duration.
Next, in step 32, the measured RMS value is compared with a predetermined value. If the RMS value is equal to the predetermined value—indicating that the applied signal covers the analog input's associated dynamic range—nothing needs to be done, and no changes are made. The gain of amplifier A2 is held constant by keeping ch_G2=0 (step 33), and the RMS value of the applied signal continues to be measured (step 30).
If the measured RMS value of the applied signal is not equal to the predetermined value, the applied signal is amplified with the gain required to make the applied signal equal to the RMS value (step 34). With respect to the system shown in FIG. 1, this is accomplished by setting control signal ch_G2 such that the gain G2 of amplifier A2 is varied until the RMS value of the applied signal is equal to the predetermined RMS value. If there is no RFI present in the applied signal, adjusting G2 just scales the signal based on its “PAR” (peak-to-average ratio) value. If RFI is present in the applied signal, adjusting G2 results in the RMS value of the desired signal being less than the predetermined value, though this is corrected in the subsequent steps.
As noted above, an enable flag ENB is set when Vcm is greater than a threshold value Vth, indicating the presence of RFI. In step 36, the state of the enable flag is determined, typically by the processor. If the flag is reset, indicating that Vcm<Vth, then control reverts to step 30. If ENB is set, Vcm is phase-shifted by a Φ1 that is adjusted until the RMS value of VA2 is at a minimum (step 38). With respect to the system shown in FIG. 1, this is accomplished by setting control signal ch_PH such that programmable phase shifter 13 varies Φ1 until VA2 is minimized. This will be an iterative process, with Φ1 adjusted and RMS value VA2 measured (step 40) (preferably by monitoring the digital output of ADC 16) until the minimum RMS value is achieved (step 42). When the minimum RMS value is achieved, control signal ch_PH is reset.
Then, the phase-shifted Vcm is amplified with a gain G1 that is adjusted until the RMS value of VA2 is at a minimum (step 44). With respect to the system shown in FIG. 1, this is accomplished by setting control signal ch_G1 such that the gain of amplifier A1 is varied until VA2 is minimized. This will be an iterative process, with gain G1 adjusted and RMS value VA2 measured (step 46) (preferably by monitoring the digital output of ADC 16) until the minimum RMS value is achieved (step 48), at which point control signal ch_G1 is reset (step 50)—thereby locking in gain G1. Steps 38, 40, 42, 44, 46, 48 and 50 may be repeated until the values of G1 and Φ1 which provide the lowest possible RMS value are identified. By achieving the minimum RMS value by adjusting Φ1 and the gain of A1—which affects only Vcm and not Vd—the RFI component of VA2 is significantly reduced, leaving only the desired signal.
Note that it is not essential that the present system and method include the ability to phase-shift Vcm. If Φd and Φc are small or equal, little to no phase-shifting is required to substantially cancel the RFI. However, in most cases superior RFI cancellation will be achieved when a phase-shifting capability is included. The method illustrated in FIG. 2 is merely a preferred method; many other process sequences could be employed to implement the invention. It is only essential that the common mode component of the differential input signal be amplified and subtracted from the differential input signal so as to minimize the resulting difference signal, and then increasing the gain applied to the resulting difference signal to cover the dynamic range of the receiver's analog input.
While particular embodiments of the invention have been shown and described, numerous variations and alternate embodiments will occur to those skilled in the art. Accordingly, it is intended that the invention be limited only in terms of the appended claims.

## Claims

1. A radio frequency interference (RFI) suppression system, comprising:
a first input for receiving a differential input signal Vd;
a second input for receiving a signal Vcm which varies with the common mode component of said differential input signal;
a first amplifier PGA1 having a programmable gain G1 which varies in response to a first control signal and which receives Vcm at an input and produces an output VA1 which varies with Vcm*G1;
a subtractor circuit which receives Vd at a first input and VA1 at a second input and produces an output Vsub which varies with Vd−VA1;
a second amplifier PGA2 having a programmable gain G2 which varies in response to a second control signal and which receives Vsub at an input and produces an output VA2 which varies with Vsub*G2; and
a processor which receives a signal that varies with VA2 at an input and is arranged to:
provide said second control signal to adjust programmable gain G2 such that VA2 equals a predetermined value;
provide said first control signal to adjust programmable gain G1 to minimize VA2; and
provide, after VA2 is minimized, said second control signal to adjust programmable gain G2 to increase VA2 such that it equals said predetermined value.

2. The RFI suppression system of claim 1, further comprising a programmable phase-shifting circuit interposed between Vcm and the input of amplifier PGA1 which phase shifts Vcm by an amount Φ1 in response to a third control signal, said processor further arranged to provide said third control signal to adjust programmable phase shift Φ1 to minimize VA2.

3. A radio frequency interference (RFI) suppression system, comprising:
a first input for receiving a differential input signal Vd;
a second input for receiving a signal Vcm which varies with the common mode component of said differential input signal;
a programmable phase shifter circuit which receives Vcm at an input, introduces a phase shift Φ1 in response to a first control signal, and produces a version of Vcm phase-shifted by Φ1 at its output;
a comparison circuit which sets an enable flag when Vcm is greater than a predetermined threshold Vth;
a first amplifier PGA1 having a programmable gain G1 which varies in response to a second control signal and which receives said phase-shifted version of Vcm at an input and produces an output VA1 which varies with Vcm*G1;
a subtractor circuit which receives Vd at a first input and VA1 at a second input and produces an output Vsub which varies with Vd−VA1;
a second amplifier PGA2 having a programmable gain G2 which varies in response to a third control signal and which receives Vsub at an input and produces an output VA2 which varies with Vsub*G2;
an analog input signal processing circuit which receives VA2 at an input which has an associated maximum dynamic range; and
a processor which receives a signal which varies with VA2 at an input and is arranged to:
provide said third control signal to adjust programmable gain G2 such that VA2 covers said maximum dynamic range;
provide, if said enable flag is set, said first control signal to adjust programmable phase shift Φ1 to minimize VA2;
provide, if said enable flag is set, said second control signal to adjust programmable gain G1 to minimize VA2; and
provide, after VA2 is minimized, said third control signal to adjust programmable gain G2 to increase VA2 such that it covers said maximum dynamic range.

4. The RFI suppression system of claim 3, wherein said analog input signal processing circuit is an analog-to-digital converter (ADC) which receives VA2 at its analog input and produces a digital word at its digital output which represents VA2, said digital word being said signal which varies with VA2.

5. The RFI suppression system of claim 4, wherein said processor is a digital signal processor (DSP) which receives said digital word and said enable flag at respective inputs and which produces said first, second and third control signals at respective outputs.

6. The RFI suppression system of claim 3, wherein said associated maximum dynamic range corresponds to a predetermined RMS voltage, said processor arranged such that:
programmable gain G2 is adjusted to make VA2 equal to said predetermined RMS voltage;
programmable phase shift Φ1, if said enable flag is set, is adjusted to minimize the RMS voltage of VA2;
programmable gain G1, if said enable flag is set, is adjusted to minimize the RMS voltage of VA2; and
programmable gain G2, after the RMS voltage of VA2 is minimized, is adjusted to make VA2 equal to said predetermined RMS voltage.

7. The RFI suppression system of claim 6, wherein said system is subjected to RFI, said system arranged such that VA2 is approximately given by:


VA2=G2(Vdmt+Vda·cos(ωt+Φd)−(G1(Vc·cos(ωt+Φc+Φ1)))


where Vdmt is the desired differential input signal, Vda and Vc are the amplitudes of the differential and common mode components of the RFI present in Vd and Vcm, respectively, ω is the frequency of the RFI signal, and Φd and Φc are the phase differences between Vrfid and Vrfic, respectively, and the RFI signal, where Vrfid is the differential component of the RFI present in Vd, and Vrfic is the common mode component of the RFI present in Vcm, such that the RMS value of signal VA2 for a given Vdmt signal is a minimum when Φc+Φ1=Φd and




  G1
  =
  
    
      
        V
        da
      
      
        V
        c
      
    
    .

8. The RFI suppression system of claim 3, wherein said subtractor circuit includes an enable input which is coupled to said enable flag, said subtractor circuit arranged such that Vsub=Vd−VA1 when said enable flag is set and Vsub=Vd when said enable flag is not set.

9. The RFI suppression system of claim 3, wherein said predetermined threshold is selected to indicate the presence of RFI in said differential input signal Vd.

10. The RFI suppression system of claim 3, wherein said comparison circuit is a comparator which receives Vth and Vcm at respective inputs.

11. The RFI suppression system of claim 3, wherein said comparison circuit is an analog-to-digital converter (ADC) which receives Vth at its reference voltage input and Vcm at its analog input.

12. The RFI suppression system of claim 11, wherein said ADC is a multiple-bit ADC, said processor arranged to interpret said ADC's digital output based on a desired Vcm value.

13. A radio frequency interference (RFI) suppression system, comprising:
a first input for receiving a differential input signal Vd which is approximately given by:
Vd=Vdmt+Vrfid, where Vdmt is the desired differential input signal and Vrfid is the differential component of the RFI present in Vd when said system is subjected to RFI; and
a second input for receiving a signal Vcm which varies with the common mode component of said differential input signal which is approximately given by:

Vcm=Vrfic, where Vrfic is the common mode component of the RFI present in Vcm;
a programmable phase shifter circuit which receives Vcm at an input, introduces a phase shift Φ1 in response to a first control signal, and produces a version of Vcm phase-shifted by Φ1 at its output;
a comparison circuit which sets an enable flag when Vcm is greater than a predetermined threshold;
a first amplifier PGA1 having a programmable gain G1 which varies in response to a second control signal and which receives said phase-shifted version of Vcm at an input and produces an output VA1 which varies with Vcm*G1;
a subtractor circuit which receives Vd at a first input and VA1 at a second input and produces an output Vsub, said subtractor circuit including an enable input which is coupled to said enable flag, said subtractor circuit arranged such that Vsub=Vd−VA1 when said enable flag is set and Vsub=Vd when said enable flag is not set;
a second amplifier PGA2 having a programmable gain G2 which varies in response to a third control signal and which receives Vsub at an input and produces an output VA2 which varies with Vsub*G2, said system arranged such that VA2 is approximately given by:


VA2=G2(Vdmt+Vda·cos(ωt+Φd)−(G1(Vc·cos(ωt+Φc+Φ1)))



where Vda and Vc are the amplitudes of the differential and common mode components of the RFI present in Vd and Vcm, respectively, ω is the frequency of the RFI signal, and Φd and Φc are the phase differences between Vrfid and Vrfic, respectively, and the RFI signal;
such that the RMS value of signal VA2 for a given Vdmt signal is a minimum when Φc+Φ1=Φd and





  
    G1
    =
    
      
        V
        da
      
      
        V
        c
      
    
  
  ;



an analog-to-digital converter (ADC) which has an associated maximum dynamic range which corresponds to a predetermined RMS voltage and which receives VA2 at its analog input and produces a digital word at its digital output which represents VA2; and
a digital signal processor (DSP) which receives said digital word and said enable flag at respective inputs and is arranged to:
provide said third control signal to adjust programmable gain G2 to make VA2 equal to said predetermined RMS voltage;
provide, if said enable flag is set, said first control signal to adjust programmable phase shift Φ1 to minimize the RMS voltage of VA2;
provide, if said enable flag is set, said second control signal to adjust programmable gain G1 to minimize the RMS voltage of VA2; and
provide, after the RMS voltage of VA2 is minimized, said third control signal to adjust programmable gain G2 to make VA2 equal to said predetermined RMS voltage.

14. The RFI suppression system of claim 13, wherein said predetermined threshold is selected to indicate the presence of RFI in said differential input signal Vd.

15. A method of suppressing radio frequency interference (RFI), comprising:
receiving a differential input signal Vd;
receiving a signal Vcm which varies with the common mode component of said differential input signal;
amplifying Vcm with a programmable gain G1 to produce an output VA1 which varies with Vcm*G1;
subtracting VA1 from Vd to produce an output Vsub;
amplifying Vsub with a programmable gain G2 to produce an output VA2 which varies with Vsub*G2;
adjusting programmable gain G2 such that said VA2 equals a predetermined threshold;
adjusting programmable gain G1 to minimize VA2; and
adjusting programmable gain G2 to increase VA2 such that it covers said maximum dynamic range.

16. The method of claim 15, further comprising phase-shifting signal Vcm by an amount Φ1 prior to amplifying it with programmable gain G1, and adjusting Φ1 to minimize VA2.

17. A method of suppressing radio frequency interference (RFI), comprising:
receiving a differential input signal Vd;
receiving a signal Vcm which varies with the common mode component of said differential input signal;
comparing Vcm with a predetermined threshold and setting an enable flag when Vcm is greater than said predetermined threshold;
phase-shifting signal Vcm by a programmable phase shift amount Φ1;
amplifying said phase-shifted signal Vcm with a programmable gain G1 to produce an output VA1 which varies with Vcm*G1;
subtracting VA1 from Vd to produce an output Vsub;
amplifying Vsub with a programmable gain G2 to produce an output VA2 which varies with Vsub*G2;
receiving VA2 at an input which has an associated maximum dynamic range;
adjusting programmable gain G2 such that said VA2 covers said maximum dynamic range;
adjusting, if said enable flag is set, programmable phase shift amount Φ1 to minimize VA2;
adjusting, if said enable flag is set, programmable gain G1 to minimize VA2; and
adjusting, after VA2 is minimized, programmable gain G2 to increase VA2 such that it covers said maximum dynamic range.

18. The method of claim 17, wherein said associated maximum dynamic range corresponds to a predetermined RMS voltage;
said programmable gain G2 adjusted to make VA2 equal to said predetermined RMS voltage;
said programmable phase shift amount Φ1, if said enable flag is set, adjusted to minimize the RMS voltage of VA2;
said programmable gain G1, if said enable flag is set, adjusted to minimize the RMS voltage of VA2; and
said programmable gain G2, after the RMS voltage of VA2 is minimized, adjusted to make VA2 equal to said predetermined RMS voltage.

19. The method of claim 17, wherein said differential input signal Vd is subjected to RFI, said method arranged such that VA2 is approximately given by:


VA2=G2(Vdmt+Vda·cos(ωt+Φd)−(G1(Vc·cos(ωt+Φc+Φ1)))


where Vdmt is the desired differential input signal, Vda and Vc are the amplitudes of the differential and common mode components of the RFI present in Vd and Vcm, respectively, ω is the frequency of the RFI signal, and Φd and Φc are the phase differences between Vrfid and Vrfic, respectively, and the RFI signal, where Vrfid is the differential component of the RFI present in Vd, and Vrfic is the common mode component of the RFI present in Vcm, such that the RMS value of signal VA2 for a given Vdmt signal is a minimum when Φc+Φ1=Φd and




  G1
  =
  
    
      
        V
        da
      
      
        V
        c
      
    
    .

20. The method of claim 17, wherein said subtracting is only performed when said enable flag is set, such that Vsub=Vd−VA1 when said enable flag is set and Vsub=Vd when said enable flag is not set.

21. The method of claim 17, wherein said predetermined threshold is selected to indicate the presence of RFI in said differential input signal Vd.