无刷直流电机控制程序,包括直接转矩控制,有位置传感器和无位置传感器的控制程序,包括外设的配置可直接使用。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3870 2007-02-02 16:03 03. Examples of Programdtk2812.cmd
文件 4678 2015-03-21 21:17 03. Examples of Programdtkcc_build_Debug.log
文件 7509 2015-03-21 21:17 03. Examples of ProgramdtkDebugadinit.obj
文件 8533 2015-03-21 21:17 03. Examples of ProgramdtkDebugcap.obj
文件 1381 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP281x_CodeStartBranch.obj
文件 36731 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP28_DefaultIsr.obj
文件 111378 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP28_GlobalVariableDefs.obj
文件 11087 2007-02-01 09:51 03. Examples of ProgramdtkDebugDSP28_Gpio.obj
文件 28320 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP28_Mcbsp.obj
文件 4943 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP28_PieCtrl.obj
文件 16448 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP28_PieVect.obj
文件 5526 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP28_SysCtrl.obj
文件 19766 2015-03-21 21:17 03. Examples of ProgramdtkDebugedit.map
文件 8189 2007-02-01 09:51 03. Examples of ProgramdtkDebugedit.obj
文件 151477 2015-03-21 21:17 03. Examples of ProgramdtkDebugedit.out
文件 8734 2015-03-21 21:17 03. Examples of ProgramdtkDebugevpwm.obj
文件 23563 2015-03-21 21:17 03. Examples of ProgramdtkDebuggpioinit.obj
文件 1055 2015-03-21 21:17 03. Examples of ProgramdtkDebuggui_string.obj
文件 80971 2015-03-21 21:17 03. Examples of ProgramdtkDebugmotor.obj
文件 31245 2015-03-21 21:17 03. Examples of ProgramdtkDebugmotorcrl.obj
文件 1517 2015-03-21 21:17 03. Examples of ProgramdtkDebug.lkf
文件 1335 2007-09-27 15:25 03. Examples of ProgramdtkDebug.lkv
文件 4258 2007-02-02 16:29 03. Examples of ProgramdtkDSP281x_Headers_BIOS.cmd
文件 4258 2007-02-02 16:32 03. Examples of ProgramdtkDSP281x_Headers_nonBIOS.cmd
文件 3072 2015-03-21 21:17 03. Examples of Programdtkedit.CS_FILE.CDX
文件 1454 2015-03-21 21:17 03. Examples of Programdtkedit.CS_FILE.DBF
文件 1773 2015-03-21 21:17 03. Examples of Programdtkedit.CS_FILE.FPT
文件 298496 2015-03-21 21:17 03. Examples of Programdtkedit.CS_SYMBOL.CDX
文件 223546 2015-03-21 21:17 03. Examples of Programdtkedit.CS_SYMBOL.DBF
文件 383290 2015-03-21 21:17 03. Examples of Programdtkedit.CS_SYMBOL.FPT
............此处省略254个文件信息
//###########################################################################
//
// 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 Programdtk2812.cmd
文件 4678 2015-03-21 21:17 03. Examples of Programdtkcc_build_Debug.log
文件 7509 2015-03-21 21:17 03. Examples of ProgramdtkDebugadinit.obj
文件 8533 2015-03-21 21:17 03. Examples of ProgramdtkDebugcap.obj
文件 1381 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP281x_CodeStartBranch.obj
文件 36731 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP28_DefaultIsr.obj
文件 111378 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP28_GlobalVariableDefs.obj
文件 11087 2007-02-01 09:51 03. Examples of ProgramdtkDebugDSP28_Gpio.obj
文件 28320 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP28_Mcbsp.obj
文件 4943 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP28_PieCtrl.obj
文件 16448 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP28_PieVect.obj
文件 5526 2015-03-21 21:17 03. Examples of ProgramdtkDebugDSP28_SysCtrl.obj
文件 19766 2015-03-21 21:17 03. Examples of ProgramdtkDebugedit.map
文件 8189 2007-02-01 09:51 03. Examples of ProgramdtkDebugedit.obj
文件 151477 2015-03-21 21:17 03. Examples of ProgramdtkDebugedit.out
文件 8734 2015-03-21 21:17 03. Examples of ProgramdtkDebugevpwm.obj
文件 23563 2015-03-21 21:17 03. Examples of ProgramdtkDebuggpioinit.obj
文件 1055 2015-03-21 21:17 03. Examples of ProgramdtkDebuggui_string.obj
文件 80971 2015-03-21 21:17 03. Examples of ProgramdtkDebugmotor.obj
文件 31245 2015-03-21 21:17 03. Examples of ProgramdtkDebugmotorcrl.obj
文件 1517 2015-03-21 21:17 03. Examples of ProgramdtkDebug.lkf
文件 1335 2007-09-27 15:25 03. Examples of ProgramdtkDebug.lkv
文件 4258 2007-02-02 16:29 03. Examples of ProgramdtkDSP281x_Headers_BIOS.cmd
文件 4258 2007-02-02 16:32 03. Examples of ProgramdtkDSP281x_Headers_nonBIOS.cmd
文件 3072 2015-03-21 21:17 03. Examples of Programdtkedit.CS_FILE.CDX
文件 1454 2015-03-21 21:17 03. Examples of Programdtkedit.CS_FILE.DBF
文件 1773 2015-03-21 21:17 03. Examples of Programdtkedit.CS_FILE.FPT
文件 298496 2015-03-21 21:17 03. Examples of Programdtkedit.CS_SYMBOL.CDX
文件 223546 2015-03-21 21:17 03. Examples of Programdtkedit.CS_SYMBOL.DBF
文件 383290 2015-03-21 21:17 03. Examples of Programdtkedit.CS_SYMBOL.FPT
............此处省略254个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)