In SX Microcontrollers, SX/B Compiler and SX-Key Tool, jfischer wrote: I have an application that I have developed and integrated a PLC to perform the functions. The PLC is not precise enough for the job, the period and frequency of the PLC output varies....... I need to change to a different type of controller. The application uses an optical quadrature encoder to provide direct position feed back from a physical, process by incrementing or decrementing a counter. (Quadrature encoder is a device that produces two square wave signals, 90 degrees out of phase, each with a 50% duty cycle) A single event will occur with each revolution of the quadrature encoder. The encoder will turn about 300 RPM. The encoder has a resolution of 1000 pulses per revolution. The event will be triggered by a comparator that compares the encoder count with a preset value. When the preset value in the comparator equals the counter value of the quadrature encoder, one square wave pulse will be generated on an output line to trigger the event. (Once for each true compare cycle) The encoder counter will be compared counting up or down. The compare frequency will be about 5hz Using one of the SX products, A chip like an HCTL-2032 decoder/counter could be interfaced with the controller or code will have to be written for a decoder/counter using the standard inputs. Has any one used an SX for a quadrature counter/comparator application? [3][/3] [3]jfischer [/3] [3][/3] [3]Notes on the HCTL-2032 decoder/counter IC[/3] [3]The HCTL-2032 is a CMOS IC that perform the quadrature decoder, counter, and bus interface function. The HCTL-2032 is designed to improve system performance in digital closed loop motion control systems and digital data input systems. It does this by shifting time intensive quadrature decoder functions to a cost effective hardware solution. The HCTL-2032 consists of 4x/2x/1x-quadrature decoder, a binary up/down state counter, and an 8-bit bus interface. The HCTL-2032 has the dual-axis capability and index channel counter. The use of Schmitt-triggered CMOS inputs and input noise filters allows reliable operation in noisy environments. The HCTL-2032 contains 32-bit counter. It also contains quadrature decoder output signals and cascade signals for use with many standard computer ICs. The HCTL-2032 provides LSTLL compatible tri-state output buffers. Operation is specified for a temperature range from -40 degrees C to +100 degrees C at clock frequencies up to 33MHz.[/3] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=85878 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)