eQEP
7 - 44 C2000 Microcontroller Workshop - Control Peripherals
Using a quadrature decoder state machine, we can determine if the counter is incrementing or
decrementing, and therefore know if the disc is moving clockwise or counterclockwise.
eQEP Module Block Diagram
Quadrature
Decoder
EQEPxA/XCLK
EQEPxB/XDIR
EQEPxI
EQEPxS
Position/Counter
Compare
Quadrature
Capture
32-Bit Unit
Time-Base
QEP
Watchdog
SYSCLKOUT
Generate the direction and
clock for the position counter
in quadrature count mode
Generate a sync output
and/or interrupt on a
position compare match
Measure the elapsed time
between the unit position events;
used for low speed measurement
Generate periodic
interrupts for velocity
calculations
Monitors the quadrature
clock to indicate proper
operation of the motion
control system
Quadrature -
clock mode
Direction -
count mode
The QEP module features a direct interface to encoders. In addition to channels A and B being
used for rotational directional information, the index can be used to determine rotational speed,
and the strobe can be used for position from a homing sensor.
eQEP Module Connections
Ch. A
Ch. B
Index
Quadrature
Decoder
EQEPxA/XCLK
EQEPxB/XDIR
EQEPxI
EQEPxS
Position/Counter
Compare
Quadrature
Capture
32-Bit Unit
Time-Base
QEP
Watchdog
SYSCLKOUT
Strobe
from homing sensor