# Does the order of the CICCOMP matter in the matlab?

1. ## ciccomp

Hi,all
I am in a project of Sigma-Delta ADC. But I get in trouble when I design the digital filter in the MATLAB. The filter consists of a CIC, a CICCOMP and two halfband. When CIC is followed by the CICCOMP and then the twe halfbands, the CICCOMP can compensate the droop caused by the CIC in the passband well. But when I exchange the order between the CICCOMP and the first halfband(the order now is CIC-halfband-CICCOMP-halfband), there will be a bugle in the passband which is like overcompensation. I don't know why it happens. I attach the figure I simulate and the code I used in the MATLAB.

So thanks for your response.

this is the code i use in the matlab.
Fs = 6144000; % Input sampling frequency
Fpass = 21770; % Frequency band of interest
M = 16; % Decimation factor of CIC
Hcic = design(fdesign.decimator(M,'CIC',01,Fpass,120,Fs)) ;
Hd = cascade(dfilt.scalar(1/gain(Hcic)),Hcic); %the CIC filter
hb=fdesign.decimator(2,'halfband',148460,120,38400 0);%first halfband
Hb=equiripple(hb);
d = fdesign.ciccomp(Hcic.DifferentialDelay, ...
Hcic.NumberOfSections,Fpass,74230,.01,120,192000); %CICCOMP
Hdc=design(d);
fvtool(filter)

•

waiting~~~~

•

3. ## Re: Does the order of the CICCOMP matter in the matlab?

somebody help~~~

•

~~~~~~

5. ## Does the order of the CICCOMP matter in the matlab?

my matlab version is 7.1~~~

•

6. ## Does the order of the CICCOMP matter in the matlab?

i try it again in matlab2009a
but the problem exists as before. Anyone knows the answer?

7. ## Re: Does the order of the CICCOMP matter in the matlab?

Hi all, Im also into this CIC design. Can I know how to build the following in Matlab to see the graph response?

Thanks for help~ :)

--[[ ]]--