论文部分内容阅读
近年来,光栅编码器的应用领域更加广泛,工业需求逐步增长,精度要求也越来越高。为了满足高速实时采集的要求,本文介绍了一种基于CPLD的光栅编码器采集系统,详细阐述了光栅编码器A、B两路脉冲信号的四倍频细分、相位鉴定以及脉冲计数的方法,并采用Verilog HDL语言编写计数模块程序,在Quartus II平台上对采集脉冲信号进行仿真,充分验证了该设计的可行性与可靠性。仿真结果表明相比于传统设计方法而言,该系统具有高速、稳定可靠、功耗低等优点。
In recent years, the application field of the grating encoder is more extensive, the industrial demand is gradually increasing, and the precision requirements are also getting higher and higher. In order to meet the requirements of high-speed real-time acquisition, a grating encoder acquisition system based on CPLD is introduced in this paper. The fourfold frequency subdivision, phase identification and pulse counting of two pulse signals of grating encoder A and B are described in detail. The Verilog HDL language is used to write the counting module program, which simulates the acquisition pulse signal on the Quartus II platform, which fully verifies the feasibility and reliability of the design. Simulation results show that compared with the traditional design method, the system has the advantages of high speed, stable and reliable, low power consumption.