Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Calculating phase shift between 2 sine waves...

Status
Not open for further replies.

minoss

Junior Member level 1
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top