Motorola DSP Developer's Kit    
decimate-fir-c.asm

MATLAB Usage

Description

Function decimate resamples data at a lower rate after lowpass FIR filtering. Input vector X is a complex vector

Input/Output

Input Parameters: complex Vector X, int r, int nfilt

Output Parameters: complex Vector Y

Algorithm

The MEX function decimate_fir.m calculates vector b, vector list, int nout, and int nbeg,. The CMEX function loads these parameters into dsp memory for asm function use.

Memory & Register

Memory allocation:

In X memory:

In Y memory:

Input data length:

Register usage:

Status Register

No status registers or bits are set explicitly during the function execution.

Data Size Limit

The input vector X length must longer than r*(nfilt+1). The length of vector X can't be larger than the continuous available data memory size.

Data Range Limit

The input vector X range is [-1.0, +1.0].

Precision

In the case of DSP563, precision is 21 bits.

In the case of DSP566, precision is 12 bits.


 decimate-fir-r.asm decimate-iir-r.asm