English
Language : 

LM3S1150 Datasheet, PDF (410/471 Pages) List of Unclassifed Manufacturers – Microcontroller
Quadrature Encoder Interface (QEI)
Register 1: QEI Control (QEICTL), offset 0x000
This register contains the configuration of the QEI module. Separate enables are provided for the
quadrature encoder and the velocity capture blocks; the quadrature encoder must be enabled in
order to capture the velocity, but the velocity does not need to be captured in applications that do
not need it. The phase signal interpretation, phase swap, Position Update mode, Position Reset
mode, and velocity predivider are all set via this register.
QEI Control (QEICTL)
QEI0 base: 0x4002.C000
Offset 0x000
Type R/W, reset 0x0000.0000
31
30
29
28
27
Type RO
RO
RO
RO
RO
Reset
0
0
0
0
0
15
14
13
12
11
reserved
STALLEN INVI
Type RO
RO
RO
R/W
R/W
Reset
0
0
0
0
0
26
RO
0
10
INVB
R/W
0
25
RO
0
9
INVA
R/W
0
24
23
22
reserved
RO
RO
RO
0
0
0
8
7
6
VelDiv
R/W
R/W
R/W
0
0
0
21
20
19
18
17
16
RO
RO
RO
RO
RO
RO
0
0
0
0
0
0
5
4
3
2
1
VelEn ResMode CapMode SigMode Swap
R/W
R/W
R/W
R/W
R/W
0
0
0
0
0
0
Enable
R/W
0
Bit/Field
31:13
12
11
10
9
8:6
Name
reserved
STALLEN
INVI
INVB
INVA
VelDiv
Type
RO
R/W
R/W
R/W
R/W
R/W
Reset
0
0
0
0
0
0
Description
Software should not rely on the value of a reserved bit. To provide
compatibility with future products, the value of a reserved bit should be
preserved across a read-modify-write operation.
When set, the QEI stalls when the microcontroller asserts Halt.
When set , the input Index Pulse is inverted.
When set, the PhB input is inverted.
When set, the PhA input is inverted.
A predivider of the input quadrature pulses before being applied to the
QEICOUNT accumulator. This field can be set to the following values:
Binary Value Predivider
000
÷1
001
÷2
010
÷4
011
÷8
100
÷16
101
÷32
110
÷64
111
÷128
5
VelEn
R/W
0
When set, enables capture of the velocity of the quadrature encoder.
4
ResMode
R/W
0
The Reset mode for the position counter. When 0, the position counter
is reset when it reaches the maximum; when 1, the position counter is
reset when the index pulse is captured.
410
June 14, 2007
Luminary Micro Confidential-Advance Product Information