DSPRelated.com
Forums

cicdecimate filter

Started by egan_nc May 15, 2003
Hi everyone,
I am trying to design a 3rd order with decimation ratio of 8 comb
filter using matlab's cicdecimate function. The input signal is the 1
bit output of a 2rd order delta sigma modulator. According to the
example on matlab, I should set up the file as follow.
M = 1; % Differential delays
N = 3; % Number of stages
R = 8; % Rate-change factor
x=load(`sig_del_output.txt'); %sigma delta output
q = quantizer([8 0],'fixed'); % Defines the properties of input x.
y = cicdecimate(M, N, R, x, q);
My question is what is q? if q defines the properties of input x is
that mean I can set up my q as q=quantizer([1 0],'fixed'); since x is
going to be either 0 or 1?
I tried that and it didn't work.
The next question is if I have to implement this in hardware, what
is the minimum bit for each stage of the 3 integrator and the 3
differentiator?
Thanks in advance.
EngGa