摘要
Cortex-M3是ARM公司最新推出的基于ARMv7体系架构的处理核。步进电机已被广泛的应用于速度、位置等控制领域。本文实现了基于Cortex-M3内核处理器的步进电机的线性速度控制。针对步进电机控制过程中易出现的失步和过冲现象,提出了一种步进电机加减速控制算法。首先,在Cortex-M3内核处理器上移植了μCOS-Ⅱ实时操作系统。在此基础上,利用系统的API接口函数用程序实现了加减速控制算法,并最终实现了对两路步进电机的控制。
Cortex-M3 is the latest ARMv7 architecture-based processing core released by ARM. Stepper motor has been widely used on control field such as speed and position. This paper realizes the linear speed control of stepper motor based on ARM Cortex-M3 core processor. To solve the out-of-step and overshoot phenomenon of stepper motor control, an acceleration and deceleration algorithm is proposed. First of all, the μCOS- Ⅱ real-time operating system has been transplanted to the Cortex-M3 core processor. On this basis, program is prepared to achieve the acceleration and deceleration algorithm which uses the API interface function at the same time. At last the system successfully completes the control of two stepper motors.
出处
《电气自动化》
2009年第5期42-44,共3页
Electrical Automation