The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Measurements >> Other Measurements >> Query Signal to Noise Ratio of ADC
https://designers-guide.org/forum/YaBB.pl?num=1221587761

Message started by shaikh_sarfraz on Sep 16th, 2008, 10:56am

Title: Query Signal to Noise Ratio of ADC
Post by shaikh_sarfraz on Sep 16th, 2008, 10:56am

Hi,
I am simulating an ADC for SNR.
I have got the frequency spectrum consisting of signal and noise.

Now as per definition SNR= 20*log(RMS_Signal/RMS_Noise)

RMS_Signal = Peak_Signal/sqrt(2)

My doubt is regarding calculating RMS_Noise:
Suppose I have 128 samples of noise
How is RMS_Noise defined:
1). temp = (Noise1)**2 + (Noise2)**2.........+(Noise128)**2
    RMS_Noise = sqrt(temp/128)

2). temp = (Noise1)**2 + (Noise2)**2.........+(Noise128)**2
    RMS_Noise = sqrt(temp/2)

Best Regards
Sarfraz




Title: Re: Query Signal to Noise Ratio of ADC
Post by Tlaloc on Sep 16th, 2008, 8:20pm

It is most definitely #1.  Remember that the M in RMS stands for mean.  Standard mean is 1/N*(x1+x2+...+xN).  RMS is √(1/N*(x12+x22+...+xN2)).


Quote:
RMS_Signal = Peak_Signal/sqrt(2)

This is only for the specific case when the signal is a sin wave.

Title: Re: Query Signal to Noise Ratio of ADC
Post by shaikh_sarfraz on Sep 17th, 2008, 1:44am

Thanks for your reply.
If you go by RMS definition, then 1 should be the correct answer.
However I have seen, in many places (2) is being used.
So I wanted to make sure, which is the correct formulation.
It is my guess that is the noise sources are uncorelated than (2) should be used.

Can any body pour in more information?

Best Regards
Sarfraz

Title: Re: Query Signal to Noise Ratio of ADC
Post by Tlaloc on Sep 18th, 2008, 12:45pm


Quote:
It is my guess that is the noise sources are uncorelated than (2) should be used.

Correlation has nothing to do with.  RMS is still RMS.  It is always the first definition when you have discrete points.  If the signal is continuous, e.g. a sine wave, then the definition is 1/N*∫f(x)2dx.  For the case of sine wave, the integral simplifies to sqrt(2)*peak.

Title: Re: Query Signal to Noise Ratio of ADC
Post by Tlaloc on Sep 22nd, 2008, 7:56am

Sorry, the definition of the continuous time RMS was wrong.  It should be 1/(T2-T1)*∫f(x)2dx with the integral taken from T1 to T2 for periodic functions.  T1 and T2 needs to include an integer number of cycles.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.