Hey Guys,
I have made a wheel encoder (to sense the wheel position) which gives me a logic level output, the encoder detects the holes in a wheel and generates a pulse every time a hole is detected. There are 6 holes in the wheel thus 6 pulses = 1 rotation. I need to use these pulses to determine the distance covered by the wheel, one very easy way to implement this would be to just interrupt on every rising edge and increment a variable by one every 6 interrupts. Are there other ways i can do this....using a PIC16F877
Suggestion will be highly appreciated Nav