for a quick look here is a typical incremental rotary encoder
and hear the output wave form
Decoding with Microcontroller
in this examples we will be decoding the rotary encoder with the help of sate machine.
view of state machine in the wave form
Schematic with MSP430G2211
Source code and firmware
CLIK Here To download Source Code and Firmware.