![Texas TMS320x2823x Reference Manual Download Page 30](http://html.mh-extra.com/html/texas/tms320x2823x/tms320x2823x_reference-manual_1093863030.webp)
eQEP Registers
www.ti.com
Figure 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
Table 4. eQEP Control (QEPCTL) Register Field Descriptions
Bits
Name
Value
Description
15-14
FREE,
Emulation Control Bits
SOFT
QPOSCNT behavior
00
Position counter stops immediately on emulation suspend
01
Position counter continues to count until the rollover
1x
Position counter is unaffected by emulation suspend
QWDTMR behavior
00
Watchdog counter stops immediately
01
Watchdog counter counts until WD period match roll over
1x
Watchdog counter is unaffected by emulation suspend
QUTMR behavior
00
Unit timer stops immediately
01
Unit timer counts until period rollover
1x
Unit timer is unaffected by emulation suspend
QCTMR behavior
00
Capture Timer stops immediately
01
Capture Timer counts until next unit period event
1x
Capture Timer is unaffected by emulation suspend
13-12
PCRM
Position counter reset mode
00
Position counter reset on an index event
01
Position counter reset on the maximum position
10
Position counter reset on the first index event
11
Position counter reset on a unit time event
11-10
SEI
Strobe event initialization of position counter
00
Does nothing (action disabled)
01
Does nothing (action disabled)
10
Initializes the position counter on rising edge of the QEPS signal
11
Clockwise Direction:
Initializes the position counter on the rising edge of QEPS strobe
Counter Clockwise Direction:
Initializes the position counter on the falling edge of QEPS strobe
9-8
IEI
Index event initialization of position counter
00
Do nothing (action disabled)
01
Do nothing (action disabled)
10
Initializes the position counter on the rising edge of the QEPI signal (QPOSCNT =
QPOSINIT)
11
Initializes the position counter on the falling edge of QEPI signal (QPOSCNT = QPOSINIT)
7
SWI
Software initialization of position counter
0
Do nothing (action disabled)
1
Initialize position counter (QPOSCNT=QPOSINIT). This bit is not cleared automatically
30
Enhanced QEP (eQEP) Module
SPRUG05A – August 2008 – Revised December 2008