-
大小: 1.09MB文件类型: .zip金币: 2下载: 0 次发布日期: 2023-08-15
- 语言: 其他
- 标签: C2000 DSP Tms320f28027 例程
资源简介
C2000 DSP Tms320f28027 TI 官方例程 V127版本 for CCSV4 & V5

代码片段和文件信息
// TI File $Revision: /main/5 $
// Checkin $Date: December 16 2009 16:43:59 $
//###########################################################################
//
// FILE: DSP2802x_Adc.c
//
// title: DSP2802x ADC Initialization & Support Functions.
//
//###########################################################################
// $TI Release: 2802x Header Files V1.27 $
// $Release Date: June 28 2010 $
//###########################################################################
#include “DSP2802x_Device.h“ // DSP2802x Headerfile Include File
#include “DSP2802x_Examples.h“ // DSP2802x Examples Include File
#define ADC_usDELAY 1000L
//---------------------------------------------------------------------------
// InitAdc:
//---------------------------------------------------------------------------
// This function initializes ADC to a known state.
//
// NOTE: ADC INIT IS DIFFERENT ON 2802x 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 DSP2802x_Examples.h file must
// contain the correct CPU clock period in nanoseconds.
EALLOW;
AdcRegs.ADCCTL1.bit.ADCBGPWD = 1; // Power ADC BG
AdcRegs.ADCCTL1.bit.ADCREFPWD = 1; // Power reference
AdcRegs.ADCCTL1.bit.ADCPWDN = 1; // Power ADC
AdcRegs.ADCCTL1.bit.ADCENABLE = 1; // Enable ADC
AdcRegs.ADCCTL1.bit.ADCREFSEL = 0; // Select interal BG
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.
// Comment out other unwa
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-05-23 00:49 v127\
目录 0 2014-05-23 00:49 v127\doc\
文件 602392 2013-08-15 13:45 v127\doc\controlSUITE_DSP2802x_HeaderFiles_Quickstart_Readme.pdf
文件 41417 2013-08-15 13:45 v127\doc\Example_ISRPriorities.pdf
文件 66585 2013-08-15 13:45 v127\doc\Internal_Oscillator_Compensation_Functions.pdf
文件 33754 2013-08-15 13:45 v127\doc\SFO_Library_V6_Errata.pdf
目录 0 2014-05-23 00:49 v127\DSP2802x_common\
目录 0 2014-05-23 00:49 v127\DSP2802x_common\cmd\
文件 5965 2013-08-15 13:45 v127\DSP2802x_common\cmd\280200_RAM_lnk.cmd
文件 6377 2013-08-15 13:45 v127\DSP2802x_common\cmd\28020_RAM_lnk.cmd
文件 6377 2013-08-15 13:45 v127\DSP2802x_common\cmd\28021_RAM_lnk.cmd
文件 6377 2013-08-15 13:45 v127\DSP2802x_common\cmd\28022_RAM_lnk.cmd
文件 6377 2013-08-15 13:45 v127\DSP2802x_common\cmd\28023_RAM_lnk.cmd
文件 6377 2013-08-15 13:45 v127\DSP2802x_common\cmd\28026_RAM_lnk.cmd
文件 6377 2013-08-15 13:45 v127\DSP2802x_common\cmd\28027_RAM_lnk.cmd
文件 8185 2013-08-15 13:45 v127\DSP2802x_common\cmd\F28020.cmd
文件 7838 2013-08-15 13:45 v127\DSP2802x_common\cmd\F280200.cmd
文件 8181 2013-08-15 13:45 v127\DSP2802x_common\cmd\F28021.cmd
文件 8187 2013-08-15 13:45 v127\DSP2802x_common\cmd\F28022.cmd
文件 8183 2013-08-15 13:45 v127\DSP2802x_common\cmd\F28023.cmd
文件 8186 2013-08-15 13:45 v127\DSP2802x_common\cmd\F28026.cmd
文件 8194 2013-08-15 13:45 v127\DSP2802x_common\cmd\F28027.cmd
目录 0 2014-05-23 00:49 v127\DSP2802x_common\gel\
目录 0 2014-05-23 00:49 v127\DSP2802x_common\gel\ccsv4\
文件 19073 2013-08-15 13:45 v127\DSP2802x_common\gel\ccsv4\f28020.gel
文件 19068 2013-08-15 13:45 v127\DSP2802x_common\gel\ccsv4\f280200.gel
文件 19067 2013-08-15 13:45 v127\DSP2802x_common\gel\ccsv4\f28021.gel
文件 19067 2013-08-15 13:45 v127\DSP2802x_common\gel\ccsv4\f28022.gel
文件 19068 2013-08-15 13:45 v127\DSP2802x_common\gel\ccsv4\f28023.gel
文件 19067 2013-08-15 13:45 v127\DSP2802x_common\gel\ccsv4\f28026.gel
文件 19069 2013-08-15 13:45 v127\DSP2802x_common\gel\ccsv4\f28027.gel
............此处省略289个文件信息
- 上一篇:ESP8266全部开发资料
- 下一篇:flood洪水攻击代码
相关资源
- CCS5.05.1可使用的license
- dsp2812上128点FFTc程序以及其CMD文件
- DSP28335程序片内FLASH搬运至RAM运行的
- 基于DSP2812的以太网调试程序
- DSP与PC通讯的几种方法
- DSP 语音识别程序 DTW MFCC
- 创龙C66x平台GigE工业相机图像采集案例
- VC工程转Qt工程文件的工具
- 基于DSP的大功率开关电源的设计方案
- 基于DSP 56F801的正弦波输出DC/AC电源
- 基于DSP的大功率开关电源设计
- 基于ARM7和DSP的逆变电源设计电路
- LPC2000系列微控制器应对嵌入式需求
- 基于运动控制器MCK2407的无刷直流电机
- es(elasticsearch)整合SpringCloudSpringBo
- tms320c6748 DSP原理图 SCH PCB
- TMS320F280049最小系统原理图
- F280049C_CMPSS_01.zip
- 基于DSP的矿用静止无功发生器的研制
- 基于DSP的矿井提升机永磁同步电机D
- 基于DSP的SVPWM变频调速系统
- 基于DSP的下一代车载娱乐系统
- DSP控制器原理及其在运动控制系统中
- 北京交通大学-数字图像处理试卷+ 答
- 十字路口交通灯.pdsprj
- 用DSP Builder实现FIR滤波器
- TMS320C54X DSP结构、原理及应用(第二版
- DSP 28035 源码
- PCI总线接口与DSP的HPI接口
- 基于DSP交流伺服系统与CAN总线的通信
评论
共有 条评论