資源簡(jiǎn)介
DSP28335的SVPWM電機(jī)代碼,文件齊全,也適用無(wú)感

代碼片段和文件信息
//?TI?File?$Revision:?/main/5?$
//?Checkin?$Date:?October?23?2007???13:34:09?$
//###########################################################################
//
//?FILE: DSP2833x_Adc.c
//
//?title: DSP2833x?ADC?Initialization?&?Support?Functions.
//
//###########################################################################
//?$TI?Release:?DSP2833x/DSP2823x?C/C++?Header?Files?V1.31?$
//?$Release?Date:?August?4?2009?$
//###########################################################################
#include?“DSP2833x_Device.h“?????//?DSP2833x?Headerfile?Include?File
#include?“DSP2833x_Examples.h“???//?DSP2833x?Examples?Include?File
#define?ADC_usDELAY??5000L
//---------------------------------------------------------------------------
//?InitAdc:
//---------------------------------------------------------------------------
//?This?function?initializes?ADC?to?a?known?state.
//
void?InitAdc(void)
{
????extern?void?DSP28x_usDelay(Uint32?Count);
????//?*IMPORTANT*
//?The?ADC_cal?function?which??copies?the?ADC?calibration?values?from?TI?reserved
//?OTP?into?the?ADCREFSEL?and?ADCOFFTRIM?registers?occurs?automatically?in?the
//?Boot?ROM.?If?the?boot?ROM?code?is?bypassed?during?the?debug?process?the
//?following?function?MUST?be?called?for?the?ADC?to?function?according
//?to?specification.?The?clocks?to?the?ADC?MUST?be?enabled?before?calling?this
//?function.
//?See?the?device?data?manual?and/or?the?ADC?Reference
//?Manual?for?more?information.
????EALLOW;
SysCtrlRegs.PCLKCR0.bit.ADCENCLK?=?1;
ADC_cal();
EDIS;
????//?To?powerup?the?ADC?the?ADCENCLK?bit?should?be?set?first?to?enable
????//?clocks?followed?by?powering?up?the?bandgap?reference?circuitry?and?ADC?core.
????//?Before?the?first?conversion?is?performed?a?5ms?delay?must?be?observed
//?after?power?up?to?give?all?analog?circuits?time?to?power?up?and?settle
????//?Please?note?that?for?the?delay?function?below?to?operate?correctly?the
//?CPU_RATE?define?statement?in?the?DSP2833x_Examples.h?file?must
//?contain?the?correct?CPU?clock?period?in?nanoseconds.
????AdcRegs.ADCTRL3.all?=?0x00E0;??//?Power?up?bandgap/reference/ADC?circuits
????DELAY_US(ADC_usDELAY);?????????//?Delay?before?converting?ADC?channels
}
//===========================================================================
//?End?of?file.
//===========================================================================
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-02-02?14:25??PMSM-28335-master\
?????目錄???????????0??2014-02-02?14:25??PMSM-28335-master\DSP2833x\
?????目錄???????????0??2014-02-02?14:25??PMSM-28335-master\DSP2833x\cmd\
?????文件????????6962??2014-02-02?14:25??PMSM-28335-master\DSP2833x\cmd\28332_RAM_lnk.cmd
?????文件????????7153??2014-02-02?14:25??PMSM-28335-master\DSP2833x\cmd\28334_RAM_lnk.cmd
?????文件????????7150??2014-02-02?14:25??PMSM-28335-master\DSP2833x\cmd\28335_RAM_lnk.cmd
?????文件????????8462??2014-02-02?14:25??PMSM-28335-master\DSP2833x\cmd\DSP2833x_Headers_BIOS.cmd
?????文件????????8443??2014-02-02?14:25??PMSM-28335-master\DSP2833x\cmd\DSP2833x_Headers_nonBIOS.cmd
?????文件????????8794??2014-02-02?14:25??PMSM-28335-master\DSP2833x\cmd\F28332.cmd
?????文件????????9364??2014-02-02?14:25??PMSM-28335-master\DSP2833x\cmd\F28334.cmd
?????文件????????9366??2014-02-02?14:25??PMSM-28335-master\DSP2833x\cmd\F28335.cmd
?????目錄???????????0??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\
?????文件????????9941??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\DSP2833x_DualMap_EPWM.gel
?????文件????????5804??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\DSP2833x_Peripheral.gel
?????目錄???????????0??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\ccsv4\
?????文件???????21263??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\ccsv4\f28232.gel
?????文件???????21753??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\ccsv4\f28234.gel
?????文件???????21811??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\ccsv4\f28235.gel
?????文件???????21408??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\ccsv4\f28332.gel
?????文件???????21898??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\ccsv4\f28334.gel
?????文件???????21940??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\ccsv4\f28335.gel
?????文件??????112350??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\f28232.gel
?????文件??????116824??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\f28234.gel
?????文件??????116870??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\f28235.gel
?????文件??????113037??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\f28332.gel
?????文件??????117510??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\f28334.gel
?????文件??????117556??2014-02-02?14:25??PMSM-28335-master\DSP2833x\gel\f28335.gel
?????目錄???????????0??2014-02-02?14:25??PMSM-28335-master\DSP2833x\include\
?????文件???????10212??2014-02-02?14:25??PMSM-28335-master\DSP2833x\include\DSP2833x_Adc.h
?????文件????????5691??2014-02-02?14:25??PMSM-28335-master\DSP2833x\include\DSP2833x_CpuTimers.h
?????文件???????13692??2014-02-02?14:25??PMSM-28335-master\DSP2833x\include\DSP2833x_DMA.h
............此處省略342個(gè)文件信息
評(píng)論
共有 條評(píng)論