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.
Bookmarks