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

MATLAB Usage

Description

This function returns the square root of the complex input vector

Input/Output

Input: Vector X (includes the real part Xr, and the imaginary part Xi)

Output: Vector Y (includes the real part Yr, and the imaginary part Yi)

Algorithm

To implement it in fix point dsp, we change this to

For the ANGLE-C.ASM algorithm, please refer to angle-c.asm. The following describes how to calculate SIN and COS

Use the CORDIC algorithm

Memory & Register

Memory allocation:

X memory:

Y memory:

Register usage:

Status Register

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

Data Size Limit

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

Data Range Limit

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

Precision

In the case of DSP563, precision is 14 bits.

In the case of DSP566, precision is 15 bits.


 sqrt-pr.asm sum-r.asm