文件名称:ex8_PWM
介绍说明--下载内容均来自于网络,请自行研究使用
程序所在目录:ex_PWM
打开,进行如下操作:
1. Project->Open ,打开该目录中的工程文件。
2. Project->Rebuild ALL,编译链接
3. File->Load Program
4. Debug->Run
可以看到电机开始转动。本例程中PWM的频率是1KHZ ,输出的是两路带死去的PWM波形对。用户只需更改参数XPWM即可改变电机的转速和方向。该参数设置如下:
XPWM=2400 最大值2500
When xpwm=0-900, 逆时针方向旋转,值越小,转速越快
When xpwm=1600-2500, 顺时针方向旋转,值越大,转速越快
When xpwm=900-1600,电机两端电压太低,基本上不足以起转。
-Procedures where the directory: ex_PWM
Opened, the following steps:
1. Project-> Open, open the project file directory.
2. Project-> Rebuild ALL, the compiler links
3. File-> Load Program
4. Debug-> Run
Motor rotation can be seen beginning. The routines in the frequency of PWM are 1KHZ, are two-way output of the PWM waveform with dead right. Users only need to change the parameters XPWM can change the motor speed and direction. The parameter settings are as follows:
XPWM = 2400 Maximum 2500
When xpwm = 0-900, anti-clockwise rotation, the smaller the value, the faster the speed
When xpwm = 1600-2500, clockwise rotation, the value the greater the speed the faster the
When xpwm = 900-1600, the electrical voltage is too low, basically not enough to be transferred.
打开,进行如下操作:
1. Project->Open ,打开该目录中的工程文件。
2. Project->Rebuild ALL,编译链接
3. File->Load Program
4. Debug->Run
可以看到电机开始转动。本例程中PWM的频率是1KHZ ,输出的是两路带死去的PWM波形对。用户只需更改参数XPWM即可改变电机的转速和方向。该参数设置如下:
XPWM=2400 最大值2500
When xpwm=0-900, 逆时针方向旋转,值越小,转速越快
When xpwm=1600-2500, 顺时针方向旋转,值越大,转速越快
When xpwm=900-1600,电机两端电压太低,基本上不足以起转。
-Procedures where the directory: ex_PWM
Opened, the following steps:
1. Project-> Open, open the project file directory.
2. Project-> Rebuild ALL, the compiler links
3. File-> Load Program
4. Debug-> Run
Motor rotation can be seen beginning. The routines in the frequency of PWM are 1KHZ, are two-way output of the PWM waveform with dead right. Users only need to change the parameters XPWM can change the motor speed and direction. The parameter settings are as follows:
XPWM = 2400 Maximum 2500
When xpwm = 0-900, anti-clockwise rotation, the smaller the value, the faster the speed
When xpwm = 1600-2500, clockwise rotation, the value the greater the speed the faster the
When xpwm = 900-1600, the electrical voltage is too low, basically not enough to be transferred.
相关搜索: 电机
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ex8_PWM
.......\CC_BUILD.LOG
.......\cc_build_Custom.log
.......\Custom.lkf
.......\Custom.lkv
.......\Define.asm
.......\Define.obj
.......\DSP.CMD
.......\EX.MAK
.......\EX.MAP
.......\EX.OBJ
.......\EX.OUT
.......\EX.paf
.......\EX.pjt
.......\F2407REGS.H
.......\GLOBAL.C
.......\GLOBAL.OBJ
.......\LF2407.GEL
.......\LF2407A.H
.......\Main.c
.......\Main.obj
.......\CC_BUILD.LOG
.......\cc_build_Custom.log
.......\Custom.lkf
.......\Custom.lkv
.......\Define.asm
.......\Define.obj
.......\DSP.CMD
.......\EX.MAK
.......\EX.MAP
.......\EX.OBJ
.......\EX.OUT
.......\EX.paf
.......\EX.pjt
.......\F2407REGS.H
.......\GLOBAL.C
.......\GLOBAL.OBJ
.......\LF2407.GEL
.......\LF2407A.H
.......\Main.c
.......\Main.obj