LM3S1150-IQC50 Luminary Micro, Inc., LM3S1150-IQC50 Datasheet - Page 406

no-image

LM3S1150-IQC50

Manufacturer Part Number
LM3S1150-IQC50
Description
Microcontroller
Manufacturer
Luminary Micro, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LM3S1150-IQC50-A2
Manufacturer:
Texas Instruments
Quantity:
135
Part Number:
LM3S1150-IQC50-A2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Quadrature Encoder Interface (QEI)
17.2
406
Figure 17-1. QEI Block Diagram
PhA
IDX
Functional Description
The QEI module interprets the two-bit gray code produced by a quadrature encoder wheel to integrate
position over time and determine direction of rotation. In addition, it can capture a running estimate
of the velocity of the encoder wheel.
The position integrator and velocity capture can be independently enabled, though the position
integrator must be enabled before the velocity capture can be enabled. The two phase signals, PhA
and PhB , can be swapped before being interpreted by the QEI module to change the meaning of
forward and backward, and to correct for miswiring of the system. Alternatively, the phase signals
can be interpreted as a clock and direction signal as output by some encoders.
The QEI module supports two modes of signal operation: quadrature phase mode and clock/direction
mode. In quadrature phase mode, the encoder produces two clocks that are 90 degrees out of
phase; the edge relationship is used to determine the direction of rotation. In clock/direction mode,
the encoder produces a clock signal to indicate steps and a direction signal to indicate the direction
of rotation. This mode is determined by the SigMode bit of the QEI Control (QEICTL) register (see
page 410).
When the QEI module is set to use the quadrature phase mode (SigMode bit equals zero), the
capture mode for the position integrator can be set to update the position counter on every edge of
the PhA signal or to update on every edge of both PhA and PhB. Updating the position counter on
every PhA and PhB provides more positional resolution at the cost of less range in the positional
counter.
When edges on PhA lead edges on PhB , the position counter is incremented. When edges on PhB
lead edges on PhA , the position counter is decremented. When a rising and falling edge pair is
seen on one of the phases without any edges on the other, the direction of rotation has changed.
PhB
Quadrature
Encoder
Luminary Micro Confidential-Advance Product Information
Control & Status
QEISTAT
dir
QEICTL
clk
Predivider
Velocity
Velocity Accumulator
Position Integrator
Interrupt Control
Velocity Timer
QEIMAXPOS
QEICOUNT
QEISPEED
QEIINTEN
QEILOAD
QEITIME
QEIPOS
QEIRIS
QEIISC
Interrupt
June 14, 2007

Related parts for LM3S1150-IQC50