Motorola DSP Developer's Kit    
xcorr-r.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 real vectors

Input/Output

Input: Vector A, vector B, int MAXLAG, and int 'flag'

Output: Vector C

Algorithm

Memory & Register

Memory allocation:

In X memory:

In Y memory:

Register usage:

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

Status Register

The assembly function xcorr-r.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.

Perfumes Limit

DSP563:

DSP566:


 sum-c.asm xcorr-c.asm