English
Language : 

LM3S1651 Datasheet, PDF (881/1033 Pages) Texas Instruments – ARM and Thumb are registered trademarks and Cortex is a trademark
Stellaris® LM3S1651 Microcontroller
Figure 19-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
19.2
Signal Description
The following table lists the external signals of the QEI module and describes 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 Mux/Pin Assignment" lists the possible GPIO pin
placements for these QEI signals. The AFSEL bit in the GPIO Alternate Function Select
(GPIOAFSEL) register (page 429) should be set to choose the QEI function. The number in
parentheses is the encoding that must be programmed into the PMCn field in the GPIO Port Control
(GPIOPCTL) register (page 447) to assign the QEI signal to the specified GPIO port pin. For more
information on configuring GPIOs, see “General-Purpose Input/Outputs (GPIOs)” on page 405.
Table 19-1. QEI Signals (100LQFP)
Pin Name
IDX0
IDX1
PhA0
PhA1
Pin Number Pin Mux / Pin
Assignment
10
PD0 (3)
40
PG5 (4)
72
PB2 (2)
90
PB6 (5)
92
PB4 (6)
100
PD7 (1)
17
PG2 (8)
61
PF1 (2)
84
PH2 (1)
11
PD1 (3)
25
PC4 (2)
43
PF6 (4)
95
PE2 (4)
37
PG6 (1)
96
PE3 (3)
Pin Type
I
I
I
I
Buffer Typea Description
TTL
QEI module 0 index.
TTL
QEI module 1 index.
TTL
QEI module 0 phase A.
TTL
QEI module 1 phase A.
January 21, 2012
881
Texas Instruments-Production Data