FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-31-2006, 02:22 AM
BobM
Guest
 
Posts: n/a
Default Frequency Shift and Phase of Sinusoid

I have a very basic conceptual question that I have been having trouble
getting my head around. When shifting the frequency of a sin wave, how
should the phase be handled? For example, this works for integer shift
amounts:

y(t) = sin(shift*(2*pi*f*t + theta))

But if shift is not an integer (1.2, 1.5, etc.) the phase of the
resulting sin wave seems incorrect.

Anybody know how phase should be multiplied when shifting frequency?
This is likely printed in several basic physics texts, but I haven't
stumbled upon it in the ones I have in front of me.

Thanks!
Bob

Reply With Quote
  #2 (permalink)  
Old 03-31-2006, 02:52 AM
Oli Filth
Guest
 
Posts: n/a
Default Re: Frequency Shift and Phase of Sinusoid

BobM said the following on 31/03/2006 02:22:
> I have a very basic conceptual question that I have been having trouble
> getting my head around. When shifting the frequency of a sin wave, how
> should the phase be handled? For example, this works for integer shift
> amounts:
>
> y(t) = sin(shift*(2*pi*f*t + theta))
>
> But if shift is not an integer (1.2, 1.5, etc.) the phase of the
> resulting sin wave seems incorrect.
>
> Anybody know how phase should be multiplied when shifting frequency?
> This is likely printed in several basic physics texts, but I haven't
> stumbled upon it in the ones I have in front of me.
>


Depends on what you want to happen to the phase (theta). If you're
treating it as an angular offset, and want to retain that offset at the
new frequency, then you should do:

y = sin(shift*2*pi*f*t + theta)

If, instead, you're treating it as the result of some kind of constant
time offset, then your original expression was correct (it retains the
same "time" offset at the new frequency).


--
Oli
Reply With Quote
  #3 (permalink)  
Old 03-31-2006, 02:53 AM
Clay S. Turner
Guest
 
Posts: n/a
Default Re: Frequency Shift and Phase of Sinusoid


"BobM" <[email protected]> wrote in message
news:[email protected] oups.com...
>I have a very basic conceptual question that I have been having trouble
> getting my head around. When shifting the frequency of a sin wave, how
> should the phase be handled? For example, this works for integer shift
> amounts:
>
> y(t) = sin(shift*(2*pi*f*t + theta))
>
> But if shift is not an integer (1.2, 1.5, etc.) the phase of the
> resulting sin wave seems incorrect.
>
> Anybody know how phase should be multiplied when shifting frequency?
> This is likely printed in several basic physics texts, but I haven't
> stumbled upon it in the ones I have in front of me.
>
> Thanks!
> Bob
>


Hello Bob,

It depends on how you implement the frequency shifting.

Let's say you have a sinusoid:

y=cos(at+p) where a is the frequency and p is the phase. Now let's operate
on this and shift if by frequency b. One way is to analytically extend your
function y(t) to now be

Y(t) = cos(at+p) + j*sin(at+p)

next mix with a complex exponential at frequency b.

h(t) = cos(bt)+j*sin(bt)

The frequency shifted portion of your original signal is the real part of
Y(t)*h(t)

thus:

Re(Y(t)*h(t)) = cos(at+p)*cos(bt) - sin(at+p)*sin(bt)

= cos( at + p +bt)

= cos ( (a+b)t + p )

Hence the result is shifted to a new frequency but with the same initial
phase!

IHTH,

Clay S. Turner



Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clock phase shift Ashish FPGA 10 12-08-2006 05:23 PM
Phase of FFT compared to phase of Sinusoid [email protected] DSP 109 04-06-2006 05:52 PM
Problems with phase shift dcm [email protected] FPGA 0 10-11-2005 11:19 AM
Frequency shift and decimation in the frequency domain [email protected] DSP 5 02-13-2005 01:59 AM
Phase shift and AR cristian DSP 1 09-10-2004 06:25 AM


All times are GMT +1. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved