Forum Discussion
Altera_Forum
Honored Contributor
15 years agophase difference 2 signals.
is possible whit fpga FFT or similar metod measure a phase difference from 2 PULSED-sinusoidals signals? the freq of signals is 60MHz but the duration of signals is 0.5uSEC, and the PRF of pu...
Altera_Forum
Honored Contributor
15 years agoIf you have matlab, you can try this code (not tested):
%assuming Fs = 240Msps %signal 1 offset = 100; x1 = sin(2*pi*(0+offset:200000+offset)*60/240); x1(1000:1000:end) = 0; %switch off %ref xref = sin(2*pi*(0:200000)*60/240); y1 = fft(x1,1024); y2 = fft(xref,1024); A1 = abs(y1); A2 = abs(y2); ph1 = angle(y1); ph2 = angle(y2); you will then check A/ph at relevant bin