資源簡介
DSP2812 串口通信完整工程代碼
串口通信
調試通過
完整工程

代碼片段和文件信息
//?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.
//===========================================================================
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-04-25?09:41??47LED_chuankou5\
?????目錄???????????0??2018-04-25?09:41??47LED_chuankou5\DSP281x_common\
?????目錄???????????0??2018-04-25?09:41??47LED_chuankou5\DSP281x_common\cmd\
?????文件????????6680??2009-08-04?09:30??47LED_chuankou5\DSP281x_common\cmd\F2810.cmd
?????文件????????7285??2009-08-04?09:30??47LED_chuankou5\DSP281x_common\cmd\F2812.cmd
?????文件????????4827??2015-04-28?12:26??47LED_chuankou5\DSP281x_common\cmd\F2812_EzDSP_RAM_lnk.cmd
?????文件????????7479??2009-08-04?09:30??47LED_chuankou5\DSP281x_common\cmd\F2812_XintfBoot.cmd
?????文件????????4886??2015-04-09?10:52??47LED_chuankou5\DSP281x_common\cmd\F2812_YHDSP_RAM_lnk.cmd
?????文件????????7418??2015-04-09?14:18??47LED_chuankou5\DSP281x_common\cmd\YHF2812_XintfBoot.cmd
?????目錄???????????0??2018-04-25?09:41??47LED_chuankou5\DSP281x_common\include\
?????文件????????2047??2009-03-09?00:00??47LED_chuankou5\DSP281x_common\include\DEVICE.H
?????文件????????4799??2009-08-04?09:30??47LED_chuankou5\DSP281x_common\include\DSP281x_DefaultIsr.h
?????文件????????3251??2009-08-04?09:30??47LED_chuankou5\DSP281x_common\include\DSP281x_Examples.h
?????文件????????2544??2009-08-04?09:30??47LED_chuankou5\DSP281x_common\include\DSP281x_GlobalPrototypes.h
?????文件??????146860??2009-08-04?09:30??47LED_chuankou5\DSP281x_common\include\DSP281x_SWPrioritizedIsrLevels.h
?????文件?????????528??2009-03-09?00:00??47LED_chuankou5\DSP281x_common\include\Fat16.h
?????文件?????????540??2009-03-09?00:00??47LED_chuankou5\DSP281x_common\include\Fat32.h
?????文件?????????426??2009-03-09?00:00??47LED_chuankou5\DSP281x_common\include\HAL.h
?????文件?????????622??2009-03-09?00:00??47LED_chuankou5\DSP281x_common\include\HPI16.h
?????文件?????????911??2009-03-09?00:00??47LED_chuankou5\DSP281x_common\include\HPI32.H
?????文件????????7531??2015-04-08?14:54??47LED_chuankou5\DSP281x_common\include\SD.h
?????文件????????2056??2009-03-09?00:00??47LED_chuankou5\DSP281x_common\include\SFO.h
?????文件????????2993??2009-03-09?00:00??47LED_chuankou5\DSP281x_common\include\SFO_V5.h
?????文件?????????925??2009-03-09?00:00??47LED_chuankou5\DSP281x_common\include\common.h
?????文件????????1239??2015-04-01?15:01??47LED_chuankou5\DSP281x_common\include\ext_inf.h
?????文件?????????574??2009-03-09?00:00??47LED_chuankou5\DSP281x_common\include\fat.h
?????文件???????11036??2009-03-09?00:00??47LED_chuankou5\DSP281x_common\include\string.h
?????文件?????????646??2006-04-19?15:00??47LED_chuankou5\DSP281x_common\include\volume.h
?????目錄???????????0??2018-04-25?09:41??47LED_chuankou5\DSP281x_common\lib\
?????文件??????526414??2007-04-13?17:19??47LED_chuankou5\DSP281x_common\lib\IQmath.lib
?????文件????????5822??2005-09-08?10:58??47LED_chuankou5\DSP281x_common\lib\SFO_TI_Build.lib
............此處省略123個文件信息
評論
共有 條評論