QEI Hardware Quadrature Encoder Inputs PIC 18F4431


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: QEI Hardware Quadrature Encoder Inputs PIC 18F4431

    Hi Mark,
    Did you have the Index input floating?
    If so it might pick up noise from the adjacent lines causing the counter to roll over. Anyway, that's not the way you're supposed to have it configured for what you're doing - as you've discovered.

    Any chanse you were looking at the first four digits of the POSCNT register(s) and missed the fact that it DID roll over to 65535?
    2767 -> (6)5535 -> 0 or 2767 -> 0 -> (6)5535

    Anyway, I'm glad you're back up and running.

    /Henrik.

  2. #2
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231


    Did you find this post helpful? Yes | No

    Default Re: QEI Hardware Quadrature Encoder Inputs PIC 18F4431

    Duh! didn't even think about that. Forest for the trees....
    Thanks
    Mark.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts