资源简介
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 通信仿真
相关资源
- E4A无障碍跨程序操作类库(带源码、
- 设备管理系统源码
- 安卓wifi直连app源码
- 我的世界源码(易语言版)
- labview编程软件滤波器以及编写程序设
- 我的界面(visual foxpro)源码
- 易语言:一键cf基址源码
- The Secret Path 3D 3D魔方迷宫[源码][scra
- scratch垃圾分类源码(最终版本).sb
- CCS5.05.1可使用的license
- 安卓QQ6.71协议源码易语言,qq协议源码
- 编译原理实验工具及参考源码(lex&
- E盾偷后台工具源码
- UNIX/LINUX编程实践教程的源码
- 十以内加减法练习 powerbuilder源码
- 农场开发项目
- OCR源码
- PLC上位机编程软件
- 用foobar2000听google音乐[更新一下]
- 学生信息管理系统源码
- dsp2812上128点FFTc程序以及其CMD文件
- 用VC 编写的仿QQ聊天室程序源代码
- 毕业论文之温度传感器DS18B20(源码
- 可自定义导航网站源码
- 栅栏填充算法源码(VC)
- DSP28335程序片内FLASH搬运至RAM运行的
- msp430F149操作红外接收模块源码
- [免费]图像识别c 源码
- 周易排盘源码
- RSA算法源码
评论
共有 条评论