![Texas TMS320x2823x Reference Manual Download Page 31](http://html.mh-extra.com/html/texas/tms320x2823x/tms320x2823x_reference-manual_1093863031.webp)
www.ti.com
eQEP Registers
Table 4. eQEP Control (QEPCTL) Register Field Descriptions (continued)
Bits
Name
Value
Description
6
SEL
Strobe event latch of position counter
0
The position counter is latched on the rising edge of QEPS strobe (QPOSSLAT =
POSCCNT). Latching on the falling edge can be done by inverting the strobe input using the
QSP bit in the QDECCTL register.
1
Clockwise Direction:
Position counter is latched on rising edge of QEPS strobe
Counter Clockwise Direction:
Position counter is latched on falling edge of QEPS strobe
5-4
IEL
Index event latch of position counter (software index marker)
00
Reserved
01
Latches position counter on rising edge of the index signal
10
Latches position counter on falling edge of the index signal
11
Software index marker. Latches the position counter and quadrature direction flag on index
event marker. The position counter is latched to the QPOSILAT register and the direction flag
is latched in the QEPSTS[QDLF] bit. This mode is useful for software index marking.
3
QPEN
Quadrature position counter enable/software reset
0
Reset the eQEP peripheral internal operating flags/read-only registers. Control/configuration
registers are not disturbed by a software reset.
1
eQEP position counter is enabled
2
QCLM
eQEP capture latch mode
0
Latch on position counter read by CPU. Capture timer and capture period values are latched
into QCTMRLAT and QCPRDLAT registers when CPU reads the QPOSCNT register.
1
Latch on unit time out. Position counter, capture timer and capture period values are latched
into QPOSLAT, QCTMRLAT and QCPRDLAT registers on unit time out.
1
UTE
eQEP unit timer enable
0
Disable eQEP unit timer
1
Enable unit timer
0
WDE
eQEP watchdog enable
0
Disable the eQEP watchdog timer
1
Enable the eQEP watchdog timer
Figure 23. eQEP Position-compare Control (QPOSCTL) Register
15
14
13
12
11
8
PCSHDW
PCLOAD
PCPOL
PCE
PCSPW
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
7
0
PCSPW
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 5. eQEP Position-compare Control (QPOSCTL) Register Field Descriptions
Bit
Name
Description
15
PCSHDW
Position-compare shadow enable
0
Shadow disabled, load Immediate
1
Shadow enabled
14
PCLOAD
Position-compare shadow load mode
0
Load on QPOSCNT = 0
SPRUG05A – August 2008 – Revised December 2008
Enhanced QEP (eQEP) Module
31