English
Language : 

LM3S2939 Datasheet, PDF (648/749 Pages) Texas Instruments – Stellaris® LM3S2939 Microcontroller
Quadrature Encoder Interface (QEI)
Figure 18-1. QEI Block Diagram
Control & Status
QEICTL
QEISTAT
QEILOAD
Velocity Timer
QEITIME
PhA
PhB
IDX
Velocity
Predivider
clk
Quadrature
Encoder dir
Velocity Accumulator
QEICOUNT
QEISPEED
QEIMAXPOS
Position Integrator
QEIPOS
QEIINTEN
Interrupt Control
QEIRIS
QEIISC
Interrupt
18.2
Signal Description
Table 18-1 on page 648 and Table 18-2 on page 648 list the external signals of the QEI module and
describe the function of each. The QEI signals are alternate functions for some GPIO signals and
default to be GPIO signals at reset. The column in the table below titled "Pin Assignment" lists the
possible GPIO pin placements for these QEI signals. The AFSEL bit in the GPIO Alternate Function
Select (GPIOAFSEL) register (page 309) should be set to choose the QEI function. For more
information on configuring GPIOs, see “General-Purpose Input/Outputs (GPIOs)” on page 285.
Table 18-1. QEI Signals (100LQFP)
Pin Name
Pin Number Pin Type Buffer Typea Description
IDX0
100
I
TTL
QEI module 0 index.
PhA0
25
I
TTL
QEI module 0 phase A.
PhB0
83
I
TTL
QEI module 0 phase B.
a. The TTL designation indicates the pin has TTL-compatible voltage levels.
Table 18-2. QEI Signals (108BGA)
Pin Name
Pin Number Pin Type Buffer Typea Description
IDX0
F1
I
TTL
QEI module 0 index.
PhA0
L1
I
TTL
QEI module 0 phase A.
PhB0
D10
I
TTL
QEI module 0 phase B.
a. The TTL designation indicates the pin has TTL-compatible voltage levels.
648
June 18, 2012
Texas Instruments-Production Data