資源簡介
DSP 28035 源碼 包含了所有模塊程序 CCS3.3

代碼片段和文件信息
?????????????????????????????????????????????????????????????????????????????//?TI?File?$Revision:?/main/3?$
//?Checkin?$Date:?November?19?2009???10:24:27?$
//###########################################################################
//
//?FILE:????DSP2803x_Adc.c
//
//?title:???DSP2803x?ADC?Initialization?&?Support?Functions.
//
//###########################################################################
//?$TI?Release:?2803x?C/C++?Header?Files?V1.21?$
//?$Release?Date:?December?1?2009?$
//###########################################################################
#include?“DSP2803x_Device.h“?????//?DSP2803x?Headerfile?Include?File
#include?“DSP2803x_Examples.h“???//?DSP2803x?Examples?Include?File
#define?ADC_usDELAY??1000L
//---------------------------------------------------------------------------
//?InitAdc:
//---------------------------------------------------------------------------
//?This?function?initializes?ADC?to?a?known?state.
//
//?NOTE:?ADC?INIT?IS?DIFFERENT?ON?2803x?DEVICES?COMPARED?TO?OTHER?28X?DEVICES
//
void?InitAdc(void)
{
????extern?void?DSP28x_usDelay(Uint32?Count);
????//?*IMPORTANT*
????//?The?Device_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;
????????(*Device_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?DSP2803x_Examples.h?file?must
????//?contain?the?correct?CPU?clock?period?in?nanoseconds.
????EALLOW;
????AdcRegs.ADCCTL1.bit.ADCBGPWD??=?1;??????//?Power?ADC?BG??7
????AdcRegs.ADCCTL1.bit.ADCREFPWD?=?1;??????//?Power?reference??6
????AdcRegs.ADCCTL1.bit.ADCPWDN???=?1;??????//?Power?ADC??8
????AdcRegs.ADCCTL1.bit.ADCENABLE?=?1;??????//?Enable?ADC?15
????AdcRegs.ADCCTL1.bit.ADCREFSEL?=?0;??????//?Select?interal?BG???4
????EDIS;
????DELAY_US(ADC_usDELAY);?????????//?Delay?before?converting?ADC?channels
}
void?InitAdcAio()
{
???EALLOW;
/*?Configure?ADC?pins?using?AIO?regs*/
//?This?specifies?which?of?the?possible?AIO?pins?will?be?Analog?input?pins.
//?NOTE:?AIO1357-9111315?are?analog?inputs?in?all?AIOMUX1?configurations.
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????616436??2009-12-01?12:43??tidcs\c28\DSP2803x\v121\doc\DSP2803x_HeaderFiles_Quickstart_Readme.pdf
?????文件??????41418??2009-03-19?09:47??tidcs\c28\DSP2803x\v121\doc\Example_ISRPriorities.pdf
?????文件??????66585??2009-10-01?14:48??tidcs\c28\DSP2803x\v121\doc\Internal_Oscillator_Compensation_Functions.pdf
?????文件??????33754??2009-10-01?14:48??tidcs\c28\DSP2803x\v121\doc\SFO_Library_V6_Errata.pdf
?????文件???????6259??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\28030_RAM_lnk.cmd
?????文件???????6314??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\28031_RAM_lnk.cmd
?????文件???????6315??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\28032_RAM_lnk.cmd
?????文件???????6937??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\28033_RAM_CLA_lnk.cmd
?????文件???????6315??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\28033_RAM_lnk.cmd
?????文件???????6315??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\28034_RAM_lnk.cmd
?????文件???????6937??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\28035_RAM_CLA_lnk.cmd
?????文件???????6315??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\28035_RAM_lnk.cmd
?????文件???????8289??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\F28030.cmd
?????文件???????8690??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\F28031.cmd
?????文件???????8690??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\F28032.cmd
?????文件???????8692??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\F28033.cmd
?????文件???????8690??2009-12-01?12:49??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\F28034.cmd
?????文件???????8686??2013-01-24?16:26??tidcs\c28\DSP2803x\v121\DSP2803x_common\cmd\F28035.cmd
?????文件??????19863??2009-12-01?09:58??tidcs\c28\DSP2803x\v121\DSP2803x_common\gel\ccsv4\f28030.gel
?????文件??????20152??2009-12-01?09:58??tidcs\c28\DSP2803x\v121\DSP2803x_common\gel\ccsv4\f28031.gel
?????文件??????20152??2009-12-01?09:58??tidcs\c28\DSP2803x\v121\DSP2803x_common\gel\ccsv4\f28032.gel
?????文件??????20669??2009-12-01?09:58??tidcs\c28\DSP2803x\v121\DSP2803x_common\gel\ccsv4\f28033.gel
?????文件??????20138??2009-12-01?09:58??tidcs\c28\DSP2803x\v121\DSP2803x_common\gel\ccsv4\f28034.gel
?????文件??????20668??2009-12-01?09:58??tidcs\c28\DSP2803x\v121\DSP2803x_common\gel\ccsv4\f28035.gel
?????文件??????94759??2009-12-01?09:28??tidcs\c28\DSP2803x\v121\DSP2803x_common\gel\f28030.gel
?????文件??????95049??2009-12-01?09:28??tidcs\c28\DSP2803x\v121\DSP2803x_common\gel\f28031.gel
?????文件??????95034??2009-12-01?09:29??tidcs\c28\DSP2803x\v121\DSP2803x_common\gel\f28032.gel
?????文件??????97120??2009-12-01?09:29??tidcs\c28\DSP2803x\v121\DSP2803x_common\gel\f28033.gel
?????文件??????95040??2009-12-01?09:29??tidcs\c28\DSP2803x\v121\DSP2803x_common\gel\f28034.gel
?????文件??????97123??2009-12-01?09:29??tidcs\c28\DSP2803x\v121\DSP2803x_common\gel\f28035.gel
............此處省略1034個文件信息
- 上一篇:L2TP客戶端
- 下一篇:opnet 通信仿真
評論
共有 條評論