Motorola DSP Developer's Kit
interp-c.asm
Motorola DSP Developer's Kit
interp-c.asm
Motorola DSP Developer's Kit    
interp-c.asm

MATLAB Usage

Description

This function resamples data at a higher rate using lowpass interpolation. The input data is complex data.

Y = INTERP (IDATA, R, LEN, B) resamples the sequence in vector IDATA at R times the original sample rate. The resulting resampled vector Y is R times longer, LENGTH(Y) = R*LENGTH(IDATA). A symmetric filter, B, allows the original data to pass through unchanged and interpolates between so that the mean square error between them and their ideal values is minimized.

Input/Output

Input: Complex vector IDATA, int R, int LEN, and vector B

Output: Complex vector Y

Algorithm

Memory & Register

Memory allocation:

X memory:

Y memory:

Register usage:

Status Register

The assembly function interp-c.asm does not set explicitly any status registers/bits during the function execution.

Data Size Limit

The length of vector IDATA can't be larger than the continuous available data memory size.

Data Range Limit

The value of input vectors must be between -1.0 and +1.0.

Precision

In the case of DSP563, precision is 21 bits.

In the case of DSP566, precision is 12 bits.


 interp-r.asm log-r.asm