資源簡(jiǎn)介
2812 的c語言以及匯編語言例程包括頭文件 串口使用 電機(jī)控制例程等等

代碼片段和文件信息
//?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í)間???名稱
-----------?---------??----------?-----??----
?????文件?????115698??2011-09-04?14:48??DSP2812例程\bpra058.pdf
?????文件?????541141??2009-08-03?17:13??DSP2812例程\DSP281x_HeaderFiles_QuickStart_Readme.pdf
?????文件?????587853??2011-09-04?14:48??DSP2812例程\spraa76.pdf
?????文件????1701024??2011-09-04?14:49??DSP2812例程\spraad5.pdf
?????文件?????374430??2011-09-04?14:47??DSP2812例程\spraak2.pdf
?????文件?????321372??2011-09-04?14:50??DSP2812例程\spru051d.pdf
?????文件?????341534??2011-09-04?14:50??DSP2812例程\spru059e.pdf
?????文件?????250226??2011-09-04?14:52??DSP2812例程\spru060d.pdf
?????文件?????752944??2011-09-04?14:47??DSP2812例程\spru061d.pdf
?????文件??????21832??2011-09-04?14:49??DSP2812例程\sprugi6a.pdf
?????文件?????541141??2009-08-03?17:13??DSP2812例程\v120\doc\DSP281x_HeaderFiles_QuickStart_Readme.pdf
?????文件???????6680??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\cmd\F2810.cmd
?????文件???????7285??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\cmd\F2812.cmd
?????文件???????3784??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\cmd\F2812_EzDSP_RAM_lnk.cmd
?????文件???????7479??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\cmd\F2812_XintfBoot.cmd
?????文件???????4799??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\include\DSP281x_DefaultIsr.h
?????文件???????3251??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\include\DSP281x_Examples.h
?????文件???????2544??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\include\DSP281x_GlobalPrototypes.h
?????文件?????146860??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\include\DSP281x_SWPrioritizedIsrLevels.h
?????文件???????2018??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\source\DSP281x_Adc.c
?????文件???????1900??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\source\DSP281x_CodeStartBranch.asm
?????文件???????4166??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\source\DSP281x_CpuTimers.c
?????文件???????2418??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\source\DSP281x_CSMPasswords.asm
?????文件????????873??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\source\DSP281x_DBGIER.asm
?????文件??????25437??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\source\DSP281x_DefaultIsr.c
?????文件???????8336??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\source\DSP281x_ECan.c
?????文件???????1071??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\source\DSP281x_Ev.c
?????文件???????1666??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\source\DSP281x_Gpio.c
?????文件???????1871??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\source\DSP281x_InitPeripherals.c
?????文件???????5767??2009-08-04?09:30??DSP2812例程\v120\DSP281x_common\source\DSP281x_Mcbsp.c
............此處省略310個(gè)文件信息
評(píng)論
共有 條評(píng)論