资源简介
利用DSPF2812实现的双闭环控制电机程序,对从事异步电机控制的人而言可能有所帮助

代码片段和文件信息
//
// TMDX ALPHA RELEASE
// Intended for product evaluation purposes
//
//###########################################################################
//
// FILE: DSP28_Adc.c
//
// title: DSP28 ADC Initialization & Support Functions.
//
//###########################################################################
//
// Ver | dd mmm yyyy | Who | Description of changes
// =====|=============|======|===============================================
// 0.55| 06 May 2002 | L.H. | EzDSP Alpha Release
// 0.56| 20 May 2002 | L.H. | No change
// 0.57| 27 May 2002 | L.H. | No change
// 0.58| 29 Jun 2002 | L.H. | Added InitAdc Function
//###########################################################################
#include “DSP28_Device.h“
#define ADC_usDELAY 5000L
#define ADC_usDELAY2 20L
//---------------------------------------------------------------------------
// InitAdc:
//---------------------------------------------------------------------------
// This function initializes ADC to a known state.
//
void InitAdc(void)
{
extern void DSP28x_usDelay(unsigned long Count);
// To powerup the ADC the ADCENCLK bit should be set first to enable
// clocks followed by powering up the bandgap and reference circuitry.
// After a 5ms delay the rest of the ADC can be powered up. After ADC
// powerup another 20us delay is required before performing the first
// ADC conversion. Please note that for the delay function below to
// operate correctly the CPU_CLOCK_SPEED define statement in the
// DSP28_Device.h file must contain the correct CPU clock period in
// nanoseconds. For example:
//
// #define CPU_CLOCK_SPEED 6.6667L // for a 150MHz CPU clock speed
//This was done in the InitSysCtrl() function in DSP28_SysCtrl.c
//asm(“ EALLOW“);
//SysCtrlRegs.PCLKCR.bit.ADCENCLK = 1; // Power up clocks to ADC
//SysCtrlRegs.WDCR = 0x6F; // Disable WD
//asm(“ EDIS“);
AdcRegs.ADCTRL3.bit.ADCBGRFDN = 0x3; // Power up bandgap/reference circuitry
DELAY_US(ADC_usDELAY); // Delay before powering up rest of ADC
AdcRegs.ADCTRL3.bit.ADCPWDN =1; // Power up rest of ADC
DELAY_US(ADC_usDELAY2); // Delay after powering up ADC
}
//===========================================================================
// No more.
//===========================================================================
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2008-02-24 17:26 DSPF2812双闭环控制电机程序
目录 0 2008-02-24 17:26 DSPF2812双闭环控制电机程序\zll
文件 2508 2004-07-02 10:16 DSPF2812双闭环控制电机程序\zll\DSP28_Adc.c
文件 6757 2002-06-29 15:02 DSPF2812双闭环控制电机程序\zll\DSP28_Adc.h
文件 6192 2002-06-29 15:02 DSPF2812双闭环控制电机程序\zll\DSP28_CpuTimers.h
文件 25243 2004-05-12 14:39 DSPF2812双闭环控制电机程序\zll\DSP28_DefaultIsr.c
文件 4839 2002-07-23 16:30 DSPF2812双闭环控制电机程序\zll\DSP28_DefaultIsr.h
文件 2489 2002-06-29 15:03 DSPF2812双闭环控制电机程序\zll\DSP28_DevEmu.h
文件 4467 2002-07-23 16:24 DSPF2812双闭环控制电机程序\zll\DSP28_Device.h
文件 46782 2002-06-29 15:03 DSPF2812双闭环控制电机程序\zll\DSP28_ECan.h
文件 21082 2002-07-26 09:31 DSPF2812双闭环控制电机程序\zll\DSP28_Ev.h
文件 1417 2002-07-01 13:45 DSPF2812双闭环控制电机程序\zll\DSP28_GlobalPrototypes.h
文件 3966 2002-07-01 08:06 DSPF2812双闭环控制电机程序\zll\DSP28_GlobalVariableDefs.c
文件 29613 2002-07-03 12:36 DSPF2812双闭环控制电机程序\zll\DSP28_Gpio.h
文件 34782 2002-07-09 17:25 DSPF2812双闭环控制电机程序\zll\DSP28_Mcbsp.h
文件 2241 2002-06-29 15:10 DSPF2812双闭环控制电机程序\zll\DSP28_PieCtrl.c
文件 6040 2002-06-29 15:04 DSPF2812双闭环控制电机程序\zll\DSP28_PieCtrl.h
文件 5511 2004-05-12 14:42 DSPF2812双闭环控制电机程序\zll\DSP28_PieVect.c
文件 6516 2002-06-29 15:04 DSPF2812双闭环控制电机程序\zll\DSP28_PieVect.h
文件 8270 2002-06-29 15:04 DSPF2812双闭环控制电机程序\zll\DSP28_Sci.h
文件 6255 2002-06-27 14:45 DSPF2812双闭环控制电机程序\zll\DSP28_Spi.h
文件 146855 2002-07-25 11:31 DSPF2812双闭环控制电机程序\zll\DSP28_SWPrioritizedIsrLevels.h
文件 4393 2005-05-10 13:20 DSPF2812双闭环控制电机程序\zll\DSP28_SysCtrl.c
文件 10118 2002-07-01 12:47 DSPF2812双闭环控制电机程序\zll\DSP28_SysCtrl.h
文件 818 2002-07-08 16:19 DSPF2812双闭环控制电机程序\zll\DSP28_usDelay.asm
文件 3821 2002-06-29 15:05 DSPF2812双闭环控制电机程序\zll\DSP28_Xintf.h
文件 2298 2002-06-29 15:05 DSPF2812双闭环控制电机程序\zll\DSP28_XIntrupt.h
文件 5859 2006-10-08 16:52 DSPF2812双闭环控制电机程序\zll\EzDSP_RAM_lnk.cmd
文件 169954 2003-01-08 09:45 DSPF2812双闭环控制电机程序\zll\rts2800.lib
目录 0 2008-02-24 17:24 DSPF2812双闭环控制电机程序\zll\zll
............此处省略37个文件信息
相关资源
- CCS5.05.1可使用的license
- dsp2812上128点FFTc程序以及其CMD文件
- DSP28335程序片内FLASH搬运至RAM运行的
- 基于DSP2812的以太网调试程序
- DSP与PC通讯的几种方法
- TMS320F2812_FLASH读写实例
- 合众达培训F2812教材.rar
- 6相12拍步进电机控制器
- DSP 语音识别程序 DTW MFCC
- 创龙C66x平台GigE工业相机图像采集案例
- VC工程转Qt工程文件的工具
- LabVIEW步进电机控制.vi
- 基于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
- STM32伺服电机控制器
评论
共有 条评论