LM3S2965 Luminary Micro, Inc, LM3S2965 Datasheet - Page 510
![no-image](/images/no-image-200.jpg)
LM3S2965
Manufacturer Part Number
LM3S2965
Description
Lm3s2965 Arm Microcontroller
Manufacturer
Luminary Micro, Inc
Datasheet
1.LM3S2965.pdf
(599 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
LM3S2965-EQC50-A2
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
LM3S2965-EQC50-A2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
LM3S2965-IBZ50-A2
Manufacturer:
NXP
Quantity:
886
Company:
Part Number:
LM3S2965-IBZ50-A2
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
LM3S2965-IBZ50-A2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Company:
Part Number:
LM3S2965-IQC50-A2
Manufacturer:
MICROCHIP
Quantity:
2 300
Company:
Part Number:
LM3S2965-IQC50-A2
Manufacturer:
Texas Instruments
Quantity:
10 000
- Current page: 510 of 599
- Download datasheet (7Mb)
Quadrature Encoder Interface (QEI)
510
The positional counter is automatically reset on one of two conditions: sensing the index pulse or
reaching the maximum position value. Which mode is determined by the ResMode bit of the QEI
Control (QEICTL) register.
When ResMode is 0, the positional counter is reset when the index pulse is sensed. This limits the
positional counter to the values [0:N-1], where N is the number of phase edges in a full revolution
of the encoder wheel. The QEIMAXPOS register must be programmed with N-1 so that the reverse
direction from position 0 can move the position counter to N-1. In this mode, the position register
contains the absolute position of the encoder relative to the index (or home) position once an index
pulse has been seen.
When ResMode is 1, the positional counter is constrained to the range [0:M], where M is the
programmable maximum value. The index pulse is ignored by the positional counter in this mode.
The velocity capture has a configurable timer and a count register. It counts the number of phase
edges (using the same configuration as for the position integrator) in a given time period. The edge
count from the previous time period is available to the controller via the QEISPEED register, while
the edge count for the current time period is being accumulated in the QEICOUNT register. As soon
as the current time period is complete, the total number of edges counted in that time period is made
available in the QEISPEED register (losing the previous value), the QEICOUNT is reset to 0, and
counting commences on a new time period. The number of edges counted in a given time period
is directly proportional to the velocity of the encoder.
Figure 19-2 on page 510 shows how the Stellaris
signals into clock pulses, the direction signal, and how the velocity predivider operates (in Divide
by 4 mode).
Figure 19-2. Quadrature Encoder and Velocity Predivider Operation
clkdiv
The period of the timer is configurable by specifying the load value for the timer in the QEILOAD
register. When the timer reaches zero, an interrupt can be triggered, and the hardware reloads the
timer with the QEILOAD value and continues to count down. At lower encoder speeds, a longer
timer period is needed to be able to capture enough edges to have a meaningful result. At higher
encoder speeds, both a shorter timer period and/or the velocity predivider can be used.
The following equation converts the velocity counter value into an rpm value:
rpm = (clock * (2 ^ VelDiv) * Speed * 60) ÷ (Load * ppr * edges)
where:
clock is the controller clock rate
ppr is the number of pulses per revolution of the physical encoder
edges is 2 or 4, based on the capture mode set in the QEICTL register (2 for CapMode set to 0 and
4 for CapMode set to 1)
For example, consider a motor running at 600 rpm. A 2048 pulse per revolution quadrature encoder
is attached to the motor, producing 8192 phase edges per revolution. With a velocity predivider of
PhA
PhB
pos
clk
dir
rel
+1
-1 -1 -1 -1 -1 -1 -1 -1 -1
+1
+1
+1 +1 +1 +1 +1 +1 +1 +1
+1
Preliminary
+1
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
®
quadrature encoder converts the phase input
+1
+1
+1
July 25, 2008
Related parts for LM3S2965
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![LM3-100K-TR](/images/no-image3.png)
Part Number:
Description:
Inductor: Molded: 10u: 10%: 30M: 7.9: 440m: Axial: T/R
Manufacturer:
Inductor Supply, Inc.
![LM3-R15](/images/no-image3.png)
Part Number:
Description:
Molded Inductor
Manufacturer:
Inductor Supply, Inc.
Datasheet:
![LM3-PWN1-01-N1](/images/no-image3.png)
Part Number:
Description:
Cree Smd Led
Manufacturer:
Cree, Inc.
Datasheet:
![LM3-PBL1-01-N1](/images/no-image3.png)
Part Number:
Description:
Cree Smd Led
Manufacturer:
Cree, Inc.
Datasheet:
![LM3-EWN1-01-N1-MT](/images/no-image3.png)
Part Number:
Description:
Specification For Cotco Led Lamp
Manufacturer:
Marktech Optoelectronics
Datasheet:
![LM3S1110](/images/no-image3.png)
Part Number:
Description:
Lm3s1110 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
![LM3S1133](/images/no-image3.png)
Part Number:
Description:
Lm3s1133 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
![LM3S1138](/images/no-image3.png)
Part Number:
Description:
Lm3s1138 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
![LM3S1150](/images/no-image3.png)
Part Number:
Description:
Lm3s1150 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
![LM3S1162](/images/no-image3.png)
Part Number:
Description:
Lm3s1162 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
![LM3S1165](/images/no-image3.png)
Part Number:
Description:
Lm3s1165 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
![LM3S1332](/images/no-image3.png)
Part Number:
Description:
Lm3s1332 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
![LM3S1435](/images/no-image3.png)
Part Number:
Description:
Lm3s1435 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet: