资源简介
提高自己编写的用美国TI公司TMS320F28335高档单片机控制直流无刷电机调速的程序

代码片段和文件信息
// TI File $Revision: /main/7 $
// Checkin $Date: September 20 2007 13:30:31 $
//###########################################################################
//
// FILE: DSP2833x_Cap_Init.c
//
// title: DSP2833x Device System Control Initialization & Support Functions.
//
// DEscriptION:
//
// Example initialization of system resources.
//
//###########################################################################
// $TI Release: DSP2833x Header Files V1.01 $
// $Release Date: September 26 2007 $
//###########################################################################
#include “DSP2833x_Device.h“ // Headerfile Include File
#include “DSP2833x_Examples.h“ // Examples Include File
// Functions that will be run from RAM need to be assigned to
// a different section. This section will then be mapped to a load and
// run address using the linker cmd file.
#pragma CODE_SECTION(InitFlash “ramfuncs“);
//---------------------------------------------------------------------------
// InitSysCtrl:
//---------------------------------------------------------------------------
// This function initializes the System Control registers to a known state.
// - Disables the watchdog
// - Set the PLLCR for proper SYSCLKOUT frequency
// - Set the pre-scaler for the high and low frequency peripheral clocks
// - Enable the clocks to the peripherals
void InitCapl(void)
{
ChoseCap();
InitECap1Gpio();
InitECap2Gpio();
InitECap3Gpio();
SetCap1Mode();
SetCap2Mode();
SetCap3Mode();
}
void ChoseCap(void)
{ SysCtrlRegs.PCLKCR1.bit.ECAP1ENCLK=1;//enable clock to Cap1
SysCtrlRegs.PCLKCR1.bit.ECAP2ENCLK=1;
SysCtrlRegs.PCLKCR1.bit.ECAP3ENCLK=1;
//SysCtrlRegs.PCLKCR1.bit.ECAP4ENCLK=1;
//SysCtrlRegs.PCLKCR1.bit.ECAP5ENCLK=1;
//SysCtrlRegs.PCLKCR1.bit.ECAP6ENCLK=1;
}
void InitECapGpio()
{
InitECap1Gpio();
#if (DSP28_ECAP2)
InitECap2Gpio();
#endif // endif DSP28_ECAP2
#if (DSP28_ECAP3)
InitECap3Gpio();
#endif // endif DSP28_ECAP3
#if (DSP28_ECAP4)
InitECap4Gpio();
#endif // endif DSP28_ECAP4
#if (DSP28_ECAP5)
InitECap5Gpio();
#endif // endif DSP28_ECAP5
#if (DSP28_ECAP6)
InitECap6Gpio();
#endif // endif DSP28_ECAP6
}
void InitECap1Gpio(void)
{
EALLOW;
/* Enable internal pull-up for the selected pins */
// Pull-ups can be enabled or disabled by the user.
// This will enable the pullups for the specified pins.
// Comment out other unwanted lines.
// GpioCtrlRegs.GPAPUD.bit.GPIO5 = 0; // Enable pull-up on GPIO5 (CAP1)
GpioCtrlRegs.GPAPUD.bit.GPIO24 = 0; // Enable pull-up on GPIO24 (CAP1)
// GpioCtrlRegs.GPBPUD.bit.GPIO34 = 0; // Enable pull-up on GPIO34 (CAP1)
// Inputs are synchronized to SYSCLKOUT by default.
// Comment out other unwanted lines.
// GpioCtrlRegs.GPAQSEL1.bit.GPIO5 = 0; // Synch to SYSCLKOUT GPIO5 (CAP1)
GpioCtrlRegs.GPAQSEL2.bit.GPIO24 = 0; // Synch to SYSCLKOUT GPIO24 (CAP1)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-10-22 16:18 F28335实例程序-BLDC\
目录 0 2015-10-22 16:18 F28335实例程序-BLDC\lab-motor\
目录 0 2015-10-22 16:18 F28335实例程序-BLDC\lab-motor\CMD\
文件 3947 2008-01-11 16:04 F28335实例程序-BLDC\lab-motor\CMD\28335_RAM_lnk.cmd
文件 8438 2007-09-21 11:09 F28335实例程序-BLDC\lab-motor\CMD\DSP2833x_Headers_nonBIOS.cmd
文件 4851 2009-08-17 20:53 F28335实例程序-BLDC\lab-motor\CMD\F28335.cmd
目录 0 2015-10-22 16:18 F28335实例程序-BLDC\lab-motor\INCLUDE\
文件 10465 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_Adc.h
文件 5870 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_CpuTimers.h
文件 13320 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_DMA.h
文件 6315 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_DefaultIsr.h
文件 2701 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_DevEmu.h
文件 6876 2009-08-26 09:42 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_Device.h
文件 1993 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_Dma_defines.h
文件 45525 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_ECan.h
文件 6106 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_ECap.h
文件 16545 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_EPwm.h
文件 3988 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_EPwm_defines.h
文件 10050 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_EQep.h
文件 5508 2007-10-16 14:32 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_Examples.h
文件 8571 2010-04-23 18:17 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_GlobalPrototypes.h
文件 16296 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_Gpio.h
文件 7065 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_I2c.h
文件 4103 2007-10-15 11:20 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_I2c_defines.h
文件 31570 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_Mcbsp.h
文件 5892 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_PieCtrl.h
文件 6377 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_PieVect.h
文件 720 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_Project.h
文件 145083 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_SWPrioritizedIsrLevels.h
文件 8165 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_Sci.h
文件 6291 2007-09-26 10:23 F28335实例程序-BLDC\lab-motor\INCLUDE\DSP2833x_Spi.h
............此处省略273个文件信息
相关资源
- 最新版TTF16.OCX Formula One v. 6.1.6.2 控件
- http请求状态代码
- QT 实现文件下载
- 画图程序MFC/VC/VC CRectTracker 串行化
- BmpButton
- RadioButton控件
- porttalk操作端口 .变速齿轮
-
Differential ex
pression patterns of Toll-li - MQTT+串口(usart)透传
- Froggatt-Nielsen与Mordell-Weil会面:对具有
- 易语言 TCP使用HTTP、SOCKES5代理IP。
- 驾驶证数字、字母字体.ttf
- LvglFontTool_V0.4.rar
- MQTT推送Demo
- eclipse_jetty9离线插件
- 基于IBM eserver x440+FAStT700+VMware的系统整
- 在de-Sitter时空中旋转标准玻色子星
- 三个时空维度和Nappi-Witten代数的非相
- N = 4 $$ \\ mathcal {N} = 4 $$ Chern-Simons-ma
- 从非局部观测值的角度看Anti-de-Sitte
- Game Programming Patterns.pdf
- Hall effect of reactive sputtered iron nitride
- Microservice patterns
- dive into design patterns(Alexander Shvets)
- TtransCAD交通规划详细步骤方法
- Investigation of the Absorption Mechanism of G
-
An improved momentum exchanged-ba
sed immers - puttygen
- PuTTY Connection Manager ( puttyCM )
- putty and puttygen
评论
共有 条评论