节点文献
光电编码器输出脉冲的几种计数方法
Several Methods of Output Pulse Counting for Photoelectric Encoder
【摘要】 光电编码器是高精度位置控制系统常用的一种位移检测传感器。在位置控制系统中 ,由于电机既可能正转 ,也可能反转 ,所以要对与其相连的编码器输出的脉冲进行计数 ,要求相应的计数器既能实现加计数 ,又能实现减计数 ,即进行可逆计数。其计数的方法有多种 ,包括纯粹的软件计数和硬件计数。文中分别对这两种常用的计数方法进行了分析 ,对其优缺点进行了对比 ,最后提出了一种新的计数方法 ,利用 80 5 1单片机内部的计数器实现对光电编码器输出脉冲的加减可逆计数 ,既节省了硬件资源 ,又能得到较高的计数频率
【Abstract】 In position control system, the electromotor should be able to turn back or forth, so the counter designed to count the pulse output from the photoelectric encoder connected to the electromotor should have the function of up down counting. That is reversible counting. There are many methods to count the pulse including software counting and hardware counting. These two methods of counting are analyzed in this paper, and a new method of counting is suggested after comparing the advantages and disadvantages of them. With fewer hardware, we obtained a high speed of reversible counting rate using the internal counter of the 8051 MCU.
【Key words】 photoelectric encoder; counter; reversible counting; position control;
- 【文献出处】 电子工程师 ,Electronic Engineer , 编辑部邮箱 ,2004年08期
- 【分类号】TP211
- 【被引频次】105
- 【下载频次】1945