Datasheet
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
QEI1 base: 0x4002.D000
Offset 0x000
Type R/W, reset 0x0000.0000
16171819202122232425262728293031
reserved
ROROROROROROROROROROROROROROROROType
0000000000000000Reset
0123456789101112131415
EnableSwapSigModeCapModeResModeVelEnVelDivINVAINVBINVISTALLENreserved
R/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WROROROType
0000000000000000Reset
DescriptionResetTypeNameBit/Field
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.
0x00ROreserved31:13
Stall QEI
When set, the QEI stalls when the microcontroller asserts Halt.
0R/WSTALLEN12
Invert Index Pulse
When set , the input Index Pulse is inverted.
0R/WINVI11
Invert PhB
When set, the PhB input is inverted.
0R/WINVB10
Invert PhA
When set, the PhA input is inverted.
0R/WINVA9
Predivide Velocity
A predivider of the input quadrature pulses before being applied to the
QEICOUNT accumulator. This field can be set to the following values:
PredividerValue
÷10x0
÷20x1
÷40x2
÷80x3
÷160x4
÷320x5
÷640x6
÷1280x7
0x0R/WVelDiv8:6
June 18, 2012704
Texas Instruments-Production Data
Quadrature Encoder Interface (QEI)
NRND: Not recommended for new designs.