Re: Encoder data: How to interpret encoder data from a motor going into the PIC16F877
No the encoder doesn't send data continuously. It only sends pulses when you turn it.
As I specified previously, you can maintain a counter to count the encoder turns in the Interrupt Service routine. In parallel, you can also configure an internal timer for sampling. After the timer time-out, just do what you want to do with the present counter value and then reset the counter to zero.
-Karthik
|