-
大小: 1.08MB文件類型: .zip金幣: 2下載: 1 次發(fā)布日期: 2023-08-28
- 語言: 其他
- 標簽: DSP,AD7656??
資源簡介
主控芯片為DSP28335,通過XITNF配置及相應的程序實現與AD7656之間的并行通信

代碼片段和文件信息
//?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?Header?Files?V1.20?$
//?$Release?Date:?August?1?2008?$
//###########################################################################
#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.
//===========================================================================
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-06-26?15:46??AD7656\
?????文件?????????324??2013-08-02?09:32??AD7656\.ccsproject
?????文件???????10713??2013-08-06?14:12??AD7656\.cdtbuild
?????文件?????????677??2013-08-02?09:32??AD7656\.cdtproject
?????目錄???????????0??2017-06-26?15:46??AD7656\.launches\
?????文件????????3614??2013-08-04?17:28??AD7656\.launches\AD7656.launch
?????文件?????????586??2013-08-02?09:32??AD7656\.project
?????目錄???????????0??2017-06-26?15:46??AD7656\.settings\
?????文件?????????637??2013-08-02?09:38??AD7656\.settings\org.eclipse.cdt.managedbuilder.core.prefs
?????目錄???????????0??2017-06-26?15:46??AD7656\28335_AD7656.CS_\
?????文件????????3072??2013-05-23?15:18??AD7656\28335_AD7656.CS_\FILE.CDX
?????文件????????1492??2013-05-23?15:33??AD7656\28335_AD7656.CS_\FILE.DBF
?????文件????????2231??2013-05-23?15:18??AD7656\28335_AD7656.CS_\FILE.FPT
?????文件??????326144??2013-05-23?15:33??AD7656\28335_AD7656.CS_\SYMBOL.CDX
?????文件??????241128??2013-05-23?15:33??AD7656\28335_AD7656.CS_\SYMBOL.DBF
?????文件??????413858??2013-05-23?15:33??AD7656\28335_AD7656.CS_\SYMBOL.FPT
?????文件??????465748??2017-03-09?22:26??AD7656\9927416AD7656.rar
?????目錄???????????0??2017-06-26?15:46??AD7656\CMD\
?????文件????????3941??2013-03-06?11:32??AD7656\CMD\28335_RAM_lnk.cmd
?????文件????????8438??2013-03-06?11:32??AD7656\CMD\DSP2833x_Headers_nonBIOS.cmd
?????文件????????4855??2013-03-06?11:32??AD7656\CMD\F28335.cmd
?????目錄???????????0??2017-06-26?15:46??AD7656\Debug\
?????文件???????27224??2013-08-06?15:32??AD7656\Debug\AD7656.map
?????文件??????170013??2013-08-06?15:32??AD7656\Debug\AD7656.out
?????目錄???????????0??2017-06-26?15:46??AD7656\Debug\CMD\
?????文件???????????0??2013-08-06?15:31??AD7656\Debug\CMD\ccsSrcs.opt
?????文件????????1036??2013-08-06?15:31??AD7656\Debug\CMD\subdir.mk
?????目錄???????????0??2017-06-26?15:46??AD7656\Debug\SRC\
?????文件????????1291??2013-08-06?15:31??AD7656\Debug\SRC\DSP2833x_ADC_cal.obj
?????文件????????1575??2013-08-06?15:31??AD7656\Debug\SRC\DSP2833x_CodeStartBranch.obj
?????文件??????126109??2013-08-06?15:31??AD7656\Debug\SRC\DSP2833x_CpuTimers.obj
............此處省略72個文件信息
評論
共有 條評論