fftcmplx
所属分类:DSP编程
开发工具:C/C++
文件大小:85KB
下载次数:33
上传日期:2005-07-13 20:31:18
上 传 者:
jiangfeiying
说明: adsp的fft标准源代码,支持adsp 211XX,系列,效率很高
(adsp fft the standard source code, support adsp 211XX, series, high efficiency)
文件列表:
DEF21020.H (7253, 1991-05-02)
DOIT.BAT (49, 1991-04-18)
FFT.ACH (581, 1993-12-14)
FFT.DOC (9338, 1991-08-21)
FFTRAD2.ASM (14267, 1994-11-07)
FFTRAD2.EXE (8596, 1994-09-23)
FFTRAD4.ASM (14255, 2001-04-24)
FFTRAD4.EXE (9444, 1994-09-23)
INIMAG.DAT (6144, 1994-09-23)
INREAL.DAT (6144, 1994-09-23)
MAKEWAVE.C (3318, 1993-12-14)
MAKEWAVE.EXE (29220, 1991-04-19)
PLOTLOG.M (1197, 1991-03-21)
TC2.DAT (3072, 1994-09-23)
TC4.DAT (4608, 1994-09-23)
TS2.DAT (3072, 1994-09-23)
TS4.DAT (4608, 1994-09-23)
TWIDRAD2.C (1762, 1993-12-14)
TWIDRAD2.EXE (28582, 1991-06-13)
TWIDRAD4.C (2840, 1993-12-14)
TWIDRAD4.EXE (29074, 1991-06-13)
____________________________________________________________________________
README.FT2
Version 25-APR-91, Analog Devices DSP Applications (617) 461-3672
Modified 23-SEP-94
This directory contains code and utilities for running and testing a
radix-2 FFT on the ADSP-21020. A PC-MATLAB script file PLOTLOG.M is
included for ploting and comparison of FFT results.
The constants and test files are setup for an N=256 point FFT. To use as is
just type "DOIT FFTRAD2". The batch file will end up in the
ADSP-21020 simulator.
To simulate the FFT and examine the results:
- Set a breakpoint at location 0xb.
- Run until the breakpoint is reached.
- Open a DM window and ^T until it is in a floating point format.
- Set the display precision to 9 digits.
- Use ^D to dump refft (0x0000 to 0x00ff) to the file rdata.dat.
- Use ^D to dump imfft (0x4000 to 0x40ff) to the file idata.dat.
- Quit the simulator.
If you have PC-MATLAB:
- Run the PC-MATLAB TRANSLATE program on rdata.dat,idata.dat,
inreal.dat, and inimag.dat using all the defaults.
- Run MATLAB.
- Type PLOTLOG and enter the number of points in the FFT.
To change the length: run the twiddle factor generation C program TWIDRAD2.EXE;
run the test input program MAKEWAVE.EXE to create new real and imaginary input
test waveforms; edit the souce code FFTRAD2.ASM to change the specified
constants; the assemble and link with the MAKE.BAT PCDOS batch file. The batch
file will end up in the ADSP-21020 simulator.
File descriptions:
fftrad2.asm - ADSP-21020 assembly code for FFT
fft.ach - architecture file for FFT
def21020.h - definitions for bits in the ADSP-21020's system regs
doit.bat - DOS batch file to assemble, link, and start simulator
twidrad2.c - source for FFT twiddle factor generation program
makewave.c - source for FFT test waveform generation program
plotlog.m - PC-MATLAB script for plotting FFT results
tc2.dat - real twiddle factors from TWIDRAD2 program
ts2.dat - imaginary twiddle factors from TWIDRAD2 program
inreal.dat - real input array
inimag.dat - imaginary input array
rdata.dat - real input array for PLOTLOG MATLAB script
idata.dat - imaginary input array for PLOTLOG MATLAB script
Goodluck.
____________________________________________________________________________
近期下载者:
相关文件:
收藏者: