摘要
介绍了一种已获取发明专利的相序测定计数方法,以Atmel89S52单片机为基础,通过编码器的输出脉冲A和其反向脉冲A-产生中断,在中断服务程序中读取脉冲A、A-及与A脉冲相位差为90°的脉冲B的电平并与已在E2PROM中储存的状态字进行比较,由此来确定旋转方向并对脉冲进行加减计数。同时,该文也介绍了相应的硬件电路和软件程序。该方法在实际应用中的测试表明,当编码器频繁改变旋转方向时仍具有很高的测量准确度并能有效地抑制脉冲干扰信号。
The unique counting method of phase sequence measuring which has obtained patent is in -troduced in this paper .Based on Atmel89 S52 microchip , forward pulse A generated by the encoder in the interrupt or with a opposite pulse A-, read the level of A, A-and pulse B whose phase is in quadrature with A and compared with the initial standard status word in E 2 PROM.Therefore, the direction of the rotation could be determined and the pulses could be counted by this method .In the mean time , the hardware circuit and software program are described in this paper .The practical application shows that this method still has high measurement accuracy when the encoder changes its direction of rotation frequently and pulse interference signal can be effectively suppressed .
出处
《工业仪表与自动化装置》
2014年第1期43-45,74,共4页
Industrial Instrumentation & Automation