首页> 中文期刊>自动化仪表 >光电编码器输出脉冲可逆计数方法的对比与改进

光电编码器输出脉冲可逆计数方法的对比与改进

     

摘要

Photoelectric encoder is one of the commonly used sensors for detecting displacement in position control system. By reversibly counting the output pulses of the encoder that connecting with the controlled object, the linear displacement or angular displacement can be calculated. But in practical applications, because of the physical and electromagnetic interferences, glitches and jittering phenomenon may exist in output pulses, thus the counting result is incorrect. Based on 80C51 single chip computer, two of the commonly used counting methods, i. e. , the single interrupt and double interrupt methods are analyzed, and the new scanning counting method is proposed. With this method, two of the pulse strings are scanned timely, through comparing the phase relationship between two pulse strings, direction discrimination and counting are completed precisely using less hardware resources.%光电编码器是位置控制系统中一种常用的位移检测传感器.通过对与被控对象连接的编码器输出的脉冲数进行可逆计数,可计算出编码器的直线位移或角位移.实际应用中输出脉冲受物理和电磁干扰会存在毛刺和抖动现象,影响计数结果.为此,在80C51单片机基础上对单中断和双中断两种常用计数方法进行分析对比,提出了一种新的扫描计数法.扫描计数法通过定时扫描和对比两路脉冲序列的相位关系完成辨向和计数,既能更准确辨向和计数,又能节省硬件资源.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号