资源简介
无刷直流电机控制程序,包括直接转矩控制,有位置传感器和无位置传感器的控制程序,包括外设的配置可直接使用。

代码片段和文件信息
//###########################################################################
//
// FILE: DSP281x_Adc.c
//
// title: DSP281x ADC Initialization & Support Functions.
//
//###########################################################################
//
// Ver | dd mmm yyyy | Who | Description of changes
// =====|=============|======|===============================================
// 1.00| 11 Sep 2003 | L.H. | Changes since previous version (v.58 Alpha)
// | | | ADC_usDELAY changed from 5000L to 8000L
//###########################################################################
#include “DSP28_Device.h“ // DSP281x Headerfile Include File
#include “DSP28_Adc.h“ // DSP281x Examples Include File
//---------------------------------------------------------------------------
// InitAdc:
//---------------------------------------------------------------------------
// This function initializes ADC to a known state.
//
void InitAdc(void)
{
unsigned int i;
AdcRegs.ADCTRL1.bit.RESET=1;
asm(“ NOP“);
AdcRegs.ADCTRL1.bit.RESET=0;
AdcRegs.ADCTRL1.bit.SUSMOD=3;
AdcRegs.ADCTRL1.bit.ACQ_PS=0;
AdcRegs.ADCTRL1.bit.CPS=0;
AdcRegs.ADCTRL1.bit.CONT_RUN=0;
AdcRegs.ADCTRL1.bit.SEQ_CASC=1;
AdcRegs.ADCTRL3.bit.ADCBGRFDN=3;
for(i=0;i<10000;i++) asm(“ NOP“);
AdcRegs.ADCTRL3.bit.ADCPWDN=1;
for(i=0;i<5000;i++) asm(“ NOP“);
AdcRegs.ADCTRL3.bit.ADCCLKPS=15;
AdcRegs.ADCTRL3.bit.SMODE_SEL=0;
AdcRegs.MAX_CONV.all=0x0005;
AdcRegs.CHSELSEQ1.bit.CONV00=0x0;
AdcRegs.CHSELSEQ1.bit.CONV01=0x1;
AdcRegs.CHSELSEQ1.bit.CONV02=0x2;
AdcRegs.CHSELSEQ1.bit.CONV03=0x3;
AdcRegs.CHSELSEQ2.bit.CONV04=0x4;
AdcRegs.CHSELSEQ2.bit.CONV05=0x5;
/*
AdcRegs.ADCMAXCONV.all = 0x0005; // Setup 2 conv‘s on SEQ1
AdcRegs.ADCCHSELSEQ1.bit.CONV00 = 0x0; // Setup ADCINA3 as 1st SEQ1 conv.
AdcRegs.ADCCHSELSEQ1.bit.CONV01 = 0x3;
AdcRegs.ADCCHSELSEQ1.bit.CONV02 = 0x4;
AdcRegs.ADCCHSELSEQ1.bit.CONV03 = 0x1;
AdcRegs.ADCCHSELSEQ2.bit.CONV04 = 0x2; // Setup ADCINA2 as 2nd SEQ1 conv.
AdcRegs.ADCCHSELSEQ2.bit.CONV05 = 0x5;
*/
AdcRegs.ADCTRL2.bit.EVA_SOC_SEQ1 = 1; // Enable EVASOC to start SEQ1
AdcRegs.ADCTRL2.bit.INT_ENA_SEQ1 = 1; // Enable SEQ1 interrupt (every EOS)
}
//===========================================================================
// No more.
//===========================================================================
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3870 2007-02-02 16:03 03. Examples of Program\dtk\2812.cmd
文件 4678 2015-03-21 21:17 03. Examples of Program\dtk\cc_build_Debug.log
文件 7509 2015-03-21 21:17 03. Examples of Program\dtk\Debug\adinit.obj
文件 8533 2015-03-21 21:17 03. Examples of Program\dtk\Debug\cap.obj
文件 1381 2015-03-21 21:17 03. Examples of Program\dtk\Debug\DSP281x_CodeStartBranch.obj
文件 36731 2015-03-21 21:17 03. Examples of Program\dtk\Debug\DSP28_DefaultIsr.obj
文件 111378 2015-03-21 21:17 03. Examples of Program\dtk\Debug\DSP28_GlobalVariableDefs.obj
文件 11087 2007-02-01 09:51 03. Examples of Program\dtk\Debug\DSP28_Gpio.obj
文件 28320 2015-03-21 21:17 03. Examples of Program\dtk\Debug\DSP28_Mcbsp.obj
文件 4943 2015-03-21 21:17 03. Examples of Program\dtk\Debug\DSP28_PieCtrl.obj
文件 16448 2015-03-21 21:17 03. Examples of Program\dtk\Debug\DSP28_PieVect.obj
文件 5526 2015-03-21 21:17 03. Examples of Program\dtk\Debug\DSP28_SysCtrl.obj
文件 19766 2015-03-21 21:17 03. Examples of Program\dtk\Debug\edit.map
文件 8189 2007-02-01 09:51 03. Examples of Program\dtk\Debug\edit.obj
文件 151477 2015-03-21 21:17 03. Examples of Program\dtk\Debug\edit.out
文件 8734 2015-03-21 21:17 03. Examples of Program\dtk\Debug\evpwm.obj
文件 23563 2015-03-21 21:17 03. Examples of Program\dtk\Debug\gpioinit.obj
文件 1055 2015-03-21 21:17 03. Examples of Program\dtk\Debug\gui_string.obj
文件 80971 2015-03-21 21:17 03. Examples of Program\dtk\Debug\motor.obj
文件 31245 2015-03-21 21:17 03. Examples of Program\dtk\Debug\motorcrl.obj
文件 1517 2015-03-21 21:17 03. Examples of Program\dtk\Debug.lkf
文件 1335 2007-09-27 15:25 03. Examples of Program\dtk\Debug.lkv
文件 4258 2007-02-02 16:29 03. Examples of Program\dtk\DSP281x_Headers_BIOS.cmd
文件 4258 2007-02-02 16:32 03. Examples of Program\dtk\DSP281x_Headers_nonBIOS.cmd
文件 3072 2015-03-21 21:17 03. Examples of Program\dtk\edit.CS_\FILE.CDX
文件 1454 2015-03-21 21:17 03. Examples of Program\dtk\edit.CS_\FILE.DBF
文件 1773 2015-03-21 21:17 03. Examples of Program\dtk\edit.CS_\FILE.FPT
文件 298496 2015-03-21 21:17 03. Examples of Program\dtk\edit.CS_\SYMBOL.CDX
文件 223546 2015-03-21 21:17 03. Examples of Program\dtk\edit.CS_\SYMBOL.DBF
文件 383290 2015-03-21 21:17 03. Examples of Program\dtk\edit.CS_\SYMBOL.FPT
............此处省略254个文件信息
- 上一篇:msvcp110d.dll
- 下一篇:雷达手册第三版中文第一章:雷达概论
相关资源
- DSP实验(10次实验有详细步骤)
- 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接口
- 基于DSP交流伺服系统与CAN总线的通信
评论
共有 条评论