资源简介
三相逆变器SVPWM,DSP F28335开发板程序,里面加了AD采集,能产生三路正弦信号及正弦波,AD能采集到数据,数值稳定

代码片段和文件信息
// TI File $Revision: /main/4 $
// Checkin $Date: July 30 2007 14:15:53 $
//###########################################################################
//
// FILE: DSP2833x_Adc.c
//
// title: DSP2833x ADC Initialization & Support Functions.
//
//###########################################################################
// $TI Release: DSP2833x Header Files V1.01 $
// $Release Date: September 26 2007 $
//###########################################################################
#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_CLOCK_SPEED 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.
//===========================================================================
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 518 2019-07-26 11:19 YJ\.ccsproject
文件 22279 2019-07-26 11:21 YJ\.cproject
文件 4462 2019-07-27 10:39 YJ\.launches\YJ.launch
文件 832 2019-07-26 11:19 YJ\.project
文件 62 2019-07-26 11:19 YJ\.settings\org.eclipse.cdt.codan.core.prefs
文件 123 2019-07-26 11:19 YJ\.settings\org.eclipse.cdt.debug.core.prefs
文件 208 2019-07-26 11:21 YJ\.settings\org.eclipse.core.resources.prefs
文件 7270 2019-07-26 11:19 YJ\28335_RAM_lnk.cmd
文件 2721 2019-07-27 10:34 YJ\AD.h
文件 395 2019-07-27 11:26 YJ\Debug\ccsObjs.opt
文件 11951 2019-07-27 08:10 YJ\Debug\DSP2833x_Adc.obj
文件 3283 2019-07-27 08:10 YJ\Debug\DSP2833x_Adc.pp
文件 1247 2019-07-26 11:21 YJ\Debug\DSP2833x_ADC_cal.obj
文件 1527 2019-07-26 11:21 YJ\Debug\DSP2833x_CodeStartBranch.obj
文件 28771 2019-07-26 11:21 YJ\Debug\DSP2833x_DefaultIsr.obj
文件 3486 2019-07-26 11:22 YJ\Debug\DSP2833x_DefaultIsr.pp
文件 13410 2019-07-27 09:59 YJ\Debug\DSP2833x_EPwm.obj
文件 3312 2019-07-27 09:59 YJ\Debug\DSP2833x_EPwm.pp
文件 121417 2019-07-26 11:21 YJ\Debug\DSP2833x_GlobalVariableDefs.obj
文件 2719 2019-07-26 11:22 YJ\Debug\DSP2833x_GlobalVariableDefs.pp
文件 5779 2019-07-26 11:22 YJ\Debug\DSP2833x_PieCtrl.obj
文件 3399 2019-07-26 11:22 YJ\Debug\DSP2833x_PieCtrl.pp
文件 17733 2019-07-26 11:22 YJ\Debug\DSP2833x_PieVect.obj
文件 3399 2019-07-26 11:22 YJ\Debug\DSP2833x_PieVect.pp
文件 15913 2019-07-26 11:22 YJ\Debug\DSP2833x_SysCtrl.obj
文件 3399 2019-07-26 11:22 YJ\Debug\DSP2833x_SysCtrl.pp
文件 1256 2019-07-26 11:22 YJ\Debug\DSP2833x_usDelay.obj
文件 15991 2019-07-26 11:22 YJ\Debug\DSP2833x_Xintf.obj
文件 3341 2019-07-26 11:22 YJ\Debug\DSP2833x_Xintf.pp
文件 10333 2019-07-26 11:22 YJ\Debug\Example_EPwmSetup.obj
............此处省略36个文件信息
- 上一篇:c51单片机点亮第一个led灯的程序keil文件
- 下一篇:x64内存读写驱动
相关资源
- F28335无刷直流电机开闭环控制
- 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的逆变电源设计电路
- 基于运动控制器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接口
评论
共有 条评论