EasyManua.ls Logo

Texas Instruments C28 Series User Manual

Texas Instruments C28 Series
76 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #17 background imageLoading...
Page #17 background image
Function Descriptions
3.3 Complex Fast Fourier Transform Magnitude
Description:
This module computes the complex FFT magnitude. The output from CFFT_f32_mag matches
the magnitude output from the FFT found in common mathematics software and Code Com-
poser Studio FFT graphs.
If instead a normalized magnitude like that performed by the fixed-point TMS320C28x IQmath
FFT library is required, then the CFFT_f32s_mag function can be used. In fixed-point
algorithms scaling is performed to avoid overflowing data. Floating-point calculations do not
need this scaling to avoid overflow and therefore the CFFT_f32_mag function can be used
instead.
Header File:
FPU.h
Declaration:
void CFFT_f32_mag (CFFT_F32_STRUCT
*
)
Usage:
A pointer to the following structure is passed to the CFFT_f32_mag function.It is the same
structure described in the CFFT_f32 section:
typedef struct {
float32
*
InPtr;
float32
*
OutPtr;
float32
*
CoefPtr;
float32
*
CurrentInPtr;
float32
*
CurrentOutPtr;
Uint16 Stages;
Uint16 FFTSize;
} CFFT_F32_STRUCT;
Table 3.2 describes each element.
Alignment Requirements:
The Magnitude buffer requires no alignment but the input buffer to the complex FFT routine will
need alignment if using the CFFT_f32().
Notes:
1. All buffers and stack are placed in internal memory (zero-wait states in data space).
2. The magnitude calculation calls the sqrt function within the runtime-support library.
The magnitude function has not been optimized at this time.
3. The use of the sqrt function in the FPUfastRTS library will speed up this routine. The
example for the CFFT has an alternate build configuration(Debug_FASTRTS) where
the rts2800_fpu32_fast_supplement.lib is used in place of the standard runtime li-
brary rts2800_fpu32.lib.
Sep 10, 2012 17

Table of Contents

Other manuals for Texas Instruments C28 Series

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C28 Series and is the answer not in the manual?

Texas Instruments C28 Series Specifications

General IconGeneral
Architecture32-bit
CoreTMS320C28x
Operating Voltage3.3 V
Operating Temperature-40°C to 125°C
ADC12-bit
Communication InterfacesCAN, SPI, I2C, SCI
PeripheralsTimers
PackageVarious (e.g., LQFP, BGA)

Summary

Introduction to C28x FPU Library

C28x FPU Library Structure

Library Build Options

Details the compiler options used to build the FPU library.

FPU Library Header Files

Explains the purpose and content of the library's header files.

C Functions and IQMath Integration

Discusses the use of C functions and IQMath in the FPU library.

C28x FPU Library Function Descriptions

DSP Routines Overview

Covers Fast Fourier Transforms (FFT) and related functions for signal processing.

Vector and Matrix Operations

Provides functions for element-wise operations on complex and real vectors.

Core Math Functions

Includes fundamental math operations like square root.

Optimized Utility Functions

Offers optimized memory copy and set operations.

FPU Library Revision History

Important Notice and Disclaimers

Related product manuals