View Single Post
Old 03-17-2016, 11:54 AM   #2666 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,202 Times in 765 Posts
They may have different settings for initializing the quadrature encoder interface. Or maybe that's not the problem at all. I don't know why it's not working with my code. Maybe there's an issue with the swap ab inputs, or something. YOu coudl try to change:

QEICONbits.SWPAB = 0; // don't swap QEA and QEB inputs.


Change that to SWPAB = 1 instead?
__________________
kits and boards
  Reply With Quote