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 #14 background imageLoading...
Page #14 background image
Function Descriptions
Notes:
1. This function is not re-entrant as it uses global variables to store arguments; these
will be overwritten if the function is invoked while it is currently processing.
2. If the input buffer is not properly aligned, then the output will be unpredictable.
3. If you do not wish to align the input buffer, then you must use the CFFT_f32u func-
tion. This version of the function does not have any input buffer alignment require-
ments. Using CFFT_f32u will, however, result in lower cycle performance.
4. All buffers and stack are placed in internal memory (zero-wait states in data space).
Example:
The following sample code obtains the complex FFT of the input.
#include "FPU.h"
#define CFFT_STAGES 7
#define CFFT_SIZE (1 << CFFT_STAGES)
/
*
CFFTin1Buff section to 4
*
FFT_SIZE in the linker file
*
/
#pragma DATA_SECTION(CFFTin1Buff,"CFFTdata1");
float CFFTin1Buff[CFFT_SIZE
*
2];
#pragma DATA_SECTION(CFFToutBuff,"CFFTdata3");
float CFFToutBuff[CFFT_SIZE
*
2];
#pragma DATA_SECTION(CFFTF32Coef,"CFFTdata4");
float CFFTF32Coef[CFFT_SIZE];
CFFT_F32_STRUCT cfft;
main()
{
cfft.InPtr = CFFTin1Buff; /
*
Input data buffer
*
/
cfft.OutPtr = CFFToutBuff; /
*
FFT output buffer
*
/
cfft.CoefPtr = CFFTF32Coef; /
*
Twiddle factor buffer
*
/
cfft.FFTSize = CFFT_SIZE; /
*
FFT length
*
/
cfft.Stages = CFFT_STAGES; /
*
FFT Stages
*
/
... ...
CFFT_f32_sincostable(&cfft); /
*
Initialize twiddle buffer
*
/
CFFT_f32(&cfft); /
*
Calculate output
*
/
}
Benchmark Information:
The following table provides benchmark numbers for the function. Note that these include the
cycles used in the call/return from the function
FFTSize C-Callable ASM (Cycle Count)
32 1121
64 2331
128 5029
256 11023
512 24249
1024 53219
Table 3.4: Benchmark Information
Sep 10, 2012 14

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