Motorola DSP Developer's Kit    
xcorr-c.asm

MATLAB Usage

Description

This function returns the length 2*M-1 cross-correlation sequence in a column vector where A and B are length N vectors.

Input/Output

Input: Vector A (includes the real part Ar, and the imaginary part Ai), vector B (includes the real part Br, and the imaginary part Bi), int MAXLAG, and int 'flag'

Output: Vector C (includes the real part Cr, and the imaginary part Ci)

Algorithm

Memory & Register

Memory allocation:

Register usage

Assumes M{0...7} = $ffffff

Status Register

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

Data Size Limit

The total size of all vectors 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 18 bits.

In the case of DSP566, precision is 10 bits.

Performance Limit

DSP563:

DSP566:


 xcorr-r.asm Motorola Toolbox Function Reference