资源简介
基于28335的spwm

代码片段和文件信息
//###########################################################################
//
// FILE: DSP2833x_Adc.c
//
// title: DSP2833x ADC Initialization & Support Functions.
//
//###########################################################################
// $TI Release: F2833x/F2823x Header Files and Peripheral Examples V140 $
// $Release Date: March 4 2015 $
// $Copyright: Copyright (C) 2007-2015 Texas Instruments Incorporated -
// http://www.ti.com/ ALL RIGHTS RESERVED $
//###########################################################################
#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 2016-06-04 22:13 SPWM\
文件 550 2015-06-20 12:32 SPWM\.ccsproject
文件 22039 2015-06-20 12:32 SPWM\.cproject
目录 0 2016-06-04 21:52 SPWM\.launches\
文件 4774 2015-06-21 17:01 SPWM\.launches\SPWM.launch
文件 834 2015-06-18 12:19 SPWM\.project
目录 0 2016-06-04 21:52 SPWM\.settings\
文件 62 2015-06-18 12:19 SPWM\.settings\org.eclipse.cdt.codan.core.prefs
文件 123 2015-06-18 12:19 SPWM\.settings\org.eclipse.cdt.debug.core.prefs
文件 208 2015-06-18 12:26 SPWM\.settings\org.eclipse.core.resources.prefs
文件 7270 2015-06-18 12:19 SPWM\28335_RAM_lnk.cmd
目录 0 2016-06-04 21:52 SPWM\Debug\
文件 738 2016-06-04 21:52 SPWM\Debug\ccsObjs.opt
文件 5085 2015-06-20 12:33 SPWM\Debug\DSP2833x_Adc.pp
文件 5253 2015-06-20 12:33 SPWM\Debug\DSP2833x_CpuTimers.pp
文件 5344 2015-06-22 10:02 SPWM\Debug\DSP2833x_DefaultIsr.pp
文件 5085 2015-06-20 12:33 SPWM\Debug\DSP2833x_DMA.pp
文件 5113 2015-06-20 12:33 SPWM\Debug\DSP2833x_ECan.pp
文件 5113 2015-06-20 12:33 SPWM\Debug\DSP2833x_ECap.pp
文件 5113 2015-06-20 12:33 SPWM\Debug\DSP2833x_EPwm.pp
文件 5113 2015-06-20 12:33 SPWM\Debug\DSP2833x_EQep.pp
文件 4163 2015-06-20 12:33 SPWM\Debug\DSP2833x_GlobalVariableDefs.pp
文件 5113 2015-06-20 12:33 SPWM\Debug\DSP2833x_Gpio.pp
文件 5085 2015-06-20 12:33 SPWM\Debug\DSP2833x_I2C.pp
文件 5141 2015-06-20 12:33 SPWM\Debug\DSP2833x_Mcbsp.pp
文件 3921 2015-06-20 12:33 SPWM\Debug\DSP2833x_MemCopy.pp
文件 5197 2015-06-20 12:33 SPWM\Debug\DSP2833x_PieCtrl.pp
文件 5197 2015-06-20 12:33 SPWM\Debug\DSP2833x_PieVect.pp
文件 5085 2015-06-20 12:33 SPWM\Debug\DSP2833x_Sci.pp
文件 5085 2015-06-20 12:33 SPWM\Debug\DSP2833x_Spi.pp
文件 5197 2015-06-20 12:33 SPWM\Debug\DSP2833x_SysCtrl.pp
............此处省略45个文件信息
相关资源
- F28335无刷直流电机开闭环控制
- CCS5.05.1可使用的license
- 28335CAN调试程序
- dsp2812上128点FFTc程序以及其CMD文件
- DSP28335程序片内FLASH搬运至RAM运行的
- 28335写的用spi读取传感器数据并用CA
- 基于DSP2812的以太网调试程序
- DSP与PC通讯的几种方法
- DSP 语音识别程序 DTW MFCC
- 创龙C66x平台GigE工业相机图像采集案例
- VC工程转Qt工程文件的工具
- 基于DSP的大功率开关电源的设计方案
- 基于DSP 56F801的正弦波输出DC/AC电源
- 基于DSP的大功率开关电源设计
- 基于ARM7和DSP的逆变电源设计电路
- 基于运动控制器MCK2407的无刷直流电机
- es(elasticsearch)整合SpringCloudSpringBo
- tms320c6748 DSP原理图 SCH PCB
- TMS320F280049最小系统原理图
- F280049C_CMPSS_01.zip
- 基于DSP的矿用静止无功发生器的研制
- FPGA实现单极性SPWM调制
- CPS―SPWM调制方法在H桥多电平变流器中
- 基于FPGA的多电平载波移相SPWM方法实现
- 正弦波逆变器正弦波逆变器的工作原
- 基于DSP的矿井提升机永磁同步电机D
- 基于DSP的SVPWM变频调速系统
- 采用单片机SPWM的控制应急电源逆变电
- 基于DSP的下一代车载娱乐系统
- DSP控制器原理及其在运动控制系统中
评论
共有 条评论