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

MATLAB Usage

Description

This function decimate resamples data at a lower rate after lowpass FIR filtering. Input vector X is a real vector

Input/Output

Input Parameters: Real vector X, int r, int nfilt

Output Parameters: Real 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 function execution.

Data Size Limit

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 value range of input vector X is [-1.0, +1.0].

Precision

In the case of DSP563, precision is 21 bits.

In the case of DSP566, precision is 12 bits.


 conv-c.asm decimate-fir-c.asm