資源簡介
包含TI官網的DSP281x相關頭文件、cmd文件,各個功能模塊的Demo

代碼片段和文件信息
//?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.
//===========================================================================
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????I.A....????541141??2009-08-03?17:13??DSP281x\v120\doc\DSP281x_HeaderFiles_QuickStart_Readme.pdf
????I.A....??????6680??2009-08-04?09:30??DSP281x\v120\DSP281x_common\cmd\F2810.cmd
????I.A....??????7285??2009-08-04?09:30??DSP281x\v120\DSP281x_common\cmd\F2812.cmd
????I.A....??????3784??2009-08-04?09:30??DSP281x\v120\DSP281x_common\cmd\F2812_EzDSP_RAM_lnk.cmd
????I.A....??????7479??2009-08-04?09:30??DSP281x\v120\DSP281x_common\cmd\F2812_XintfBoot.cmd
????I.A....??????4799??2009-08-04?09:30??DSP281x\v120\DSP281x_common\include\DSP281x_DefaultIsr.h
????I.A....??????3251??2009-08-04?09:30??DSP281x\v120\DSP281x_common\include\DSP281x_Examples.h
????I.A....??????2544??2009-08-04?09:30??DSP281x\v120\DSP281x_common\include\DSP281x_GlobalPrototypes.h
????I.A....????146860??2009-08-04?09:30??DSP281x\v120\DSP281x_common\include\DSP281x_SWPrioritizedIsrLevels.h
????I.A....??????2018??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_Adc.c
????I.A....??????1900??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_CodeStartBranch.asm
????I.A....??????4166??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_CpuTimers.c
????I.A....??????2418??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_CSMPasswords.asm
????I.A....???????873??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_DBGIER.asm
????I.A....?????25437??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_DefaultIsr.c
????I.A....??????8336??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_ECan.c
????I.A....??????1071??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_Ev.c
????I.A....??????1666??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_Gpio.c
????I.A....??????1871??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_InitPeripherals.c
????I.A....??????5767??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_Mcbsp.c
????I.A....??????1323??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_MemCopy.c
????I.A....??????2557??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_PieCtrl.c
????I.A....??????5414??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_PieVect.c
????I.A....??????1151??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_Sci.c
????I.A....??????1117??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_Spi.c
????I.A....?????36116??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_SWPrioritizedDefaultIsr.c
????I.A....??????9459??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_SWPrioritizedPieVect.c
????I.A....??????8543??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_SysCtrl.c
????I.A....??????2525??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_usDelay.asm
????I.A....??????6825??2009-08-04?09:30??DSP281x\v120\DSP281x_common\source\DSP281x_Xintf.c
............此處省略300個文件信息
評論
共有 條評論