초록

A code is written for decoding the quadraturesignals from the rotary encoder, to get a pulse train along withdirection signal, which shows one transition period, and thedirection of the rotation, whether in clockwise or anti clockwisedirections respectively. It is especially important for machines inIndustries which have to monitor the transition periods, or formachines used for Image Processing. Using AVR Studio 4, andAVR GCC, a C code for decoding the quadrature signals is beingpresented, which gives the pulse for one cycle and the directionin which the encoder is being rotated. With a change indirection, there is a change in the direction pulse, and the pulseindicates the completion of one transition cycle. It is explained indetail in the documentation.