Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

CIC decimator filter impulse response check

Status
Not open for further replies.

ali kotb

Member level 3
Member level 3
Joined
Feb 11, 2012
Messages
61
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Visit site
Activity points
1,732
hello all ,
I have a problem when designing CIC filter on matlab
here is the code :

r=64;
m=1;
n=3;
IFL = 0; % Input fraction length
CIC = mfilt.cicdecim(r,m,n);
CIC.InputFracLength = IFL;

I use fvtool to check the impusle response and I got figure 1 attached ,
fig2.pngfig1.png
I also used the following code as another check for impulse response (w/o using fvtool):
x= [1 zeros(1,511-1)];
d=filter(CIC,x);
stem(d);
and I got response of fig.2 which is completely different from fig.1

what is the problem ?

Regards,
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top