View Single Post
  #4 (permalink)
Old 3rd July 2008, 12:20 AM
reachrkata
CE - Regular Member
 
reachrkata's Avatar
 
I'm a Crazy Electronics Engineer
Join Date: 4th November 2006
Posts: 82
Arrow 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
reachrkata is offline   Reply With Quote