Enhanced Quadrature Encoder Pulse (eQEP) Module
www.ti.com
15.4.3.13 eQEP Control Register (QEPCTL)
Figure 15-161. eQEP Control Register (QEPCTL)
15 14 13 12 11 10 9 8
FREE, SOFT PCRM SEI IEI
R/W-0 R/W-0 R/W-0 R/W-0
7 6 5 4 3 2 1 0
SWI SEL IEL PHEN QCLM UTE WDE
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; -n = value after reset
Table 15-136. eQEP Control Register (QEPCTL) Field Descriptions
Bits Name Value Description
15-14 FREE, SOFT 0-3h Emulation Control Bits
QPOSCNT behavior:
0 Position counter stops immediately on emulation suspend.
1h Position counter continues to count until the rollover.
2h-3h Position counter is unaffected by emulation suspend.
QWDTMR behavior:
0 Watchdog counter stops immediately.
1 Watchdog counter counts until WD period match roll over.
2h-3h Watchdog counter is unaffected by emulation suspend.
QUTMR behavior:
0 Unit timer stops immediately.
1h Unit timer counts until period rollover.
2h-3h Unit timer is unaffected by emulation suspend.
QCTMR behavior:
0 Capture Timer stops immediately.
1h Capture Timer counts until next unit period event.
2h-3h Capture Timer is unaffected by emulation suspend.
13-12 PCRM 0-3h Position counter reset mode
0 Position counter reset on an index event
1h Position counter reset on the maximum position
2h Position counter reset on the first index event
3h Position counter reset on a unit time event
11-10 SEI 0-3h Strobe event initialization of position counter
0 Does nothing (action disabled)
1h Does nothing (action disabled)
2h Initializes the position counter on rising edge of the QEPS signal
3h 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 0-3h Index event initialization of position counter
0 Do nothing (action disabled)
1h Do nothing (action disabled)
2h Initializes the position counter on the rising edge of the QEPI signal (QPOSCNT = QPOSINIT)
3h 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, this bit is cleared automatically
1678
Pulse-Width Modulation Subsystem (PWMSS) SPRUH73H–October 2011–Revised April 2013
Submit Documentation Feedback
Copyright © 2011–2013, Texas Instruments Incorporated