×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

quadrature encoder interface

quadrature encoder interface

quadrature encoder interface

(OP)
Does anyone know of a readily available quadrature encoder interface IC capable of x1, x2, x4 counting?  I have seen only one current manufacturer (LSI).  Theirs is pretty expensive and I'm not sure about its availability.  What I'm looking for will hopefully support 16-bit or more counter.  The application is motor control.  In the past, I was using a microcontroller with this feature built in.  However, we are moving to an ARM microcontroller, and an external interface will be required.

Any thoughts?

RE: quadrature encoder interface

It depends on what speed you need. I have used a technique that inputs A and B on two pins, stores it as "new" and then adds it to the "old" A and B signal multiplied by four (shifted left twice). You then get a number between 0 and 15. Use this number to read a table, Four of the entries contain +1 (FWD) and four of the entries contain -1 (BWD). The rest are illegal and contain 0. Add the reading to the counter and you have the encoder entirely in software. Done this in a 16 MHz 16-bitter and could decode 20+ kHz and still do useful work in the spare time.

An ARM7 running at 66 MHz should be able to do lots of things besides decoding.

The reason this encoding technique is so fast is that it does not have to make lots of decisions. It just reads two pins, shifts and stores, adds and reads the table. That's all.

A 16-pin PALCE or similar is the next thing to use. You will probably not have any speed problems at all then.

Gunnar Englund
www.gke.org

RE: quadrature encoder interface

(OP)
Thanks skogsgurra.  I did think about using programmable logic... but decided the added cost and programming(flashing) time would be a little too much.  Also, most of the simple PLD's don't come in 3.3V surface mount packages, or are much too large to be useful.  I've also thought about decoding in software, but controlling 4 motors simultaneously might be a little taxing on a 25MHz ARM.  I will put some more thought into it however, as it may be the best option.
Also, thanks itsmoked.  I'm trying to keep the encoder interface as inexpensive as possible.  US-Digidal is a distributor for LSI.

RE: quadrature encoder interface

(OP)
Aha!  I was trying to find the old HP QEI!  I couldn't find it on Agilent's web site.  I guess those products are offered by Avago now?  Well anyway, that was a very helpful link!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources