lunbaby
Newbie level 1
I design a 3-order sigma delta modulator for audio application and want to achieve
16-bits resolution(96dB). For hspice simulation, I write FFT code :
fs=5.12MHz BW=20k fin=fs*N/np , N is prime
.tran 1/fs 12779.62us
.fft v start=100ns stop=12779.62us window=hann np=65536 freq=fin
freq: input frequency
start: choose arbitrarily
stop: start + np*(1/fs)
I use 1/fs for the scale the PSD is only 2-order shaping(40db/dec)
Change the 1/fs to 1ns(more smaller) the PSD is better!!
But when I want to calculate FFT in matlab, the output points are much more than
np(65536) so I don't understand how to do.
And which one can tell me why using the scale 1/fs can't achieve good result ?
Thanks~~!!
16-bits resolution(96dB). For hspice simulation, I write FFT code :
fs=5.12MHz BW=20k fin=fs*N/np , N is prime
.tran 1/fs 12779.62us
.fft v start=100ns stop=12779.62us window=hann np=65536 freq=fin
freq: input frequency
start: choose arbitrarily
stop: start + np*(1/fs)
I use 1/fs for the scale the PSD is only 2-order shaping(40db/dec)
Change the 1/fs to 1ns(more smaller) the PSD is better!!
But when I want to calculate FFT in matlab, the output points are much more than
np(65536) so I don't understand how to do.
And which one can tell me why using the scale 1/fs can't achieve good result ?
Thanks~~!!