dsPIC30F Quadrature Encoder Interface Module
© 2005 Microchip Technology Inc.
Page 5
© 2005 Microchip Technology Incorporated. All Rights Reserved. dsPIC30F Quadrature Encoder Interface Module 5
dsPIC QEI Features
O QEI Features
O QEI decodes signals and accumulates count
O Logically swap A and B inputs
O Programmable noise filters on inputs
O x2 and x4 counting modes
O 16-bit Position count register
O Reset on index pulse (if enabled)
O Reset on rollover/underflow
O Count error status bit
The QEI will perform all the operations needed to effectively use the information
coming from the encoder.
Since these signals are heavily affected by noise, a digital filter is available on
each input. The filtered phase edges are counted by a dedicated 16 bit up/down
counter, also referred to as the Position Counter. To establish a reference point
for position and speed measurements, the counter can be reset either by the
index signal or by a counter period match. The hardware can also perform
some error checking on on the accumulated count.