NikosTS
Advanced Member level 4
>> Se=(1/12)/(fs/2);
>> Sq=Se*(2*sin(pi*f/fs))^6;
On the book that you suggested, i also saw that formula for the ideal curve. But are you sure it is correct?
According to this , the curve is dependant on the sampling frequency, which as far as i understand it shouldn't be.
Why do you use fs=1GHz ?
I can not believe such high frequency clock for Delta-Sigma-Fractional-N Frequency Synthesizer.
As i wrote above , it shouldn't matter neither on the measured or ideal curve.
On all the formulas, like 2*sin(pi*f/fs), the discrete frequencies are normalized to sampling frequency. So , a change in sampling frequency would also change the discrete frequencies accordingly resulting in a constant ratio f/fs (no matter the fs).
Anyway, i tried with a more realistic sampling frequency ( 40M ) and still don't get near the ideal curve.
Could you also tell me where did you find the formula using " -10*log(binWidth) " when using the fft method ?
Thank you