Datasheet

eQEP Registers
www.ti.com
33.3.12 eQEP Control Register (QEPCTL)
Figure 33-32. eQEP Control Register (QEPCTL) [offset = 2Ah]
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 R/W-0
7 6 5 4 3 2 1 0
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
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 33-15. eQEP Control Register (QEPCTL) Field Descriptions
Bits Name Value Description
15-14 FREE, SOFT 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
1h 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 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 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 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 (QPOSCNT=QPOSINIT). This bit is not cleared automatically
1700
Enhanced QEP (eQEP) Module SPNU562May 2014
Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated