資源簡介
該資料詳細介紹了 28335中 PWM定時器的設置 各種寄存器的配置

代碼片段和文件信息
//?TI?File?$Revision:?/main/4?$
//?Checkin?$Date:?July?30?2007???14:15:53?$
//###########################################################################
//
//?FILE: DSP2833x_Adc.c
//
//?title: DSP2833x?ADC?Initialization?&?Support?Functions.
//
//###########################################################################
//?$TI?Release:?DSP2833x?Header?Files?V1.01?$
//?$Release?Date:?September?26?2007?$
//###########################################################################
#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_CLOCK_SPEED?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.
//===========================================================================
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4766??2010-01-11?16:19??lab26-PWM_TIMER_INT\cc_build_Debug.log
?????文件???????6955??2007-12-05?16:03??lab26-PWM_TIMER_INT\cmd\28335_RAM_lnk.cmd
?????文件???????8595??2007-09-26?10:23??lab26-PWM_TIMER_INT\cmd\DSP2833x_Headers_BIOS.cmd
?????文件???????8438??2007-09-21?11:09??lab26-PWM_TIMER_INT\cmd\DSP2833x_Headers_nonBIOS.cmd
?????文件???????9033??2007-11-22?11:37??lab26-PWM_TIMER_INT\cmd\F28335.cmd
?????文件?????112199??2010-01-11?16:18??lab26-PWM_TIMER_INT\Debug\DSP2833x_Adc.obj
?????文件???????1112??2010-01-11?16:18??lab26-PWM_TIMER_INT\Debug\DSP2833x_ADC_cal.obj
?????文件???????1391??2010-01-11?16:18??lab26-PWM_TIMER_INT\Debug\DSP2833x_CodeStartBranch.obj
?????文件?????113657??2010-01-11?16:18??lab26-PWM_TIMER_INT\Debug\DSP2833x_CpuTimers.obj
?????文件???????1028??2010-01-11?16:18??lab26-PWM_TIMER_INT\Debug\DSP2833x_DBGIER.obj
?????文件?????154327??2010-01-11?16:18??lab26-PWM_TIMER_INT\Debug\DSP2833x_DefaultIsr.obj
?????文件?????115677??2010-01-11?16:18??lab26-PWM_TIMER_INT\Debug\DSP2833x_EPwm.obj
?????文件?????121846??2010-01-11?16:18??lab26-PWM_TIMER_INT\Debug\DSP2833x_GlobalVariableDefs.obj
?????文件?????112046??2010-01-11?16:18??lab26-PWM_TIMER_INT\Debug\DSP2833x_Gpio.obj
?????文件?????112553??2010-01-11?16:18??lab26-PWM_TIMER_INT\Debug\DSP2833x_PieCtrl.obj
?????文件?????119451??2010-01-11?16:19??lab26-PWM_TIMER_INT\Debug\DSP2833x_PieVect.obj
?????文件?????116909??2010-01-11?16:19??lab26-PWM_TIMER_INT\Debug\DSP2833x_SysCtrl.obj
?????文件???????1123??2010-01-11?16:19??lab26-PWM_TIMER_INT\Debug\DSP2833x_usDelay.obj
?????文件?????114593??2010-01-11?16:19??lab26-PWM_TIMER_INT\Debug\DSP2833x_Xintf.obj
?????文件??????28461??2010-01-11?16:19??lab26-PWM_TIMER_INT\Debug\PWM_TIMER_INT.map
?????文件?????119196??2010-01-11?16:19??lab26-PWM_TIMER_INT\Debug\PWM_TIMER_INT.obj
?????文件?????163417??2010-01-11?16:19??lab26-PWM_TIMER_INT\Debug\PWM_TIMER_INT.out
?????文件???????1707??2010-01-11?16:19??lab26-PWM_TIMER_INT\Debug.lkf
?????文件??????10465??2007-09-26?10:23??lab26-PWM_TIMER_INT\include\DSP2833x_Adc.h
?????文件???????5870??2007-09-26?10:23??lab26-PWM_TIMER_INT\include\DSP2833x_CpuTimers.h
?????文件???????6315??2007-09-26?10:23??lab26-PWM_TIMER_INT\include\DSP2833x_DefaultIsr.h
?????文件???????2701??2007-09-26?10:23??lab26-PWM_TIMER_INT\include\DSP2833x_DevEmu.h
?????文件???????5894??2009-12-03?10:04??lab26-PWM_TIMER_INT\include\DSP2833x_Device.h
?????文件??????13320??2007-09-26?10:23??lab26-PWM_TIMER_INT\include\DSP2833x_DMA.h
?????文件???????1993??2007-09-26?10:23??lab26-PWM_TIMER_INT\include\DSP2833x_Dma_defines.h
............此處省略69個文件信息
- 上一篇:風險管理計劃.doc
- 下一篇:DLMS通訊協議中文
評論
共有 條評論