Motorola DSP Developer's Kit
ifft-r.asm
Motorola DSP Developer's Kit    
ifft-r.asm

MATLAB Usage

Description

This function returns the discrete Fourier transform (DFT) of the input for real vector X

Input/Output

Input: Vector Xe (even index input data, located in X memory), and vector Xo (odd index input data, located in Y memory)

Output: Vector Yr (real data of output), and vector Yi (imaginary data of output)

Algorithm

First, use the algorithm in FFT-C.ASM to calculate the length/2 complex data FFT.

Then, use the split algorithm to calculate the final results.

No scaling is required for the input data; the output data should be scaled up by 2^(r2+1).

For example, after the FFT is done and r2=7, to get true FFT values, every output item has to be shifted left 8 bits.

The scaling algorithm is described below:

Memory & Register

Memory allocations:

The above two symbols are also used as output symbols.

Register usage:

Status Register

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


 filter-c.asm ifft-c.asm