文件名称:Lab407-Dcmotor
介绍说明--下载内容均来自于网络,请自行研究使用
一个dsp 直流电机控制的例子
慷慨赴死易 从容负重难-#include "DSP2833x_Device.h" // DSP2833x Headerfile Include File
#include "DSP2833x_Examples.h" // DSP2833x Examples Include File
#include "ctr.h"
#include "PID.h"
#include "scancode.h"
// Prototype statements for functions found within this file.
interrupt void cpu_timer0_isr(void)
#define LEDS*(int*)0x180000
#define port8000 (*((unsigned int*)0x208000))
#define port8001 (*((unsigned int*)0x208001))
#define port8002 (*((unsigned int*)0x208002))
#define port8003 (*((unsigned int*)0x208003))
#define port8004 (*((unsigned int*)0x208004))
#define port8007 (*((unsigned int*)0x208007))
void Gpio_select(void)
void Gpio_PortB(void)
void Gpio_PortA(void)
void ShowParameters()
void LCDPutString(unsigned int*pData,int x,int y,unsigned int nCharNumber,unsigned color)
void PIDControl(int rk,int yk)
char ConvertScanToChar(unsigned char cScanCode)
void Delay(unsigned int nTime) // 延时子程序
Uint16 var1 = 0
Uint16 var2 = 0
Uint16 var3 = 0
Uint16 test_co
慷慨赴死易 从容负重难-#include "DSP2833x_Device.h" // DSP2833x Headerfile Include File
#include "DSP2833x_Examples.h" // DSP2833x Examples Include File
#include "ctr.h"
#include "PID.h"
#include "scancode.h"
// Prototype statements for functions found within this file.
interrupt void cpu_timer0_isr(void)
#define LEDS*(int*)0x180000
#define port8000 (*((unsigned int*)0x208000))
#define port8001 (*((unsigned int*)0x208001))
#define port8002 (*((unsigned int*)0x208002))
#define port8003 (*((unsigned int*)0x208003))
#define port8004 (*((unsigned int*)0x208004))
#define port8007 (*((unsigned int*)0x208007))
void Gpio_select(void)
void Gpio_PortB(void)
void Gpio_PortA(void)
void ShowParameters()
void LCDPutString(unsigned int*pData,int x,int y,unsigned int nCharNumber,unsigned color)
void PIDControl(int rk,int yk)
char ConvertScanToChar(unsigned char cScanCode)
void Delay(unsigned int nTime) // 延时子程序
Uint16 var1 = 0
Uint16 var2 = 0
Uint16 var3 = 0
Uint16 test_co
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Lab407-Dcmotor\cc_build_Debug.log
..............\Dcmotor.c
..............\Dcmotor.paf2
..............\Dcmotor.pjt
..............\Dcmotor.sbl
..............\Debug.lkf
..............\.cmotor.CS_\FILE.CDX
..............\...........\FILE.DBF
..............\...........\FILE.FPT
..............\...........\SYMBOL.CDX
..............\...........\SYMBOL.DBF
..............\...........\SYMBOL.FPT
..............\.ebug\Dcmotor.map
..............\.....\Dcmotor.obj
..............\.....\Dcmotor.out
..............\.....\DSP2833x_ADC_cal.obj
..............\.....\DSP2833x_CodeStartBranch.obj
..............\.....\DSP2833x_CpuTimers.obj
..............\.....\DSP2833x_DefaultIsr.obj
..............\.....\DSP2833x_GlobalVariableDefs.obj
..............\.....\DSP2833x_Gpio.obj
..............\.....\DSP2833x_PieCtrl.obj
..............\.....\DSP2833x_PieVect.obj
..............\.....\DSP2833x_SysCtrl.obj
..............\.....\DSP2833x_usDelay.obj
..............\.....\DSP2833x_Xintf.obj
..............\Dcmotor.CS_
..............\Debug
Lab407-Dcmotor
..............\Dcmotor.c
..............\Dcmotor.paf2
..............\Dcmotor.pjt
..............\Dcmotor.sbl
..............\Debug.lkf
..............\.cmotor.CS_\FILE.CDX
..............\...........\FILE.DBF
..............\...........\FILE.FPT
..............\...........\SYMBOL.CDX
..............\...........\SYMBOL.DBF
..............\...........\SYMBOL.FPT
..............\.ebug\Dcmotor.map
..............\.....\Dcmotor.obj
..............\.....\Dcmotor.out
..............\.....\DSP2833x_ADC_cal.obj
..............\.....\DSP2833x_CodeStartBranch.obj
..............\.....\DSP2833x_CpuTimers.obj
..............\.....\DSP2833x_DefaultIsr.obj
..............\.....\DSP2833x_GlobalVariableDefs.obj
..............\.....\DSP2833x_Gpio.obj
..............\.....\DSP2833x_PieCtrl.obj
..............\.....\DSP2833x_PieVect.obj
..............\.....\DSP2833x_SysCtrl.obj
..............\.....\DSP2833x_usDelay.obj
..............\.....\DSP2833x_Xintf.obj
..............\Dcmotor.CS_
..............\Debug
Lab407-Dcmotor