On 6/12/2013 10:53 AM, Vicent Colomar Prats wrote: > Better than that, thera are PIC microcontrollers with dedicated hardware > encoder counters (QEI) from microchip. I tried it on a dsPIC33EP64MC504 > with two QEI modules and it works fantastic. No one line of code needed, > just configure registers. You just read count register and, also (dsPIC33= ), > velocity! > > Back when I had a project that was using lots of encoders I looked over=20 the chips that had it in hardware and was disappointed that microchip=20 didn't support it in more chips. One peripheral they don't seem to want=20 to include in some of the other lines, though the new chips with the CLC=20 can be used to implement one in hardware. We ended up using the Avago chips. http://www.avagotech.com/pages/en/motion_control_encoder_products/integra= ted_circuits/decoder_ic/hctl-2022/ Mark --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .