DSPRelated.com
Forums

Signals on FFT bins, and Windowing

Started by analog_fever July 20, 2010
I have an input signal that is generated using the following statements.

Fs = 1.4287e6 (Sampling Frequency)
Fbin = 32 (FFT Bin Number)
N = 2^17 (FFT points)
t = 0:N-1
input = A*Sin(2*pi*(Fbin/N)*t)

I send this input through a Delta Sigma modulator. And then decimate it by
100 using a CIC decimation filter. Now the question is

1. I thought that the equation I use to generate the input, should always
generate frequencies located precisely on an FFT bin. Supporting that, the
frequency of interest from the filter output  after decimation looks
confined to very few bins for Fbin = 32, or multiples of it. However for
other values of Fbin, the frequency of interest is spread over a large
number of bins. 

I don't understand why is the signal incoherent for other values of Fbin.
Any thoughts?
On Jul 20, 6:33=A0pm, "analog_fever" <usu_vlsi@n_o_s_p_a_m.yahoo.com>
wrote:
> I have an input signal that is generated using the following statements. > > Fs =3D 1.4287e6 (Sampling Frequency) > Fbin =3D 32 (FFT Bin Number) > N =3D 2^17 (FFT points) > t =3D 0:N-1 > input =3D A*Sin(2*pi*(Fbin/N)*t) > > I send this input through a Delta Sigma modulator. And then decimate it b=
y
> 100 using a CIC decimation filter. Now the question is > > 1. I thought that the equation I use to generate the input, should always > generate frequencies located precisely on an FFT bin. Supporting that, th=
e
> frequency of interest from the filter output =A0after decimation looks > confined to very few bins for Fbin =3D 32, or multiples of it. However fo=
r
> other values of Fbin, the frequency of interest is spread over a large > number of bins. > > I don't understand why is the signal incoherent for other values of Fbin. > Any thoughts?
Time: dt =3D 1/Fs T =3D N*dt t =3D dt*(0:N-1); t =3D 0:dt:T-dt; t =3D linspace(0,T-dt,N); Frequency: df =3D 1/T df =3D Fs/N f =3D df*(0:N-1); f =3D 0:df:Fs-df; f =3D linspace(0,Fs-df,N); For exact representation of sinusoid at frequency f0 (period T0 =3D 1/f0) choose an integer m such that f0 =3D m*df, 1 <=3D m < N/2 T0 =3D T/m Otherwise, leakage will occur because of the higher frequencies caused by the discontinuities in the periodic extension of the waveform. Hope this helps. Greg