Re: Recommendations for a Quadrature Decoder IC or MicroController



"benn" <benn686@xxxxxxxxxxx> wrote in message
news:33157349-c306-4837-a17c-23a8d245bfa3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have an atmega16 that interfaces to a motor with a quadrature
encoder sensor. Turns out the frequency of the pulses are much more
than my little 4Mhz can handle (the micro does other things as well!)

Are you sure?

How do you read the quandrature signals?

If you use a Pin Change Interrupt on both signals, it appears to me that you
can very quickly check which way the motor turns and in- or decrement a
counter. In assembly of course. Shouldn't take more than a couple of
microseconds on an ATmega.

Meindert


.