Calculating phase shift between 2 sine waves...

Status
Not open for further replies.

minoss

Junior Member level 1
Joined
May 15, 2003
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
germany
Activity points
147
Calculate Phaseshift ??

Hello to all

Is it possible to calculate the Phase Shift between 2 sine waves with different amplitudes on a DSP ??

Greetings Michael
 

Re: Calculate Phaseshift ??

Hi Minoss,

I assume the two sine waves are the same frequency ?
Are they sampled at the same sample rate ?
If so, you can:
a) Detect zero-crossings of the two sine waves (consecutive negative
and positive samples), then count the number of samples in between
of the two sine waves zero crossings.
b) Use FFT or Goertzel's algorithm (look for this term on the web).

In case you are in reasonably low-noise environment, the first method
should be fine. In case you are in a noisy environment, you could repeat
the first method X times and then average the result you get... In fact
the second method should probably never be used for the problem you
posed
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…