摘要
嵌入式控制系统以其低功耗、低成本、高性能等优势被广泛用于工业控制领域,而在嵌入式控制系统中步进电机驱动控制技术是关键技术之一。本文介绍了基于ARM9和Linux的步进电机四轴群控驱动程序的实现方法,论述了引入自旋锁实现对临界资源的保护策略,避免了电机竞态,保障了步进电机四轴驱动的可靠性。此外,还编写了驱动性能测试程序,测试结果显示,驱动程序能很好的驱动步进电机运转。所编步进电机四轴驱动程序不但易于移植到其他控制系统中,而且为字符型设备驱动的编写方法提供了有益参考。
Embedded control system is widely used in the control area of industrial with its advantages of low power consumption, low cost, high performance, and stepping motor driver control technology is one of the key technologies of embedded control system. This paper introduces driver design of four shafts stepping motor based on ARM9 and Linux, discusses the spin lock on critical resources to realize protection strategy, eliminates motor race condition and ensures the reliability of four shafts stepping motor driver. In addi tion, test is carried out based on the driver program, and the results show that, the driver program can driver the stepping motor running properly. The four shafts stepping motor driver program not only easy to transplant to other control system, but also provides beneficial references for writing character type device driver.
出处
《微计算机信息》
2012年第8期68-70,共3页
Control & Automation
基金
基金申请人:罗庆生
项目名称:智能×××××关键技术研究
基金颁发部门:中国人民解放军总装备部(编号不公开)