資源簡(jiǎn)介
28335結(jié)合AD采樣的svpwm實(shí)現(xiàn)..

代碼片段和文件信息
//###########################################################################
//
//?FILE: DSP281x_Adc.c
//
//?title: DSP281x?ADC?Initialization?&?Support?Functions.
//
//###########################################################################
//
//??Ver?|?dd?mmm?yyyy?|?Who??|?Description?of?changes
//?=====|=============|======|===============================================
//??1.00|?11?Sep?2003?|?L.H.?|?Changes?since?previous?version?(v.58?Alpha)
//??????|?????????????|??????|?ADC_usDELAY?changed?from?5000L?to?8000L
//###########################################################################
#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í)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2010-08-02?00:48??svpwm\
?????文件?????????325??2007-05-28?16:55??svpwm\cc_build_Debug.log
?????目錄???????????0??2010-08-02?00:48??svpwm\Debug\
?????文件?????????594??2007-05-28?16:55??svpwm\Debug.lkf
?????文件?????????594??2007-05-28?16:55??svpwm\Debug.lkv
?????文件???????11724??2007-05-28?16:04??svpwm\Debug\DSP281x_DefaultIsr.obj
?????文件??????144817??2007-05-28?16:04??svpwm\Debug\DSP281x_GlobalVariableDefs.obj
?????文件????????4553??2007-05-28?16:04??svpwm\Debug\DSP281x_PieCtrl.obj
?????文件???????13585??2007-05-28?16:04??svpwm\Debug\DSP281x_PieVect.obj
?????文件???????30087??2007-05-28?16:55??svpwm\Debug\main.obj
?????文件???????16804??2007-05-28?16:55??svpwm\Debug\test5.map
?????文件??????168632??2007-05-28?16:55??svpwm\Debug\test5.out
?????文件????????2137??2003-09-11?10:47??svpwm\DSP281x_Adc.c
?????文件????????8751??2003-09-11?10:54??svpwm\DSP281x_Adc.h
?????文件????????2177??2003-09-11?10:48??svpwm\DSP281x_CodeStartBranch.asm
?????文件????????4665??2003-09-11?10:47??svpwm\DSP281x_CpuTimers.c
?????文件????????5935??2003-09-11?10:53??svpwm\DSP281x_CpuTimers.h
?????文件????????2481??2003-09-11?10:48??svpwm\DSP281x_CSMPasswords.asm
?????文件?????????898??2003-09-11?10:47??svpwm\DSP281x_DBGIER.asm
?????文件???????25791??2003-09-11?10:47??svpwm\DSP281x_DefaultIsr.c
?????文件????????4940??2003-09-11?10:53??svpwm\DSP281x_DefaultIsr.h
?????文件????????2956??2003-09-11?10:53??svpwm\DSP281x_DevEmu.h
?????文件????????4615??2003-09-11?10:53??svpwm\DSP281x_Device.h
?????文件????????5999??2003-09-11?10:55??svpwm\DSP281x_ECan.c
?????文件???????47803??2003-09-11?10:54??svpwm\DSP281x_ECan.h
?????文件????????1120??2003-09-11?10:46??svpwm\DSP281x_Ev.c
?????文件???????24830??2003-09-11?10:53??svpwm\DSP281x_Ev.h
?????文件????????3525??2003-09-11?10:35??svpwm\DSP281x_Examples.h
?????文件????????2374??2003-09-11?10:35??svpwm\DSP281x_GlobalPrototypes.h
?????文件????????6980??2003-09-11?10:55??svpwm\DSP281x_GlobalVariableDefs.c
?????文件????????1715??2003-09-11?10:46??svpwm\DSP281x_Gpio.c
............此處省略38個(gè)文件信息
- 上一篇:影院管理系統(tǒng)
- 下一篇:飯客網(wǎng)絡(luò)免殺木馬捆綁器
評(píng)論
共有 條評(píng)論