Patent ID: 8411797

Claim:
A method of frequency offset compensation, comprising: receiving an input signal wherein frequency offsets have been translated to DC offsets; first determining a current maximum peak value of said input signal; second determining a current minimum peak value of said input signal; calculating, in a communication circuitry, an average of said current maximum peak value and said current minimum peak value to yield a DC offset estimate; and subtracting said DC offset estimate from said input signal to yield a frequency compensated output signal; wherein said step of determining said current maximum peak value comprises the steps of: comparing said input signal with a previous maximum peak value; if said input signal is greater than said previous maximum peak value, adding said previous maximum peak value to a first difference between said input signal and said previous maximum peak value, said first difference multiplied by a maximum charge coefficient to yield said current maximum peak value; and if said input signal is not greater than said previous maximum peak value, subtracting a second difference between said previous maximum peak value and said input signal multiplied by a maximum discharge coefficient from said previous maximum peak value to yield said current maximum peak value.