Accurate Quadrature Encoder Decoding Using Programmable Logic
2016
Abstract
the quadrature encoder (or incremental detector) is amongst the most widely used positional feedback devices for both rotational and linear motion machines. It is well known that in conventional circuits for quadrature signals decoding, an error emerges during the direction change of the sensor movement. In some situations this error can be accumulative but in any case it provokes a position error, that is equal to the resolution (one pulse) of the sensor. A corrective algorithm is proposed here that fully eliminates this type of error. It is an improvement over a previous research of the author which is much simpler and resource saving without compromising the performance of the device. A Xilinx CPLD platform has been chosen for the experiments. The inherent parallelism of programmable logic devices permits a multi-channel CNC machine to be fully served by a single chip. This approach outperforms the capabilities of any conventional microcontroller available on the market.
Key takeaways
AI
AI
- The proposed corrective algorithm eliminates positional errors during quadrature encoder direction changes.
- Eight specific erroneous situations can occur during direction reversal of quadrature encoders.
- The implementation utilizes a Xilinx CPLD, optimizing resource usage by 17.65% compared to previous designs.
- The algorithm ensures error-free operation, crucial for high precision servo drive systems.
- Programmable logic devices can support multiple CNC axes, outperforming traditional microcontroller solutions.
References (17)
- C. Pavlitov, Y. Gorbounov: Precise Incremental Decod- ing Device. In: EDPE 2005, Dubrovnik, Croatia, ISBN- 10 9536037432, 2005.
- M. Mano: Digital Design, 3ed, Prentice Hall, ISBN-10: 8120320956, 2002.
- S. Palnitkar: Verilog HDL, 2ed, Prentice Hall, ISBN-10: 0132599708, 2003.
- H. Toliyat, S. Campbell, DSP-Based Electromechanical Motion Control, ISBN 0-8493-1918-8, CRC Press, 2004.
- C. Pavlitov, Y. Gorbounov, Programmable Logic Devic- es in Electromechanics (BOOK in Bulgarian), Technical University of Sofia, ISBN 978-954-438-645-0, 2007.
- LS7184N -Quadrature Clock Converter and Decoder, LSI Computer Systems Inc., 1235 Walt Whitman Road Melville, NY 11747-3010, USA, 2015.
- LS7266R1 -24-BIT x 2 Axis Dual-Axis Quadrature Counter, LSI Computer Systems Inc., 1235 Walt Whit- man Road Melville, NY 11747-3010, USA, 2009.
- P. Panchal, B. Land, "Incremental Encoder Signal Ana- lyzer" Project Report, School of Electrical and Comput- er Engineering, Cornell University, 2012.
- K. Chapman, Rotary Encoder Interface for Spartan-3E Starter Kit, Application Note, Xilinx Ltd., Feb. 2006.
- J. Nicolle, Quadrature Decoder, fpga4fun Web Site, http://www.fpga4fun.com/QuadratureDecoder.html, 2013
- F. Jacob, Handbook of Modern Sensors: Physics, De- signs and Applications, Springer, ISBN-10: 8181284321, 2006
- P. Alfke, B. New, Quadrature Phase Decoder, Applica- tion Note XAPP012, Xilinx Ltd., Nov. 1995. Available at: www.xilinx.com/support/documentation/application notes/xapp012.pdf
- J. Stephenson, D. Chen, R. Fung, J. Chromczak, Under- standing Metastability in FPGAs, White Paper WP- 01082-1.2, Altera Ltd., Jul. 2009
- I. Clark, Intelligent Incremental Encoder System Devel- opment, May 2009, Available at: http://www.secondvalleysoftware.com/documentation/p dfs/encoder.pdf
- D. Kinniment, K. Heron, G. Russell, Measuring Deep Metastability, Newcastle University, UK, Available at: http://www.async.org.uk/David.Kinniment/Research/pa pers/Async2006.pdf
- A. Cantoni, J. Walker, T. Tomlin, Characterization of a Flip-Flop Metastability Measurement Method, IEEE Transactions on Circuits and Systems, Vol.54, No.5, DOI:10.1109/TCSI.2007.895514, May 2007
- CoolRunner-II CPLD Family, Application Note DS090 (v3.1), Xilinx Ltd., Sep. 2008.Available at: http://www.xilinx.com/support/documentation/data_she ets/ds090.pdf
Yassen Gorbounov












