confused by sigma-delta ADC

Status
Not open for further replies.

enjoypercy

Newbie level 4
Joined
May 31, 2005
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,334
I designed a 2nd order sigma-delda ADC in matlab.but I don't know why the power spectrum of noise is so bad.could someone point out the problems? I would appriciate any help.here is my code:
k=100; %oversampling rate
fs=200; %the nyquist frequence
t=0:1/(k*fs):1;
x=sin(2*pi*100*t);

v1(1)=0; %2nd order ADC
v2(1)=0;
u2(1)=-1;
y(1)=1;
for n=2:length(x)
v2=v2(n-1)+u2(n-1);
if v2>=0
y=1;
else y=-1;
end
e=y-v2(n-1);
u1=x-y;
v1=v1(n-1)+u1;
u2=v1-y;
end



y_pinpu=20*log10(abs(fft).^2/length);%/max(abs(fft)));
figure;
plot((1:200)/length(y_pinpu)*k*fs,y_pinpu(i));



how can I get the right result? thanks a lot!
 

maybe you need more periods to analysis!
 

can you show me the simulation result, I mean the waveform. that will be helpful to find the problem.
 
Reactions: tlucky

    tlucky

    Points: 2
    Helpful Answer Positive Rating
thanks for your attention!
I have sovled the problem.
the amplitude of the source signal can't be 1, which equals to the Vref. that will lead to the unstable state.
but is that the rule of ADC?
 

enjoypercy said:
thanks for your attention!
I have sovled the problem.
the amplitude of the source signal can't be 1, which equals to the Vref. that will lead to the unstable state.
but is that the rule of ADC?

for delta sigma adc, large input will overload the quantizer.
the input range is often limited.
 

Hi mate,
Do you have any code for ADC/DAC simulation ?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…