mamech
Full Member level 3
- Joined
- Nov 9, 2010
- Messages
- 176
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,296
- Activity points
- 3,135
Hello
I am new to the world of interfacing with rotary encoders with pic microcontroller. I searched and I read some codes, and I see that the efficient way is to use interrupts, but my question is, will I need to use interrupt on change on A / B pins ? or I will need to use counter/timer TMR0 & TMR1 for example?
most of the code that I have seen are using interrupts, will not be more efficient if i use counter to count pulses?
I am new to the world of interfacing with rotary encoders with pic microcontroller. I searched and I read some codes, and I see that the efficient way is to use interrupts, but my question is, will I need to use interrupt on change on A / B pins ? or I will need to use counter/timer TMR0 & TMR1 for example?
most of the code that I have seen are using interrupts, will not be more efficient if i use counter to count pulses?