工具与软件:
使用 TI 提供的计算器、通过以下代码计算 TX 通道寄存器中所需的相移:
startFreq = 77; % start frequency in GHz
numAntennas = 3; % number of TX antennas
d = 0.00389341/2; % antenna spacing in meters
theta = -60; % desired phase shift
lamda = (3*10^8)/(startFreq*10^9);
antennaPhase = zeros(1, numAntennas);
for i = 1:numAntennas
% Calculate the phase shift for each antenna
phaseShift = rad2deg((2*pi/lamda)*(i-1)*d*sin(deg2rad(theta)));
% Convert negative phase shifts to positive values in the range [0, 360)
antennaPhase(1, i) = mod(phaseShift + 360, 360);
end
% Convert the phase angles to phase shifter bits (assuming 5.625 degrees per bit)
antennaPhaseBits = antennaPhase / 5.625
当我以60度的角度(使用全部3TX)生成射束时、我使用以下命令以及其余脚本:
-- Configure Chirp Based Phase Shifter
if (ar1.SetPerChirpPhaseShifterConfig(0, 0, 0, 28, 55) == 0) then
WriteToLog("Chirp Based Phase Shifter Configuration Success\n", "green")
else
WriteToLog("Chirp Based Phase Shifter Configuration failure\n", "red")
end
RSTD.Sleep(500)

-- Configure Chirp Based Phase Shifter
if (ar1.SetPerChirpPhaseShifterConfig(0, 0, 0, 0, 0) == 0) then
WriteToLog("Chirp Based Phase Shifter Configuration Success\n", "green")
else
WriteToLog("Chirp Based Phase Shifter Configuration failure\n", "red")
end
RSTD.Sleep(500)