New approach to Rotary Encoder


Results 1 to 40 of 91

Threaded View

  1. #7
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: New approach to Rotary Encoder

    @ podgycode... Thanks for your example, but what I meant was I would like to implement a rotary encoder via DT's Instant Interupts. I have used "on interrupt" successfully before to detect push buttons, etc. I have yet to use InstantINT's. I am going to try aratti's example in post #18 above.

    @ aratti... could you please clarify a couple of questions regarding your example...
    ground portB.5 and portB.4
    Why is this necessary?


    Q_New = PortB.7 + PortB.7 + PortB.6
    What does this line of code do??


    TrisA = 000000
    TrisB = 110000
    I assume these need % in front of the binary number??

    I hope this is not considered "hijacking" of this thread... as it still regards implementing Rotary Encoders.
    Thanks for your help




    example
    Last edited by Heckler; - 5th November 2011 at 05:10.
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

Members who have read this thread : 4

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