資源簡介
DSP2812上實(shí)現(xiàn)128點(diǎn)fft算法+cmd文件,頭文件,庫文件通用配置下就行了,絕對能用
代碼片段和文件信息
//?TI?File?$Revision:?/main/2?$
//?Checkin?$Date:?April?29?2005???11:11:45?$
//###########################################################################
//
//?FILE: DSP281x_Adc.c
//
//?title: DSP281x?ADC?Initialization?&?Support?Functions.
//
//###########################################################################
//?$TI?Release:?DSP281x?C/C++?Header?Files?V1.20?$
//?$Release?Date:?July?27?2009?$
//###########################################################################
#include?“DSP281x_Device.h“?????//?DSP281x?Headerfile?Include?File
#include?“DSP281x_Examples.h“???//?DSP281x?Examples?Include?File
#define?ADC_usDELAY??8000L
#define?ADC_usDELAY2?20L
//---------------------------------------------------------------------------
//?InitAdc:?
//---------------------------------------------------------------------------
//?This?function?initializes?ADC?to?a?known?state.
//
void?InitAdc(void)
{
extern?void?DSP28x_usDelay(Uint32?Count);
????//?To?powerup?the?ADC?the?ADCENCLK?bit?should?be?set?first?to?enable
????//?clocks?followed?by?powering?up?the?bandgap?and?reference?circuitry.
????//?After?a?5ms?delay?the?rest?of?the?ADC?can?be?powered?up.?After?ADC
????//?powerup?another?20us?delay?is?required?before?performing?the?first
????//?ADC?conversion.?Please?note?that?for?the?delay?function?below?to
????//?operate?correctly?the?CPU_CLOCK_SPEED?define?statement?in?the
????//?DSP28_Examples.h?file?must?contain?the?correct?CPU?clock?period?in
????//?nanoseconds.?For?example:
AdcRegs.ADCTRL3.bit.ADCBGRFDN?=?0x3; //?Power?up?bandgap/reference?circuitry
DELAY_US(ADC_usDELAY);??????????????????//?Delay?before?powering?up?rest?of?ADC
AdcRegs.ADCTRL3.bit.ADCPWDN?=?1; //?Power?up?rest?of?ADC
DELAY_US(ADC_usDELAY2);?????????????????//?Delay?after?powering?up?ADC
}
//===========================================================================
//?No?more.
//===========================================================================
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????2018??2009-08-04?09:30??fft2\DSP281x_Adc.c
?????文件???????8489??2009-08-04?09:30??fft2\DSP281x_Adc.h
?????文件???????3585??2009-08-04?09:30??fft2\DSP281x_DevEmu.h
?????文件???????3939??2009-11-06?10:33??fft2\DSP281x_Device.h
?????文件???????3251??2009-08-04?09:30??fft2\DSP281x_Examples.h
?????文件???????2557??2009-08-04?09:30??fft2\DSP281x_PieCtrl.c
?????文件???????5894??2009-08-04?09:30??fft2\DSP281x_PieCtrl.h
?????文件???????5414??2009-08-04?09:30??fft2\DSP281x_PieVect.c
?????文件???????6391??2009-08-04?09:30??fft2\DSP281x_PieVect.h
?????文件???????1884??2009-11-06?10:47??fft2\DSP281x_SysCtrl.c
?????文件??????11920??2009-08-04?09:30??fft2\DSP281x_SysCtrl.h
?????文件???????3884??2009-11-04?16:48??fft2\F2812_EzDSP_RAM_lnk.cmd
?????文件??????38623??2002-03-01?13:01??fft2\fft.h
?????文件??????16198??2003-11-07?11:50??fft2\fft.lib
?????文件???????3351??2009-11-08?10:40??fft2\ffttest.c
?????目錄??????????0??2009-11-08?10:48??fft2
-----------?---------??----------?-----??----
???????????????117398????????????????????16
評論
共有 條評論