mamech
Full Member level 3
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?