工业仪表与自动化装置
工業儀錶與自動化裝置
공업의표여자동화장치
INDUSTRIAL INSTRUMENTATION & AUTOMATION
2014年
1期
43-45,74
,共4页
相序测定%增量式编码器%正反转状态字%单片机
相序測定%增量式編碼器%正反轉狀態字%單片機
상서측정%증량식편마기%정반전상태자%단편궤
phase sequence%incremental encoder%reversible status word%MCU
介绍了一种已获取发明专利的相序测定计数方法,以Atmel89S52单片机为基础,通过编码器的输出脉冲A和其反向脉冲A-产生中断,在中断服务程序中读取脉冲A、A-及与A脉冲相位差为90°的脉冲B的电平并与已在E2 PROM中储存的状态字进行比较,由此来确定旋转方向并对脉冲进行加减计数。同时,该文也介绍了相应的硬件电路和软件程序。该方法在实际应用中的测试表明,当编码器频繁改变旋转方向时仍具有很高的测量准确度并能有效地抑制脉冲干扰信号。
介紹瞭一種已穫取髮明專利的相序測定計數方法,以Atmel89S52單片機為基礎,通過編碼器的輸齣脈遲A和其反嚮脈遲A-產生中斷,在中斷服務程序中讀取脈遲A、A-及與A脈遲相位差為90°的脈遲B的電平併與已在E2 PROM中儲存的狀態字進行比較,由此來確定鏇轉方嚮併對脈遲進行加減計數。同時,該文也介紹瞭相應的硬件電路和軟件程序。該方法在實際應用中的測試錶明,噹編碼器頻繁改變鏇轉方嚮時仍具有很高的測量準確度併能有效地抑製脈遲榦擾信號。
개소료일충이획취발명전리적상서측정계수방법,이Atmel89S52단편궤위기출,통과편마기적수출맥충A화기반향맥충A-산생중단,재중단복무정서중독취맥충A、A-급여A맥충상위차위90°적맥충B적전평병여이재E2 PROM중저존적상태자진행비교,유차래학정선전방향병대맥충진행가감계수。동시,해문야개소료상응적경건전로화연건정서。해방법재실제응용중적측시표명,당편마기빈번개변선전방향시잉구유흔고적측량준학도병능유효지억제맥충간우신호。
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 .