# Patent

## Title
Baseband predistortion method for multicarrier transmitters

## Abstract

A multicarrier transmitter is shown having an embodiment of the invention. Sampling of modulated and amplified signals is done to obtain energy values for four or more symbols. Combining the energy values with the baseband in-phase and quadrature signals of the multiple carriers may result in a set of imbalance parameters, which are subsequently stored. Later baseband in phase and quadrature signals are predistorted or compensated by applying the stored imbalance parameters to produce new compensated baseband in-phase and compensated baseband quadrature signals, which are suitable for input to an inverse fast fourrier transform (IFFT) block.

## Background
FIELD OF THE INVENTION
This invention relates to transmitting and amplifying signals that at the baseband are digital and more specifically to applying a predistortion algorithm to compensate for inaccuracies introduced by amplifiers, filters and modulator in a multicarrier transmitter. The biggest sources of imbalance tends to be baseband filters and the modulator. The biggest source of gain inaccuracy tends to be the power amplifier.
BACKGROUND OF THE INVENTION
Wireless LAN standards require extremely good modulation accuracy and accuracy of transmitted power. Amplitude and phase imbalances between the in-phase and quadrature branches of the transmitter produce errors in the modulated signal. Good balance is difficult to obtain due to component variations and due to the fact that the amplitude and phase of the phase splitting circuits is frequency dependent. In addition imbalances occur because of fluctuating temperatures.
SUMMARY OF THE INVENTION
According to an embodiment of the invention, four data symbols are used as raw data, together with at least four transmitted symbols to arrive at several imbalance parameters, which may be used to modify subsequent data symbols. The four transmitted symbols may be sampled, and serve as the basis for calculating the energy of the four transmitted symbols. A calculation of alpha, epsilon and gain imbalance parameters may be made based on the four data symbols and the energy of the four transmitted symbols. Alpha, epsilon and gain are stored. First quadrature compensating of a next data symbol is done based on the alpha, epsilon, and gain to produce a first quadrature compensated data symbol (FQCDS). Second quadrature compensating the next data symbol is done based on the alpha, epsilon and gain to produce a second quadrature compensated data symbol (SQCDS). First in-phase compensating of the next data symbol is done to produce a first in-phase compensated data symbol (FICDS). Second in-phase compensating of the next data symbol is done to produce a second in-phase compensated data symbol (SICDS).
According to another embodiment of the invention, alpha, epsilon and gain are available preset into appropriate storage. Each data symbol may be compensated based on this preset information. First quadrature compensating of a data symbol is done based on the alpha, epsilon, and gain to produce a first quadrature compensated data symbol. Second quadrature compensating the data symbol is done based on the alpha, epsilon and gain to produce a second quadrature compensated data symbol. First in-phase compensating of the data symbol is done to produce a first in-phase compensated data symbol. Second in-phase compensating of the data symbol is done to produce a second in-phase compensated data symbol.
Among the benefits of the embodiments of the invention, the effects, at least of one time, of the phase and amplitude imbalance may be stored. In addition gain inaccuracies and local oscillator (LO) leakage may be measured and stored in a new form as a set of imbalance parameters.
The first embodiment may routinely sample a transmitter output to obtain timely imbalance parameters (referred to sometimes as α, ε and g) which may be influenced in part, by data sampled at a baseband level, prior to operation of a inverse fast fourrier transform (IFFT). The routine updating of imbalance parameters may reflect a changing environment, including variation of amplification on several frequencies and the effects of changing temperatures.
The embodiments, once having obtained imbalance parameters, may apply those imbalance parameters to predistort or compensate one or more baseband symbols so that the amplified signal output of the amplifier has a narrower range of errors in relation to phase, amplitude and gain.



BRIEF DESCRIPTION OF THE DRAWINGS
The disclosed inventions will be described with reference to the accompanying drawings, which show important sample embodiments of the invention, wherein:
FIG. 1 shows a prior art Orthogonal Frequency Division Multiplexing (OFDM) transmitter;
FIG. 2 shows a transmitter according to an embodiment of the invention; and
FIG. 3 shows a transmitter according to a factory-calibrated embodiment of the invention.



DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
FIG. 1 shows an Orthogonal Frequency Division Multiplexing (OFDM) transmitter 101, which is known in the art. Binary data enters the mapping block 103, which converts the data into N pairs of I and Q signals, wherein N represents the number of subcarrier frequencies that are modulated by the signals These N pairs are fed into Inverse Fast Fourier Transform (IFFT) 106. IFFT 106 produces the SI(t) (or in-phase) signal 107 and the SQ(t) (or quadrature) signal 109 according to the following formula:




  
    
      
        
          
            S
            I
          
          ⁡
          
            (
            t
            )
          
        
        =
        
          
            
              ∑
              
                n
                =
                1
              
              
                N
                /
                2
              
            
            ⁢
            
              
                a
                
                  
                    N
                    /
                    2
                  
                  -
                  n
                
              
              ⁢
              cos
              ⁢
              
                
              
              ⁢
              
                (
                
                  
                    n
                    ⁢
                    
                      
                    
                    ⁢
                    
                      ω
                      c
                    
                    ⁢
                    t
                  
                  -
                  
                    φ
                    
                      
                        N
                        /
                        2
                      
                      -
                      n
                    
                  
                
                )
              
            
          
          +
          
            
              a
              
                
                  N
                  /
                  2
                
                +
                n
                +
                1
              
            
            ⁢
            cos
            ⁢
            
              
            
            ⁢
            
              (
              
                
                  n
                  ⁢
                  
                    
                  
                  ⁢
                  
                    ω
                    c
                  
                  ⁢
                  t
                
                +
                
                  φ
                  
                    
                      N
                      /
                      2
                    
                    +
                    n
                    +
                    1
                  
                
              
              )
            
          
        
      
    
    
      
        [
        1
        ]
      
    
  
  
    
      
        
          
            S
            Q
          
          ⁡
          
            (
            t
            )
          
        
        =
        
          
            
              ∑
              
                n
                =
                1
              
              
                N
                /
                2
              
            
            ⁢
            
              
                -
                
                  a
                  
                    
                      N
                      /
                      2
                    
                    -
                    n
                  
                
              
              ⁢
              
                sin
                ⁡
                
                  (
                  
                    
                      n
                      ⁢
                      
                        
                      
                      ⁢
                      
                        ω
                        c
                      
                      ⁢
                      t
                    
                    -
                    
                      φ
                      
                        
                          N
                          /
                          2
                        
                        -
                        n
                      
                    
                  
                  )
                
              
            
          
          +
          
            
              a
              
                
                  N
                  /
                  2
                
                +
                n
                +
                1
              
            
            ⁢
            
              sin
              ⁡
              
                (
                
                  
                    n
                    ⁢
                    
                      
                    
                    ⁢
                    
                      ω
                      c
                    
                    ⁢
                    t
                  
                  +
                  
                    φ
                    
                      
                        N
                        /
                        2
                      
                      +
                      n
                      +
                      1
                    
                  
                
                )
              
            
          
        
      
    
    
      
        [
        2
        ]
      
    
  




where a, Φ, ω and N are the amplitude, phase and the frequency of the carriers, and N is the number of subcarriers, respectively. Digital to analog converter (DAC) 111 converts SI(t) 107 to analog. Similarly DAC 113 converts Sq(t) 109 to analog. The analog signals enter the modulator 150 and are subsequently amplified by amplifier 151. The modulator may be a direct conversion-type of modulator.
FIG. 2 shows a transmitter according to an embodiment of the invention. Directional coupler 201 may obtain the waveform as amplified by amplifier, that is a transmitted symbol. Subsequently transmitted symbols are next symbols. The signal is provided to a squarer 203, which may be an analog device. An analog to digital converter follows 205. The signal may be integrated over the duration of a transmitted symbol using integrator 207, to provide an energy value 209 or energy of the transmitted symbol according to the following equation:




  
    
      
        
          
            P
            k
          
          =
          
            
              ∫
              0
              
                T
                s
              
            
            ⁢
            
              
                
                  s
                  
                    o
                    ,
                    k
                  
                  2
                
                ⁡
                
                  (
                  t
                  )
                
              
              ⁢
              
                d
                t
              
            
          
        
        ,
      
    
    
      
        [
        3
        ]
      
    
  




The term k represents the symbol number and Ts is the duration of one symbol. The energy 209 of four transmitted symbols thus is P1, P2, P3, and P4.
Amplitude ak,n and phase Φk,n of subcarrier number n may be calculated as follows by S-calc 245:




  
    
      
        
          
            a
            
              k
              ,
              n
            
          
          =
          
            
              
                d
                
                  I
                  ,
                  k
                  ,
                  n
                
                2
              
              +
              
                d
                
                  Q
                  ,
                  k
                  ,
                  n
                
                2
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            φ
            
              k
              ,
              n
            
          
          =
          
            arctan
            ⁡
            
              (
              
                
                  d
                  
                    Q
                    ,
                    k
                    ,
                    n
                  
                
                
                  d
                  
                    I
                    ,
                    k
                    ,
                    n
                  
                
              
              )
            
          
        
      
    
    
      
        [
        4
        ]
      
    
  




where ak,n and phase Φk,n are the amplitude of subcarrier n and symbol k, respectively. Di,k,n and d Q,k,n are the subcarrier in-phase and quadrature signals respectively for subcarrier n and symbol k.
S-calc 245 may calculate S parameters for the four symbols over the set of subcarriers as follows:




  
    
      
        
          S
          
            1
            ,
            k
          
        
        =
        
          
            
              ∑
              
                n
                =
                1
              
              N
            
            ⁢
            
              (
              
                
                  d
                  
                    I
                    ,
                    k
                    ,
                    n
                  
                  2
                
                +
                
                  d
                  
                    Q
                    ,
                    k
                    ,
                    n
                  
                  2
                
              
              )
            
          
          -
          
            2
            ⁢
            
              
                ∑
                
                  n
                  =
                  1
                
                
                  N
                  /
                  2
                
              
              ⁢
              
                (
                
                  
                    
                      d
                      
                        I
                        ,
                        k
                        ,
                        
                          N
                          +
                          1
                          -
                          n
                        
                      
                    
                    ⁢
                    
                      d
                      
                        I
                        ,
                        k
                        ,
                        n
                      
                    
                  
                  -
                  
                    
                      d
                      
                        Q
                        ,
                        k
                        ,
                        
                          N
                          +
                          1
                          -
                          n
                        
                      
                    
                    ⁢
                    
                      d
                      
                        Q
                        ,
                        k
                        ,
                        n
                      
                    
                  
                
                )
              
            
          
        
      
    
    
      
        [
        5
        ]
      
    
  
  
    
      
        
          S
          
            2
            ,
            k
          
        
        =
        
          
            ∑
            
              n
              =
              1
            
            
              N
              /
              2
            
          
          ⁢
          
            (
            
              
                
                  d
                  
                    I
                    ,
                    k
                    ,
                    
                      N
                      +
                      1
                      -
                      n
                    
                  
                
                ⁢
                
                  d
                  
                    Q
                    ,
                    k
                    ,
                    n
                  
                
              
              +
              
                
                  d
                  
                    Q
                    ,
                    k
                    ,
                    
                      N
                      +
                      1
                      -
                      n
                    
                  
                
                ⁢
                
                  d
                  
                    I
                    ,
                    k
                    ,
                    n
                  
                
              
            
            )
          
        
      
    
    
      
        [
        6
        ]
      
    
  
  
    
      
        
          S
          
            3
            ,
            k
          
        
        =
        
          
            
              ∑
              
                n
                =
                1
              
              N
            
            ⁢
            
              (
              
                
                  d
                  
                    I
                    ,
                    k
                    ,
                    n
                  
                  2
                
                +
                
                  d
                  
                    Q
                    ,
                    k
                    ,
                    n
                  
                  2
                
              
              )
            
          
          +
          
            2
            ⁢
            
              
                ∑
                
                  n
                  =
                  1
                
                
                  N
                  /
                  2
                
              
              ⁢
              
                (
                
                  
                    
                      d
                      
                        I
                        ,
                        k
                        ,
                        
                          N
                          +
                          1
                          -
                          n
                        
                      
                    
                    ⁢
                    
                      d
                      
                        I
                        ,
                        k
                        ,
                        n
                      
                    
                  
                  -
                  
                    
                      d
                      
                        Q
                        ,
                        k
                        ,
                        
                          N
                          +
                          1
                          -
                          n
                        
                      
                    
                    ⁢
                    
                      d
                      
                        Q
                        ,
                        k
                        ,
                        n
                      
                    
                  
                
                )
              
            
          
        
      
    
    
      
        [
        7
        ]
      
    
  




where in-phase data dl,1 . . . dl,N and quadrature data dQ,1 . . . dQ,N 253 are available from mapper 241.
One or several sets of four data symbols may be used during the sampling period when imbalance parameters, gain and LO signal leakage are determined.
The S parameters form the basis for F parameters and H parameters as shown below:

F1=S1,2(S2,3S3,4−S2,4S3,3)+S1,3(S2,4S3,2−S2,2S3,4)+S1,4(S2,2S3,3−S2,3S3,2)

F2=S1,1(S2,4S3,3−S2,3S3,4)+S1,3(S2,1S3,4−S2,4S3,1)+S1,4(S2,3S3,1−S2,1S3,3)

F3=S1,1(S2,2S3,4−S2,4S3,2)+S1,2(S2,4S3,1−S2,1S3,2)+S1,4(S2,1S3,2−S2,2S3,1)

F4=S1,1(S2,3S3,3−S2,2S3,3)+S1,2(S2,1S3,3−S2,3S3,1)+S1,3(S2,2S3,1−S2,1S3,2)

H1=S2,2(S1,4−S1,3)+S2,3(S1,2−S1,4)+S2,4(S1,3−S1,2)

H2=S2,1(S1,3−S1,4)+S2,3(S1,1−S1,4)+S2,4(S1,1S1,3)

H3=S2,1(S1,4−S1,2)+S2,2(S1,1−S1,4)+S2,4(S1,2−S1,1)

H4=S2,1(S1,2−S1,3)+S2,2(S1,3−S1,1)+S2,3(S1,1−S1,2)  [8]

The energy 209 of the four transmitted symbols may contribute to the calculation of the PLO local oscillator signal power as follows:




  
    
      
        
          
            P
            LO
          
          =
          
            -
            
              
                
                  
                    P
                    1
                  
                  ⁢
                  
                    F
                    1
                  
                
                +
                
                  
                    P
                    2
                  
                  ⁢
                  
                    F
                    2
                  
                
                +
                
                  
                    P
                    3
                  
                  ⁢
                  
                    F
                    3
                  
                
                +
                
                  
                    P
                    4
                  
                  ⁢
                  
                    F
                    4
                  
                
              
              
                
                  
                    P
                    1
                  
                  ⁢
                  
                    H
                    1
                  
                
                +
                
                  
                    P
                    2
                  
                  ⁢
                  
                    H
                    2
                  
                
                +
                
                  
                    P
                    3
                  
                  ⁢
                  
                    H
                    3
                  
                
                +
                
                  
                    P
                    4
                  
                  ⁢
                  
                    H
                    4
                  
                
              
            
          
        
        ,
      
    
    
      
        [
        9
        ]
      
    
  




The S parameters from S-calc 245 and the P parameters from 209 may be used to compute the epsilon, alpha and g and store the values as imbalance parameters to a cache or storage 250:




  
    
      
        ɛ
        =
        
          
            
              
                
                  
                    
                      
                        P
                        1
                      
                      ⁡
                      
                        (
                        
                          
                            
                              S
                              
                                2
                                ,
                                3
                              
                            
                            ⁡
                            
                              (
                              
                                
                                  P
                                  LO
                                
                                +
                                
                                  S
                                  
                                    3
                                    ,
                                    2
                                  
                                
                              
                              )
                            
                          
                          -
                          
                            
                              S
                              
                                2
                                ,
                                2
                              
                            
                            ⁡
                            
                              (
                              
                                
                                  P
                                  LO
                                
                                +
                                
                                  S
                                  
                                    3
                                    ,
                                    3
                                  
                                
                              
                              )
                            
                          
                        
                        )
                      
                    
                    +
                    
                      
                        P
                        2
                      
                      (
                      
                        
                          
                            S
                            
                              2
                              ,
                              1
                            
                          
                          ⁡
                          
                            (
                            
                              
                                P
                                LO
                              
                              +
                              
                                S
                                
                                  3
                                  ,
                                  3
                                
                              
                            
                            )
                          
                        
                        -
                      
                    
                  
                
              
              
                
                  
                    
                      
                        
                          S
                          
                            2
                            ,
                            3
                          
                        
                        ⁡
                        
                          (
                          
                            
                              P
                              LO
                            
                            +
                            
                              S
                              
                                3
                                ,
                                1
                              
                            
                          
                          )
                        
                      
                      )
                    
                    +
                    
                      
                        P
                        3
                      
                      ⁡
                      
                        (
                        
                          
                            
                              S
                              
                                2
                                ,
                                2
                              
                            
                            ⁡
                            
                              (
                              
                                
                                  P
                                  LO
                                
                                +
                                
                                  S
                                  
                                    3
                                    ,
                                    1
                                  
                                
                              
                              )
                            
                          
                          -
                          
                            
                              S
                              
                                2
                                ,
                                1
                              
                            
                            ⁡
                            
                              (
                              
                                
                                  P
                                  LO
                                
                                +
                                
                                  S
                                  
                                    3
                                    ,
                                    2
                                  
                                
                              
                              )
                            
                          
                        
                        )
                      
                    
                  
                
              
            
            
              
                
                  P
                  1
                
                ⁡
                
                  (
                  
                    
                      
                        S
                        
                          1
                          ,
                          3
                        
                      
                      ⁢
                      
                        S
                        
                          2
                          ,
                          2
                        
                      
                    
                    -
                    
                      
                        S
                        
                          1
                          ,
                          2
                        
                      
                      ⁢
                      
                        S
                        
                          2
                          ,
                          3
                        
                      
                    
                  
                  )
                
              
              +
              
                
                  P
                  2
                
                ⁡
                
                  (
                  
                    
                      
                        S
                        
                          1
                          ,
                          1
                        
                      
                      ⁢
                      
                        S
                        
                          2
                          ,
                          3
                        
                      
                    
                    -
                    
                      
                        S
                        
                          1
                          ,
                          3
                        
                      
                      ⁢
                      
                        S
                        
                          2
                          ,
                          1
                        
                      
                    
                  
                  )
                
              
              +
            
          
        
      
    
    
      
        [
        11
        ]
      
    
  
  
    
      
        
          
            P
            3
          
          ⁡
          
            (
            
              
                
                  S
                  
                    1
                    ,
                    2
                  
                
                ⁢
                
                  S
                  
                    2
                    ,
                    1
                  
                
              
              -
              
                
                  S
                  
                    1
                    ,
                    1
                  
                
                ⁢
                
                  S
                  
                    2
                    ,
                    2
                  
                
              
            
            )
          
        
        ⁢
        
          

        
        ⁢
        
          α
          =
          
            arcsin
            (
            
              
                
                  -
                  1
                
                
                  4
                  ⁢
                  ɛ
                
              
              ⁢
              
                
                  
                    
                      
                        
                          
                        
                        ⁢
                        
                          
                            
                              P
                              1
                            
                            ⁡
                            
                              (
                              
                                
                                  
                                    S
                                    
                                      1
                                      ,
                                      2
                                    
                                  
                                  ⁡
                                  
                                    (
                                    
                                      
                                        P
                                        LO
                                      
                                      +
                                      
                                        S
                                        
                                          3
                                          ,
                                          3
                                        
                                      
                                    
                                    )
                                  
                                
                                -
                                
                                  
                                    S
                                    
                                      1
                                      ,
                                      3
                                    
                                  
                                  ⁡
                                  
                                    (
                                    
                                      
                                        P
                                        LO
                                      
                                      +
                                      
                                        S
                                        
                                          3
                                          ,
                                          2
                                        
                                      
                                    
                                    )
                                  
                                
                              
                              )
                            
                          
                          -
                          
                            P
                            2
                          
                        
                      
                    
                  
                  
                    
                      
                        
                          (
                          
                            
                              
                                -
                                
                                  S
                                  
                                    1
                                    ,
                                    1
                                  
                                
                              
                              ⁢
                              
                                (
                                
                                  
                                    P
                                    LO
                                  
                                  +
                                  
                                    S
                                    
                                      3
                                      ,
                                      3
                                    
                                  
                                
                                )
                              
                            
                            +
                            
                              
                                S
                                
                                  1
                                  ,
                                  3
                                
                              
                              ⁡
                              
                                (
                                
                                  
                                    P
                                    LO
                                  
                                  +
                                  
                                    S
                                    
                                      3
                                      ,
                                      1
                                    
                                  
                                
                                )
                              
                            
                          
                          )
                        
                        +
                      
                    
                  
                  
                    
                      
                        
                          P
                          3
                        
                        ⁡
                        
                          (
                          
                            
                              
                                S
                                
                                  1
                                  ,
                                  1
                                
                              
                              ⁡
                              
                                (
                                
                                  
                                    P
                                    LO
                                  
                                  +
                                  
                                    S
                                    
                                      3
                                      ,
                                      2
                                    
                                  
                                
                                )
                              
                            
                            +
                            
                              
                                S
                                
                                  1
                                  ,
                                  2
                                
                              
                              ⁡
                              
                                (
                                
                                  
                                    -
                                    
                                      S
                                      
                                        3
                                        ,
                                        1
                                      
                                    
                                  
                                  -
                                  
                                    P
                                    LO
                                  
                                
                                )
                              
                            
                          
                          )
                        
                      
                    
                  
                
                
                  
                    
                      
                        
                          
                            P
                            1
                          
                          ⁡
                          
                            (
                            
                              
                                
                                  S
                                  
                                    1
                                    ,
                                    2
                                  
                                
                                ⁢
                                
                                  S
                                  
                                    2
                                    ,
                                    3
                                  
                                
                              
                              -
                              
                                
                                  S
                                  
                                    1
                                    ,
                                    3
                                  
                                
                                ⁢
                                
                                  S
                                  
                                    2
                                    ,
                                    2
                                  
                                
                              
                            
                            )
                          
                        
                        +
                        
                          
                            P
                            2
                          
                          ⁡
                          
                            (
                            
                              
                                
                                  S
                                  
                                    1
                                    ,
                                    3
                                  
                                
                                ⁢
                                
                                  S
                                  
                                    2
                                    ,
                                    1
                                  
                                
                              
                              -
                              
                                
                                  S
                                  
                                    1
                                    ,
                                    1
                                  
                                
                                ⁢
                                
                                  S
                                  
                                    2
                                    ,
                                    3
                                  
                                
                              
                            
                            )
                          
                        
                        +
                      
                    
                  
                  
                    
                      
                        
                          P
                          3
                        
                        ⁡
                        
                          (
                          
                            
                              
                                S
                                
                                  1
                                  ,
                                  1
                                
                              
                              ⁢
                              
                                S
                                
                                  2
                                  ,
                                  2
                                
                              
                            
                            -
                            
                              
                                S
                                
                                  1
                                  ,
                                  2
                                
                              
                              ⁢
                              
                                S
                                
                                  2
                                  ,
                                  1
                                
                              
                            
                          
                          )
                        
                      
                    
                  
                
              
            
            )
          
        
      
    
    
      
        
      
    
  
  
    
      
        
          g
          t
        
        =
        
          
            4
            ⁢
            
              
            
            ⁢
            
              P
              1
            
          
          
            
              ɛ
              ⁢
              
                
              
              ⁢
              
                S
                
                  1
                  ,
                  1
                
              
            
            +
            
              4
              ⁢
              ɛ
              ⁢
              
                
              
              ⁢
              sin
              ⁢
              
                
              
              ⁢
              
                (
                α
                )
              
              ⁢
              
                
              
              ⁢
              
                S
                
                  2
                  ,
                  1
                
              
            
            +
            
              S
              
                3
                ,
                1
              
            
            +
            
              P
              LO
            
          
        
      
    
    
      
        [
        12
        ]
      
    
  




The epsilon, alpha and g values may then be stored unchanged in 250. Alternatively, the epsilon, alpha and g values may be updated whenever an additional data symbol in the form of in-phase data and quadrature data 253 is available, or less frequently.
Yet another arrangement for determining the epsilon, alpha and g values includes calculating a first alpha, a first epsilon and a first gain based on the energy of the at least four transmitted symbols; and calculating a second alpha, a second epsilon and a second gain based on the energy of the next symbol. The final steps to reach the alpha, epsilon, and gain values may include calculating an alpha based on an average of the first alpha and the second alpha; calculating an epsilon based on an average of the first epsilon and the second epsilon; and calculating a gain based on an average of the first gain and the second gain. Thus during a compensation period, the imbalance parameters in use may be average values. Many forms of averaging may be used, including weighting a more recent value more heavily, e.g. weighting a second alpha heavier than a first alpha.
The duration when the compensator provides the compensated data signals is known as the compensation period. The compensator 251 may operate in a sampling period acquisition mode where no changes are made to data symbols provided to the compensator, and such symbols are placed onto the IFFT-bus 261 unchanged by the compensator. The compensator may operate in a feedback mode during a compensator period where the compensator 251 provides the compensated in-phase baseband, i.e., first in-phase compensated data symbol (FICDS) 263, and a second in-phase compensated data symbol (SICDS) 265, and compensated quadrature baseband, i.e., a first quadrature compensated data symbol (FQCDS) 262, second quadrature compensated data symbol (SQCDS) 264, signals to the IFFT 271. Modulator 281 may ooerate as an OFDM and may be followed by amplifier 291.
FIG. 3 shows an embodiment that dispenses with the use of a persistent feedback loop in favor of testing the transmitter output, data symbols at the time of manufacture, and storing the resultant imbalance parameters, epsilon, alpha and gain, in a storage 350 which may be non-volatile. The factory calibration apparatus may sample symbols, denoted by dl,1 . . . dl,N and dQ,1 . . . dQ,N 353 as well as sample and amplifier output 301 to derive, by methods similar to those used in FIG. 2, to obtain the epsilon, alpha and gain applicable to symbols transmitted by the amplifier. The data symbols 353 may each comprise a first quadrature subcarrier 354, a first in-phase subcarrier 355, a second quadrature subcarrier 356 and a second in-phase subcarrier 357. Thus, a feedback loop may not be required in the final product that is shipped.
The hardware for the factory-calibrated embodiment may include a compensator 351 reading from the storage 350. Such an apparatus may be inserted to intercept the signals of the prior-art mapper 341, changing the in-phase baseband and quadrature baseband 353 signals to compensated data symbols 361. IFFT 371 produces the I signal 307 and the Q signal 309 by means known in the art. Modulator 381 may operate as an OFDM and may be followed by amplifier 391.
Once the alpha, epsilon and gain values are known, by the feedback loop in FIG. 2, compensation of the current data symbol presented to the compensator 251 may be performed in an operation known as compensating. Each subcarrier component of the current data symbol may be referred to as a next symbol in relation to a data symbol that provided data for computing the alpha, epsilon and gain values of the storage 250. Compensator 251 may perform at least four operations. Compensator 251 may perform at least one first quadrature compensating of a next data symbol, thus obtaining the FQCDS, or d′Q,n:




  
    
      
        
          
            d
            
              Q
              ,
              n
            
            ′
          
          =
          
            
              
                g
                w
              
              g
            
            ⁢
            
              
                
                  

                
                ⁢
                
                  
                    
                      
                        
                          
                            d
                            
                              Q
                              ,
                              n
                            
                          
                          ⁡
                          
                            (
                            
                              1
                              +
                              
                                ɛ
                                ⁢
                                
                                  
                                
                                ⁢
                                cos
                                ⁢
                                
                                  
                                
                                ⁢
                                
                                  (
                                  α
                                  )
                                
                              
                            
                            )
                          
                        
                        +
                      
                    
                  
                  
                    
                      
                        
                          
                            d
                            
                              Q
                              ,
                              
                                (
                                
                                  n
                                  +
                                  
                                    N
                                    /
                                    2
                                  
                                
                                )
                              
                            
                          
                          ⁡
                          
                            (
                            
                              1
                              -
                              
                                ɛ
                                ⁢
                                
                                  
                                
                                ⁢
                                cos
                                ⁢
                                
                                  
                                
                                ⁢
                                
                                  (
                                  α
                                  )
                                
                              
                            
                            )
                          
                        
                        +
                        
                          ɛ
                          ⁢
                          
                            
                          
                          ⁢
                          sin
                          ⁢
                          
                            
                          
                          ⁢
                          
                            (
                            α
                            )
                          
                          ⁢
                          
                            (
                            
                              
                                d
                                
                                  I
                                  ,
                                  n
                                
                              
                              -
                              
                                d
                                
                                  I
                                  ,
                                  
                                    (
                                    
                                      n
                                      +
                                      
                                        N
                                        /
                                        2
                                      
                                    
                                    )
                                  
                                
                              
                            
                            )
                          
                        
                      
                    
                  
                
              
              
                2
                ⁢
                ɛ
                ⁢
                
                  
                
                ⁢
                cos
                ⁢
                
                  
                
                ⁢
                
                  (
                  α
                  )
                
              
            
          
        
        ,
      
    
    
      
        [
        13
        ]
      
    
  




for each n valued at 1 through N/2. Compensator 251 may perform at least one second quadrature compensating of a next data symbol, thus obtaining the SQCDS or d′Q,n:





  
    
      
        
          
            d
            
              Q
              ,
              n
            
            ′
          
          =
          
            
              
                g
                w
              
              g
            
            ⁢
            
              
                
                  

                
                ⁢
                
                  
                    
                      
                        
                          
                            d
                            
                              Q
                              ,
                              
                                (
                                
                                  n
                                  -
                                  
                                    N
                                    /
                                    2
                                  
                                
                                )
                              
                            
                          
                          ⁡
                          
                            (
                            
                              1
                              -
                              
                                ɛ
                                ⁢
                                
                                  
                                
                                ⁢
                                cos
                                ⁢
                                
                                  
                                
                                ⁢
                                
                                  (
                                  α
                                  )
                                
                              
                            
                            )
                          
                        
                        +
                      
                    
                  
                  
                    
                      
                        
                          
                            d
                            
                              Q
                              ,
                              n
                            
                          
                          ⁡
                          
                            (
                            
                              1
                              +
                              
                                ɛ
                                ⁢
                                
                                  
                                
                                ⁢
                                cos
                                ⁢
                                
                                  
                                
                                ⁢
                                
                                  (
                                  α
                                  )
                                
                              
                            
                            )
                          
                        
                        +
                        
                          ɛ
                          ⁢
                          
                            
                          
                          ⁢
                          sin
                          ⁢
                          
                            
                          
                          ⁢
                          
                            (
                            α
                            )
                          
                          ⁢
                          
                            (
                            
                              
                                d
                                
                                  I
                                  ,
                                  n
                                
                              
                              -
                              
                                d
                                
                                  I
                                  ,
                                  
                                    (
                                    
                                      n
                                      -
                                      
                                        N
                                        /
                                        2
                                      
                                    
                                    )
                                  
                                
                              
                            
                            )
                          
                        
                      
                    
                  
                
              
              
                2
                ⁢
                ɛ
                ⁢
                
                  
                
                ⁢
                cos
                ⁢
                
                  
                
                ⁢
                
                  (
                  α
                  )
                
              
            
          
        
        ,
      
    
    
      
        [
        14
        ]
      
    
  




for each n valued at N/2+1 through N. Compensator 251 may perform at least one first in-phase compensating of a next data symbol, thus obtaining the FICDS, or d′l,n:





  
    
      
        
          
            d
            
              I
              ,
              n
            
            ′
          
          =
          
            
              
                g
                w
              
              g
            
            ⁢
            
              
            
            ⁢
            
              
                
                  
                    
                      
                        
                          d
                          
                            I
                            ,
                            n
                          
                        
                        ⁡
                        
                          (
                          
                            1
                            +
                            
                              ɛcos
                              ⁡
                              
                                (
                                α
                                )
                              
                            
                          
                          )
                        
                      
                      +
                    
                  
                
                
                  
                    
                      
                        
                          d
                          
                            I
                            ,
                            
                              (
                              
                                n
                                +
                                
                                  N
                                  /
                                  2
                                
                              
                              )
                            
                          
                        
                        ⁡
                        
                          (
                          
                            
                              ɛcos
                              ⁡
                              
                                (
                                α
                                )
                              
                            
                            -
                            1
                          
                          )
                        
                      
                      -
                      
                        
                          ɛsin
                          ⁡
                          
                            (
                            α
                            )
                          
                        
                        ⁢
                        
                          (
                          
                            
                              d
                              
                                Q
                                ,
                                n
                              
                            
                            +
                            
                              d
                              
                                Q
                                ,
                                
                                  (
                                  
                                    n
                                    +
                                    
                                      N
                                      /
                                      2
                                    
                                  
                                  )
                                
                              
                            
                          
                          )
                        
                      
                    
                  
                
              
              
                2
                ⁢
                
                  ɛcos
                  ⁡
                  
                    (
                    α
                    )
                  
                
              
            
          
        
        ,
      
    
    
      
        [
        15
        ]
      
    
  




for each n valued at 1 through N/2. Compensator 251 may perform at least one second in-phase compensating of a next data symbol, thus obtaining the SICDS, or d′l,n:





  
    
      
        
          
            d
            
              I
              ,
              n
            
            ′
          
          =
          
            
              
                g
                w
              
              g
            
            ⁢
            
              
            
            ⁢
            
              
                
                  
                    
                      
                        
                          d
                          
                            I
                            ,
                            
                              n
                              -
                              
                                N
                                /
                                2
                              
                            
                          
                        
                        ⁡
                        
                          (
                          
                            
                              ɛcos
                              ⁡
                              
                                (
                                α
                                )
                              
                            
                            -
                            1
                          
                          )
                        
                      
                      +
                    
                  
                
                
                  
                    
                      
                        
                          d
                          
                            I
                            ,
                            n
                          
                        
                        ⁡
                        
                          (
                          
                            1
                            +
                            
                              ɛcos
                              ⁡
                              
                                (
                                α
                                )
                              
                            
                          
                          )
                        
                      
                      -
                      
                        
                          ɛsin
                          ⁡
                          
                            (
                            α
                            )
                          
                        
                        ⁢
                        
                          (
                          
                            
                              d
                              
                                Q
                                ,
                                n
                              
                            
                            +
                            
                              d
                              
                                Q
                                ,
                                
                                  (
                                  
                                    n
                                    -
                                    
                                      N
                                      /
                                      2
                                    
                                  
                                  )
                                
                              
                            
                          
                          )
                        
                      
                    
                  
                
              
              
                2
                ⁢
                
                  ɛcos
                  ⁡
                  
                    (
                    α
                    )
                  
                
              
            
          
        
        ,
      
    
    
      
        [
        16
        ]
      
    
  




for each n valued at N/2+1 through N.
In each of the foregoing four equations, gw is the wanted gain, which may be set to a value desired by the operator of the transmitter. If it is desired to use an averaged value of α, ε and g, those values may be used if previously stored in cache 250.
Although the invention has been described in the context of particular embodiments, various alternative embodiments are possible. For example, other transmitters that have baseband I and Q signals of the form shown in equations [1] and [2] may benefit from compensation as shown herein. In addition, calculation of imbalance parameters may occur following the transmission of most symbols, or less frequently, e.g. near the beginning of a packet. Thus, while the invention has been particularly shown and described with respect to specific embodiments thereof, it will be understood by those skilled in the art that changes in form and configuration may be made therein without departing from the scope and spirit of the invention.

## Claims

1. A method for providing a first quadrature compensated data symbol (FQCDS), a second quadrature compensated data symbol (SQCDS), a first in-phase compensated data symbol (FICDS) and a second in-phase compensated data symbol (SICDS) to an inverse fast fourrier transform (IFFT) of a multicarrier quadrature modulator having an amplifier, wherein at least four transmitted symbols are available from the amplifier and at least four data symbols and a next data symbol are available from a mapper, comprising the steps of:
a) calculating the energy of the at least four transmitted symbols;
b) calculating an alpha, an epsilon and a gain based on the energy of the at least four transmitted symbols and the at least four data symbols, wherein the alpha, epsilon and gain are imbalance parameters;
c) storing the alpha, epsilon and gain;
d) first quadrature compensating the next data symbol of a first quadrature subcarrier based on the alpha, epsilon and gain to produce the FQCDS;
e) second quadrature compensating the next data symbol of a second quadrature subcarrier based on the alpha, epsilon and gain to produce the SQCDS;
f) first in-phase compensating the next data symbol of a first in-phase subcarrier based on the alpha, epsilon and gain to produce the FICDS;
g) second in-phase compensating the next data symbol of a second in-phase subcarrier based on the alpha, epsilon and gain to produce the SICDS;
h) repeating steps a, b and c wherein the at least four transmitted symbols include a next transmitted data symbol and the at least four data symbols include the next data symbol.

2. The method of claim 1 wherein the step of calculating the alpha, epsilon and gain further comprises the steps of:
calculating a first alpha, a first epsilon and a first gain based on the energy of the at least four transmitted symbols;
calculating a second alpha, a second epsilon and a second gain based on the energy of the next data symbol;
calculating the alpha based on an average of the first alpha and the second alpha;
calculating the epsilon based on an average of the first epsilon and the second epsilon; and
calculating the gain based on an average of the first gain and the second gain.

3. The method of claim 1 wherein the step of calculating the energy of at least four transmitted symbols further comprises the steps of:
a) squaring output of a transmitter to provide a squared signal;
b) sampling the squared signal to provide a squared sample signal; and
c) integrating the squared sample signal over a symbol duration.

4. An apparatus for providing a first quadrature compensated data symbol (FQCDS), a second quadrature compensated data symbol (SQCDS), a first in-phase compensated data symbol (FICDS) and a second in-phase compensated data symbol (SICDS) to an inverse fast fourrier transform (IFFT) of a multicarrier quadrature modulator having an amplifier, wherein at least four transmitted symbols are available from the amplifier and at least four data symbols and a next data symbol are available from a mapper comprising:
a) means for calculating the energy of the at least four transmitted symbols;
b) means for calculating an alpha, an epsilon and a gain based on the energy of the at least four transmitted symbols and the at least four data symbols, wherein the alpha, epsilon and gain are imbalance parameters;
c) means for storing the alpha, epsilon and gain;
d) means for first quadrature compensating the next data symbol of a first quadrature subcarrier based on the alpha, epsilon and gain to produce the FQCDS;
e) means for second quadrature compensating the next data symbol of a second quadrature subcarrier based on the alpha, epsilon and gain to produce the SQCDS;
f) means for first in-phase compensating the next data symbol of a first in-phase subcarrier based on the alpha, epsilon and gain to produce the FICDS;
g) means for second in-phase compensating the next data symbol of a second in-phase subcarrier based on the alpha, epsilon and gain to produce the SICDS;
h) means for repeating implementation of a, b and c wherein the at least four transmitted symbols include a next transmitted data symbol and the at least four data symbols include the next data symbol.

5. The apparatus of claim 4 wherein the means for calculating the alpha, epsilon and gain further comprises:
means for calculating a first alpha, a first epsilon and a first gain based on the energy of the at least four transmitted symbols;
means for calculating a second alpha, a second epsilon and a second gain based on the energy of the next data symbol;
means for calculating the alpha based on an average of the first alpha and the second alpha;
means for calculating the epsilon based on an average of the first epsilon and the second epsilon; and
means for calculating the gain based on an average of the first gain and the second gain.

6. The apparatus of claim 4 wherein the means for calculating the energy of at least four transmitted symbols further comprises:
a) means for squaring output of a transmitter to provide a squared signal;
b) means for sampling the squared signal to provide a squared sample signal; and
c) means for integrating the squared sample signal over a symbol duration.