
WSA5000 Functional Overview
If the application only needs to utilize up to 50MHz of IBW, a simple alternative to DC
offset compensation is to use the SH mode of operation.
IQ Offset Correction
Direct-conversion receivers have phase and/or amplitude offsets between in-phase (I)
and quadrature (Q) components of the baseband signal. Due to this, when an FFT is
performed on digitized baseband data where there is a signal tone present, there will be
an ‘image’ at the same frequency offset from the center frequency as the tone itself. This
is illustrated in
To compensate for this, the raw I and Q data must be processed according to the
following “calibrateIQ” routine, illustrated using the following MATLAB® code. When an
FFT is performed on the output of calibrateIQ, the image will disappear. This process has
no impact on the accuracy or precision of the data.
%%%%%
% MATLAB code for IQ Offset Correction
%%%%%
function [calibratedQ] = calibrateIQ(iData, qData)
numberOfSamples = size(iData, 1);
sumOfSquaresI = sum(iData.^2);
sumOfSquaresQ = sum(qData.^2);
amplitude = sqrt(sumOfSquaresI * 2 / numberOfSamples);
ratio = sqrt(sumOfSquaresI / sumOfSquaresQ);
p = (qData/amplitude) * ratio .* (iData/amplitude);
sinphi = 2 * sum(p) / numberOfSamples;
phi_est = -asin(sinphi);
calibratedQ
=
((sin(phi_est)
*
iData)
+
(ratio
*
qData))
/
cos(phi_est);
end
Signal
Image
XdB
Frequency
F
c
Frequency
F
c
Fc+Fs
Fc-Fs
calibrateIQ
19
ThinkRF WSA5000 Wireless Signal Analyzer Programmer's Guide