I have a second order sigma delta modulator in simulink matlab. it's working fine i applied a sinusoidal waveform to the input with Vp - p = 1V
and i have the same waveform(with a little delay), after low-pass filtering in the output :
I get this for fft
:
fft
sampling freq=256 MHz
input freq= 4MHz
Period of sample and hold clock is 1/256MHZ
And also sample time for adc_out
block seen in the pic is 1/256MHz
And i didn't touch anything else.
And i calculated the input freq based on this formula :
fin=(prime/N)* sampling freq
Prime is prime number, i chose 257
N
is number of fft points, i chose 16384
sampling freq is 256MHz
therefore i got 4MHz as the best input freq and these considerations, after fft, were supposed to give me a nice impulse at 4MHz and the shaped noise in the higher frequencies
as you can see i don't have my desired imupulse at 4MHz!
and i just don't know why!!