cic_init

Initialization of a CIC filter

Calling sequence

cic = cic_init(R, N); // By default, M = 1, and create a decimator
cic = cic_init(R, N, M);
cic = cic_init(R, N, M, mode = 'd' | 'u');

Parameters

R:

Decimation or interpolation ratio (must be an integer)

N:

Number of stages (e.g. number of integrators / differentiators)

M:

CIC design parameter (by default, M = 1)

mode:

'd' for a decimator, 'u' for a upsampler

cic:

Output CIC filter object

Description

This function initialize a CIC filter object. The parameter is the ratio between the higher sampling frequency and the lower sampling frequency, and must be an integer.