English
Language : 

LM3S2965 Datasheet, PDF (493/542 Pages) List of Unclassifed Manufacturers – Microcontroller
LM3S2965 Microcontroller
■ Write the QEIMAXPOS register with the value of 0x0000.0F9F.
5. Enable the quadrature encoder by setting bit 0 of the QEICTL register.
6. Delay for some time.
7. Read the encoder position by reading the QEIPOS register value.
19.4
Register Map
“Register Map” on page 493 lists the QEI registers. The offset listed is a hexadecimal increment to
the register’s address, relative to the module’s base address:
■ QEI0: 0x4002.C000
■ QEI1: 0x4002.D000
Table 19-1. QEI Register Map
Offset Name
Type
0x000 QEICTL
0x004 QEISTAT
0x008 QEIPOS
0x00C QEIMAXPOS
0x010 QEILOAD
0x014 QEITIME
0x018 QEICOUNT
0x01C QEISPEED
0x020 QEIINTEN
0x024 QEIRIS
0x028 QEIISC
R/W
RO
R/W
R/W
R/W
RO
RO
RO
R/W
RO
R/W1C
Reset
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
0x0000.0000
Description
QEI Control
QEI Status
QEI Position
QEI Maximum Position
QEI Timer Load
QEI Timer
QEI Velocity Counter
QEI Velocity
QEI Interrupt Enable
QEI Raw Interrupt Status
QEI Interrupt Status and Clear
See
page
494
496
497
498
499
500
501
502
503
504
505
19.5
Register Descriptions
The remainder of this section lists and describes the QEI registers, in numerical order by address
offset.
June 04, 2007
493
Preliminary