文档介绍:南京航空航天大学
硕士学位论文
基于ARM和μC/OS-Ⅱ的嵌入式数控系统的设计与开发
姓名:王瞳瞳
申请学位级别:硕士
专业:机械电子工程
指导教师:赵东标
20080101
南京航空航天大学硕士学位论文
摘要
嵌入式系统是近年来发展最快的技术之一。采用嵌入式系统可以缩短产品研发周
期,提高系统的可靠性和性价比。由于嵌入式系统既有单片机系统成本低、体积小、功
耗低的特点,又具有 PC 平台的开发环境好、资源丰富、具备操作系统、用户界面友好
的特点,因而在数控技术领域会有良好的发展前景。
本课题在江苏省自然科学基金重大(招标)项目(BK2003005)资助下,在对嵌入
式系统、数控系统进行深入分析研究的基础上,完成了基于 ARM 微处理器的嵌入式数
控系统的设计与开发。系统采用模块化设计,主要模块包括:ARM 微处理器模块、存
储器模块、人机交互模块、通信接口模块、CPLD/FPGA 模块、输入输出模块。系统采
用二次插补法,即 ARM 微处理器实现粗插补,FPGA 实现 DDA 硬插补,同时配合良
好的加减速控制,保证了插补的连续性和稳定性。软件系统以µC/OS–II 嵌入式实时操
作系统为核心,开发系统所需的底层设备驱动程序和应用程序接口(API)函数。该数
控系统可以控制四轴联动,具有大量 I/O 接口,具有主轴和手脉信号接口,具备友好的
人机交互功能,可应用于数控车床和数控铣床。目前本系统已经基本实现了预期的目标,
运动轴信号输出频率可达到 1MHz,最大快速移动速度为 60m/min,主要性能指标达到
数控系统先进水平。
关键词:数控系统,嵌入式系统,ARM 处理器,µC/OS–II。
I
基于 ARM 和µC/OS-Ⅱ的嵌入式数控系统的设计与开发
Abstract
Embeded system is one of the most rapid developing technologies recently. It is a kind
of special application-puter system. The application of embedded system can
shorten the developing cycle of products and improving the reliability and performance of
products. In addition, it has other excellent features such as less system cost, tiny volume and
low power consumption of single-chip devices as well as perfect developing environment,
abundant resources and supporting operating system of PC platforms. Therefore, embedded
system will have a good development future in the field C.
Supported by Natural Science Foundation of Jiangsu Province (BK2003005), and based
on in-depth study of embedded system and NC system, a novel design of C
system based on microprocessor ARM is presented in this thesis. The system is designed by
module, which includes microprocessor ARM module, memory module, human interface
module, communication interface module, CPLD/FPGA module, input and output module.
Two-step interpolation method is adopted in system in which microprocessor ARM
implements rough-interpolation and FPGA system implements D