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 02-08-2008, 12:17 PM
sunil_ic
Guest
 
Posts: n/a
Default Problem in SNR

Dear Frieds,
I am facing a problem while finding SNR of a adc output. I am givin
sinusoidal wave at the input amd getting sinusoidal wave with harmonic
and noise at output. Now, to calculate power for my fundamental frequenc
and noise, I am using DFT. But as I am changing the number of samples,
am getting different-different SNR. Here, I am also considering spectru
leakage in FFT. So, as my fundamental frequence is 122070312.5H
(122.07MHz) and I am sampling it with 25GHz, I am taking number of sample
1024 and 2048. I am getting 5db SNR with 1024 samples and 14db SNR wit
2048 samples. Please help me find where am I going wrong ?
Thanks


Reply With Quote
  #2 (permalink)  
Old 02-08-2008, 12:50 PM
John
Guest
 
Posts: n/a
Default Re: Problem in SNR

On Feb 8, 6:17 am, "sunil_ic" <sunil...@gmail.com> wrote:
> Dear Frieds,
> I am facing a problem while finding SNR of a adc output. I am giving
> sinusoidal wave at the input amd getting sinusoidal wave with harmonics
> and noise at output. Now, to calculate power for my fundamental frequency
> and noise, I am using DFT. But as I am changing the number of samples, I
> am getting different-different SNR. Here, I am also considering spectrum
> leakage in FFT. So, as my fundamental frequence is 122070312.5Hz
> (122.07MHz) and I am sampling it with 25GHz, I am taking number of samples
> 1024 and 2048. I am getting 5db SNR with 1024 samples and 14db SNR with
> 2048 samples. Please help me find where am I going wrong ?
> Thanks


25 GHz ???????

Reply With Quote
  #3 (permalink)  
Old 02-08-2008, 01:53 PM
Allan Herriman
Guest
 
Posts: n/a
Default Re: Problem in SNR

On Fri, 8 Feb 2008 03:50:32 -0800 (PST), John <[email protected]>
wrote:

>On Feb 8, 6:17 am, "sunil_ic" <sunil...@gmail.com> wrote:
>> Dear Frieds,
>> I am facing a problem while finding SNR of a adc output. I am giving
>> sinusoidal wave at the input amd getting sinusoidal wave with harmonics
>> and noise at output. Now, to calculate power for my fundamental frequency
>> and noise, I am using DFT. But as I am changing the number of samples, I
>> am getting different-different SNR. Here, I am also considering spectrum
>> leakage in FFT. So, as my fundamental frequence is 122070312.5Hz
>> (122.07MHz) and I am sampling it with 25GHz, I am taking number of samples
>> 1024 and 2048. I am getting 5db SNR with 1024 samples and 14db SNR with
>> 2048 samples. Please help me find where am I going wrong ?
>> Thanks

>
>25 GHz ???????


Not infeasable on a newer oscilloscope.

Regards,
Allan
Reply With Quote
  #4 (permalink)  
Old 02-12-2008, 01:10 PM
sunil_ic
Guest
 
Posts: n/a
Default Re: Problem in SNR

>On Fri, 8 Feb 2008 03:50:32 -0800 (PST), John <[email protected]>
>wrote:
>
>>On Feb 8, 6:17 am, "sunil_ic" <sunil...@gmail.com> wrote:
>>> Dear Frieds,
>>> I am facing a problem while finding SNR of a adc output. I am giving
>>> sinusoidal wave at the input amd getting sinusoidal wave wit

harmonics
>>> and noise at output. Now, to calculate power for my fundamenta

frequency
>>> and noise, I am using DFT. But as I am changing the number of samples

I
>>> am getting different-different SNR. Here, I am also considerin

spectrum
>>> leakage in FFT. So, as my fundamental frequence is 122070312.5Hz
>>> (122.07MHz) and I am sampling it with 25GHz, I am taking number o

samples
>>> 1024 and 2048. I am getting 5db SNR with 1024 samples and 14db SN

with
>>> 2048 samples. Please help me find where am I going wrong ?
>>> Thanks

>>
>>25 GHz ???????

>
>Not infeasable on a newer oscilloscope.
>
>Regards,
>Allan
>


Its not Oscilloscope setup. I am doing matlab simulation.
Reply With Quote
  #5 (permalink)  
Old 02-12-2008, 06:48 PM
dbell
Guest
 
Posts: n/a
Default Re: Problem in SNR

On Feb 12, 7:10*am, "sunil_ic" <sunil...@gmail.com> wrote:
> >On Fri, 8 Feb 2008 03:50:32 -0800 (PST), John <sampson...@gmail.com>
> >wrote:

>
> >>On Feb 8, 6:17 am, "sunil_ic" <sunil...@gmail.com> wrote:
> >>> Dear Frieds,
> >>> I am facing a problem while finding SNR of a adc output. I am giving
> >>> sinusoidal wave at the input amd getting sinusoidal wave with

> harmonics
> >>> and noise at output. Now, to calculate power for my fundamental

> frequency
> >>> and noise, I am using DFT. But as I am changing the number of samples,

> I
> >>> am getting different-different SNR. Here, I am also considering

> spectrum
> >>> leakage in FFT. So, as my fundamental frequence is 122070312.5Hz
> >>> (122.07MHz) and I am sampling it with 25GHz, I am taking number of

> samples
> >>> 1024 and 2048. I am getting 5db SNR with 1024 samples and 14db SNR

> with
> >>> 2048 samples. Please help me find where am I going wrong ?
> >>> Thanks

>
> >>25 GHz ???????

>
> >Not infeasable on a newer oscilloscope.

>
> >Regards,
> >Allan

>
> Its not Oscilloscope setup. I am doing matlab simulation.- Hide quoted text -
>
> - Show quoted text -


How are you calculating SNR?

Dirk
Reply With Quote
  #6 (permalink)  
Old 02-13-2008, 05:05 AM
sunil_ic
Guest
 
Posts: n/a
Default Re: Problem in SNR

>On Feb 12, 7:10=A0am, "sunil_ic" <sunil...@gmail.com> wrote:
>> >On Fri, 8 Feb 2008 03:50:32 -0800 (PST), John <sampson...@gmail.com>
>> >wrote:

>>
>> >>On Feb 8, 6:17 am, "sunil_ic" <sunil...@gmail.com> wrote:
>> >>> Dear Frieds,
>> >>> I am facing a problem while finding SNR of a adc output. I a

giving
>> >>> sinusoidal wave at the input amd getting sinusoidal wave with

>> harmonics
>> >>> and noise at output. Now, to calculate power for my fundamental

>> frequency
>> >>> and noise, I am using DFT. But as I am changing the number o

samples,=
>
>> I
>> >>> am getting different-different SNR. Here, I am also considering

>> spectrum
>> >>> leakage in FFT. So, as my fundamental frequence is 122070312.5Hz
>> >>> (122.07MHz) and I am sampling it with 25GHz, I am taking number of

>> samples
>> >>> 1024 and 2048. I am getting 5db SNR with 1024 samples and 14db SNR

>> with
>> >>> 2048 samples. Please help me find where am I going wrong ?
>> >>> Thanks

>>
>> >>25 GHz ???????

>>
>> >Not infeasable on a newer oscilloscope.

>>
>> >Regards,
>> >Allan

>>
>> Its not Oscilloscope setup. I am doing matlab simulation.- Hide quote

tex=
>t -
>>
>> - Show quoted text -

>
>How are you calculating SNR?
>
>Dirk
>


Dear Dirk,
At 25GHz sample rate, I am doing 1024 point FFT at output from the ADC. S
my input signal (122070312.5Hz) will be at f5, 5th sample, in frequenc
domain (FFT of the output signal). So I calculated singal power by takin
square of the 5th sample. And rest all samples in the FFT are th
noise+harmonics. So I calculated noise power by integrating all samples
square.
Thanks
Reply With Quote
  #7 (permalink)  
Old 02-13-2008, 10:57 AM
Rune Allnor
Guest
 
Posts: n/a
Default Re: Problem in SNR

On 13 Feb, 05:05, "sunil_ic" <sunil...@gmail.com> wrote:
> >On Feb 12, 7:10=A0am, "sunil_ic" <sunil...@gmail.com> wrote:


> >How are you calculating SNR?

>
> >Dirk

>
> Dear Dirk,
> At 25GHz sample rate, I am doing 1024 point FFT at output from the ADC. So
> my input signal (122070312.5Hz) will be at f5, 5th sample, in frequency
> domain (FFT of the output signal). So I calculated singal power by taking
> square of the 5th sample. And rest all samples in the FFT are the
> noise+harmonics.


Seems reasonable.

> So I calculated noise power by integrating all samples'
> square.


Did you make sure to leave ouut the harmonic where the signal
is located?

Rune
Reply With Quote
  #8 (permalink)  
Old 02-15-2008, 09:10 AM
sunil_ic
Guest
 
Posts: n/a
Default Re: Problem in SNR

>On 13 Feb, 05:05, "sunil_ic" <sunil...@gmail.com> wrote:
>> >On Feb 12, 7:10=A0am, "sunil_ic" <sunil...@gmail.com> wrote:

>
>> >How are you calculating SNR?

>>
>> >Dirk

>>
>> Dear Dirk,
>> At 25GHz sample rate, I am doing 1024 point FFT at output from the ADC

So
>> my input signal (122070312.5Hz) will be at f5, 5th sample, i

frequency
>> domain (FFT of the output signal). So I calculated singal power b

taking
>> square of the 5th sample. And rest all samples in the FFT are the
>> noise+harmonics.

>
>Seems reasonable.
>
>> So I calculated noise power by integrating all samples'
>> square.

>
>Did you make sure to leave ouut the harmonic where the signal
>is located?
>
>Rune
>

I am considering harmonics also as Noise. Is it true assumption ?
Reply With Quote
  #9 (permalink)  
Old 02-15-2008, 10:14 AM
Rune Allnor
Guest
 
Posts: n/a
Default Re: Problem in SNR

On 15 Feb, 09:10, "sunil_ic" <sunil...@gmail.com> wrote:
> I am considering harmonics also as Noise. Is it true assumption ?


Ah, I didn't read your original post carefully enough - you
actually measure the SNR of an ADC, right?

There are procedures for testing those sorts of things.
Check your ADC's data sheet (or with the manufacturer,
they might have a procedure), or read chapter 13.9.1 in

Lyons: Understanding DSP, 2nd ed., 2004.

Rune
Reply With Quote
  #10 (permalink)  
Old 02-15-2008, 05:06 PM
Jerry Avins
Guest
 
Posts: n/a
Default Re: Problem in SNR

sunil_ic wrote:
>> On 13 Feb, 05:05, "sunil_ic" <sunil...@gmail.com> wrote:
>>>> On Feb 12, 7:10=A0am, "sunil_ic" <sunil...@gmail.com> wrote:
>>>> How are you calculating SNR?
>>>> Dirk
>>> Dear Dirk,
>>> At 25GHz sample rate, I am doing 1024 point FFT at output from the ADC.

> So
>>> my input signal (122070312.5Hz) will be at f5, 5th sample, in

> frequency
>>> domain (FFT of the output signal). So I calculated singal power by

> taking
>>> square of the 5th sample. And rest all samples in the FFT are the
>>> noise+harmonics.

>> Seems reasonable.
>>
>>> So I calculated noise power by integrating all samples'
>>> square.

>> Did you make sure to leave ouut the harmonic where the signal
>> is located?
>>
>> Rune
>>

> I am considering harmonics also as Noise. Is it true assumption ?


Only in the sense that any unwanted signal could be loosely called
noise. In the same way, a tomato plant in a flower garden could be
called a weed.

Jerry
--
Engineering is the art of making what you want from things you can get.
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
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
Are you face any problem with processor....no problem study the fulldetails here... [email protected] VHDL 0 03-09-2008 02:35 PM
VHDL syntax problem? Xilinx problem? jesse lackey VHDL 2 05-30-2007 03:02 AM
Multiple Micorblaze instantion problem solved, Facing debugging related problem. Shant FPGA 1 02-08-2007 08:47 AM
problem with timing simulation (clear explanation of problem) [email protected] FPGA 1 12-06-2005 12:50 PM
interesting!!! help identify this problem!!! maybe an optimal sampling problem? Joenyim Kim DSP 1 04-02-2004 04:53 AM


All times are GMT +1. The time now is 12:36 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