Introduction - If you have any usage issues, please Google them yourself
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.