Other Parts Discussed in Thread: IWR1642, AWR1243, IWR1443
Hi!, I am at the moment performing some phase accuracy measurements with the IWR1642 part, and i am trying to configure the initial chirp phase by the use of the command "profileCfg" of the SDK set of configuration commands. In the sdk user's guide version 1.1 it is said that the parameter that controls the phase of the transmitter chirp is <txPhaseShifter> included in "profileCfg". It is also said that the only value that has been tested is 0, and when this value is changed I see no change in the measured phase that is measured from the I and Q signals...
I am measuring the phase by post processing in matlab by using the gui function "capture_demo" provided in the SDK library. The code used to interprete the I and Q signals is the given one in the code provided in the library, this one is posted below. I execute the command angle(fftresult).
Am I doing something wrong?, perhaps a mistake in the phase calculation?
frame = ADCSamplesFrame(1:K*Nchirp,1) + i*ADCSamplesFrame(1:K*Nchirp,2);
chAve = zeros(K,1);
avgChirp = Nchirp;
for nn = 1:avgChirp
chAve = chAve + frame((nn-1)*K+1:(nn-1)*K+K);
end
chAve = chAve/avgChirp;
rangeResolutionsInMeters = C * sampleRate / (2 * freqSlope * K);
rangeIdxToMeters = C * sampleRate / (2 * freqSlope * K);
rangeBin = linspace(0, K * rangeIdxToMeters, K);
% Do FFT on chirp average and plot results
fftResult = fft(chAve);