摘要
针对步进电机控制电路拆卸难度较大、外场软件升级维护困难、保障能力弱的问题,设计了一种可在线编程的步进电机控制电路,基于微控制器数字控制器实现,具体分为电机控制或在线编程两种模式,在电机控制模式下,FPGA中的电机控制器接收来自CPU的总线指令,并通过SPI总线将控制命令发送给微控制器中的步进电机软件;在在线升级模式下,通过机上总线或升级RS422总线将二进制目标文件发送给CPU,存储在外置FLASH中,当CPU接收到升级指令后,将二进制文件发送给FPGA,由驻留在FPGA内部的在线编程控制器依据增强型ICSP协议启动升级流程,并将目标码固化到微控制器的片上FLASH中。实验结果表明,步进电机控制电路能有效实现在线编程,显著提高RIU的综合保障能力。
Stepper motors control circuits is difficult to remove,upgrade and maintain.This paper designs a stepper motor control circuit base on MCU that can be programmed online.It works in both motor control and online programming modes.In the motor control mode,the controller in the FPGA receives bus commands and sends them to the software in the MCU via SPI bus.In the online programming mode,after receiving the upgrade instruction,the CPU sends the binary target file to the online programming controller in the FPGA,and it initiates the upgrade process and cures the target code in the on chip flash of MCU based on the enhanced ICSP protocol.The experimental results show that the stepper motor control circuit can effectively realize online programming and significantly improve the comprehensive support capability of the RIU.
作者
屈盼让
范新明
蔡晓乐
孙少华
QU Pan-rang;FAN Xin-ming;CAI Xiao-le;SUN Shao-hua(Xi′an Aeronautics Computing Technique Research Institute,AVIC,Xi′an 710000,China)
出处
《航空计算技术》
2021年第3期93-97,共5页
Aeronautical Computing Technique
基金
航空科学基金项目资助(2016ZC31004)。