This solution is more flexible than the Timer pattern, as it goes full speed if the user doesn't do anything but doesn't keep the machine from being responsive otherwise.
这个解决方案比计时器解决方案灵活,因为如果用户不做任何事情,它会全速运行,同时不会影响计算机的响应性。
Based on this method, the accurate control pulses are generated from the PC timer and used for driving the step motor to realize a wide range speed control smoothly.
基于该方案,通过截用PC机系统的定时器资源产生精确定时的控制脉冲,使步进电机实现宽广范围内的速度平滑控制。
The system software involves five main modules: initialization module, phase-changing module, current-regulating module, speed-regulating module and timer interrupt module.
软件分为五块:主程序中的初始化模块、换相子程序模块、电流调节、速度调节子程序模块,定时器中断程序模块。
应用推荐