dsp.CICCompensationInterpolator
Compensate for CIC interpolation filter using FIR interpolator
Description
You can compensate for the shortcomings of a CIC interpolator, namely its passband droop and wide transition region, by preceding it with a compensation interpolator. This System object™ lets you design and use such a filter.
To compensate for the shortcomings of a CIC filter using an FIR interpolator:
Create the
dsp.CICCompensationInterpolator
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, seeWhat Are System Objects?
Creation
Syntax
Description
returns a System object,ciccompint
= dsp.CICCompensationInterpolatorciccompint
, that applies an FIR interpolator to each channel of an input signal. Using the properties of the object, the interpolation filter can be designed to compensate for a subsequent CIC filter.
returns a CIC compensation interpolator System object,ciccompint
= dsp.CICCompensationInterpolator(interp
)ciccompint
, with theInterpolationFactor
property set tointerp
.
returns a CIC compensation interpolator System object,ciccompint
= dsp.CICCompensationInterpolator(cic
)ciccompint
, with theCICRateChangeFactor
,CICNumSections
, andCICDifferentialDelay
properties specified in thedsp.CICInterpolator
System objectcic
.
returns a CIC compensation interpolator System object,ciccompint
= dsp.CICCompensationInterpolator(cic
,interp
)ciccompint
, with theCICRateChangeFactor
,CICNumSections
, andCICDifferentialDelay
properties specified in thedsp.CICInterpolator
System objectcic
, and theInterpolationFactor
property set tointerp
.
returns a CIC compensation interpolator object with each specified property set to the specified value. Enclose each property name in quotes. You can use this syntax with any previous input argument combinations.ciccompint
= dsp.CICCompensationInterpolator(___,Name,Value
)
Properties
Usage
Syntax
Description
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the System object as the first input argument. For example, to release system resources of a System object namedobj
, use this syntax:
release(obj)
Examples
Algorithms
的response of a CIC filter is given by:
R,D, andNare the rate change factor, the differential delay, and the number of sections in the CIC filter, respectively.
After decimation, the CIC response has the form:
的normalized version of this last response is the one that the CIC compensator needs to compensate. Hence, the passband response of the CIC compensator should take the following form:
whereωpis the passband frequency of the CIC compensation filter.
Notice that whenω/2R≪ π, the previous equation forHciccomp(ω) can be simplified using the fact that sin(x) ≅x:
This previous equation is the inverse sinc approximation to the true inverse passband response of the CIC filter.
Extended Capabilities
Version History
Introduced in R2014b