eQEP Registers
878
SPRUHE8E – October 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced QEP (eQEP) Module
Table 9-3. eQEP Decoder Control (QDECCTL) Register Field Descriptions (continued)
Bits
Name
Value
Description
12
SPSEL
Sync output pin selection
0
Index pin is used for sync output
1
Strobe pin is used for sync output
11
XCR
External clock rate
0
2x resolution: Count the rising/falling edge
1
1x resolution: Count the rising edge only
10
SWAP
Swap quadrature clock inputs. This swaps the input to the quadrature decoder, reversing the
counting direction.
0
Quadrature-clock inputs are not swapped
1
Quadrature-clock inputs are swapped
9
IGATE
Index pulse gating option
0
Disable gating of Index pulse
1
Gate the index pin with strobe
8
QAP
QEPA input polarity
0
No effect
1
Negates QEPA input
7
QBP
QEPB input polarity
0
No effect
1
Negates QEPB input
6
QIP
QEPI input polarity
0
No effect
1
Negates QEPI input
5
QSP
QEPS input polarity
0
No effect
1
Negates QEPS input
4-0
Reserved
Always write as 0
Figure 9-22. eQEP Control (QEPCTL) Register
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
FREE, SOFT
PCRM
SEI
IEI
SWI
SEL
IEL
QPEN
QCLM
UTE
WDE
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset