-
大小: 3.66MB文件類型: .rar金幣: 2下載: 0 次發布日期: 2023-10-27
- 語言: 其他
- 標簽:
資源簡介
TMS320F28335全套開發例程 TMS320F28335全套開發例程

代碼片段和文件信息
//?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.
//===========================================================================
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????463176??2007-09-26?10:30??TMS320F28335全套開發例程\v101\doc\DSP2833x_HeaderFiles_Quickstart_Readme.pdf
?????文件??????26066??2007-09-04?09:29??TMS320F28335全套開發例程\v101\doc\Example_2833xISRPriorities.pdf
?????文件???????2871??2007-08-29?15:03??TMS320F28335全套開發例程\v101\doc\sfo_readme.txt
?????文件????????771??2008-04-28?10:27??TMS320F28335全套開發例程\v101\doc\使用說明請參看右側注釋====〉〉.txt
?????文件???????6955??2007-12-05?16:03??TMS320F28335全套開發例程\v101\DSP2833x_common\cmd\28335_RAM_lnk.cmd
?????文件???????9033??2007-11-22?11:37??TMS320F28335全套開發例程\v101\DSP2833x_common\cmd\F28335.cmd
?????文件?????122858??2007-09-26?13:21??TMS320F28335全套開發例程\v101\DSP2833x_common\gel\f28335.gel
?????文件???????6315??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\include\DSP2833x_DefaultIsr.h
?????文件???????1993??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\include\DSP2833x_Dma_defines.h
?????文件???????3988??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\include\DSP2833x_EPwm_defines.h
?????文件???????5439??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\include\DSP2833x_Examples.h
?????文件???????8392??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\include\DSP2833x_GlobalPrototypes.h
?????文件???????4063??2007-12-03?15:45??TMS320F28335全套開發例程\v101\DSP2833x_common\include\DSP2833x_I2c_defines.h
?????文件????????720??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\include\DSP2833x_Project.h
?????文件?????145083??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\include\DSP2833x_SWPrioritizedIsrLevels.h
?????文件?????125877??2007-04-13?17:04??TMS320F28335全套開發例程\v101\DSP2833x_common\include\IQmathLib.h
?????文件???????2056??2007-05-01?12:57??TMS320F28335全套開發例程\v101\DSP2833x_common\include\SFO.h
?????文件???????2993??2007-06-26?14:05??TMS320F28335全套開發例程\v101\DSP2833x_common\include\SFO_V5.h
?????文件?????526414??2007-04-13?17:19??TMS320F28335全套開發例程\v101\DSP2833x_common\lib\IQmath.lib
?????文件???????5822??2005-09-08?10:58??TMS320F28335全套開發例程\v101\DSP2833x_common\lib\SFO_TI_Build.lib
?????文件??????25944??2007-08-28?14:29??TMS320F28335全套開發例程\v101\DSP2833x_common\lib\SFO_TI_Build_fpu.lib
?????文件??????26482??2007-06-26?14:06??TMS320F28335全套開發例程\v101\DSP2833x_common\lib\SFO_TI_Build_V5.lib
?????文件??????26016??2007-08-28?14:29??TMS320F28335全套開發例程\v101\DSP2833x_common\lib\SFO_TI_Build_V5_fpu.lib
?????文件???????2453??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\source\DSP2833x_Adc.c
?????文件???????1434??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\source\DSP2833x_ADC_cal.asm
?????文件???????3263??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\source\DSP2833x_CodeStartBranch.asm
?????文件???????4311??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\source\DSP2833x_CpuTimers.c
?????文件???????2572??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\source\DSP2833x_CSMPasswords.asm
?????文件????????876??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\source\DSP2833x_DBGIER.asm
?????文件??????30673??2007-09-26?10:23??TMS320F28335全套開發例程\v101\DSP2833x_common\source\DSP2833x_DefaultIsr.c
............此處省略516個文件信息
- 上一篇:ST32平臺RC663讀卡代碼
- 下一篇:WEB文件管理器(畢業設計完整項目)
評論
共有 條評論