摘要
针对ARM-Linux平台下对旋转编码器脉冲计数研究较少的问题,完成了在AT91RM9200处理器和Linux2.6内核下旋转编码器的脉冲计数电路接口和驱动程序的开发。根据旋转编码器的基本工作原理,用AT91RM9200处理器的PIO中实现了脉冲辨向及加减计数电路,利用Linux字符设备驱动编写的基本方法在CE9200-3开发平台上进行了驱动和应用程序的设计。实验结果表明,方案切实可行,稳定性、实时性好,功能丰富,实现了ARM-Linux下的对旋转编码器支持,并已应用在材料冲击试验机嵌入式控制系统中。
In order to resolve the problems of the rotary encoder pulse counting under the ARM-Linux platform,the rotary encoder circuit interface and driver were designed and implemented under the AT91RM9200 processor and the kernel of Linux2.6.According to the basic principle of rotary encoder,using the AT91RM9200 processor PIO(Parallel Input / Output Controller) port to implement the phase determination and counting circuit.Meanwhile,using the basic method of Linux character device driver to design the driver and the application under CE9200-3 development platform.The experimental result indicates that the scheme is feasible,it has accomplished the support of rotary encoder under the ARM-Linux platform and been applied in the embedded control system of material impact testing machine.
出处
《计算机应用》
CSCD
北大核心
2011年第A02期156-158,163,共4页
journal of Computer Applications
基金
宁夏回族自治区科技攻关计划项目(宁科计字[2009]83号第25项)