decoding quadrature encoders


Closed Thread
Results 1 to 40 of 94

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Location
    León
    Posts
    5


    Did you find this post helpful? Yes | No

    Question Re: decoding quadrature encoders

    Code:
    ...
    else
        OPTION_REG.6 = 1
        IF PORTB.2 = 1 THEN
        CONTADOR = CONTADOR - 1
        ENDIF
    ENDIF
    INTCON.1 = 0
     OPTION_REG.6 = 0 'Here???
    RESUME
    ENABLE
    My problem is the count never sub only add and add if the encoder turn left add and if the encoder turn right add too that's my problem


    I'm working with
    http://www.bourns.com/data/global/pdfs/pec11.pdf

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,184


    Did you find this post helpful? Yes | No

    Default Re: decoding quadrature encoders


  3. #3
    Join Date
    Apr 2011
    Location
    León
    Posts
    5


    Did you find this post helpful? Yes | No

    Thumbs up Re: decoding quadrature encoders

    Thank you so much Ioannis!!

Similar Threads

  1. Quick thoughts: DT Ints with encoders
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 7th January 2010, 01:01
  2. PMDC SERVO MOTOR WITH quadrature encoder DRIVE ?
    By phoenix_1 in forum Schematics
    Replies: 37
    Last Post: - 22nd November 2009, 19:45
  3. 32-bit Quadrature Counter With Serial Interface
    By precision in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 10th June 2008, 02:49
  4. quad encoders
    By cpayne in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th March 2007, 17:49
  5. "momentary" IR decoding
    By sporker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 20th June 2005, 01:53

Members who have read this thread : 0

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