eQEP Registers
www.ti.com
426
SPRUI07–March 2020
Submit Documentation Feedback
Copyright © 2020, Texas Instruments Incorporated
Enhanced Quadrature Encoder Pulse (eQEP)
6.10.2.13 QEPCTL Register (Offset = 15h) [reset = 0h]
QEPCTL is shown in Figure 6-33 and described in Table 6-18.
Return to the Summary Table.
QEP Control
Figure 6-33. QEPCTL Register
15 14 13 12 11 10 9 8
FREE_SOFT PCRM SEI IEI
R/W-0h R/W-0h R/W-0h R/W-0h
7 6 5 4 3 2 1 0
SWI SEL IEL QPEN QCLM UTE WDE
R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h
Table 6-18. QEPCTL Register Field Descriptions
Bit Field Type Reset Description
15-14 FREE_SOFT R/W 0h
Emulation mode
Reset type: SYSRSn
0h (R/W) = QPOSCNT behavior
Position counter stops immediately on emulation suspend
0h (R/W) = QWDTMR behavior
Watchdog counter stops immediately
0h (R/W) = QUTMR behavior
Unit timer stops immediately
0h (R/W) = QCTMR behavior
Capture Timer stops immediately
1h (R/W) = QPOSCNT behavior
Position counter continues to count until the rollover
1h (R/W) = QWDTMR behavior
Watchdog counter counts until WD period match roll over
1h (R/W) = QUTMR behavior
Unit timer counts until period rollover
1h (R/W) = QCTMR behavior
Capture Timer counts until next unit period event
2h (R/W) = QPOSCNT behavior
Position counter is unaffected by emulation suspend
2h (R/W) = QWDTMR behavior
Watchdog counter is unaffected by emulation suspend
2h (R/W) = QUTMR behavior
Unit timer is unaffected by emulation suspend
2h (R/W) = QCTMR behavior
Capture Timer is unaffected by emulation suspend
3h (R/W) = Same as FREE_SOFT_2
13-12 PCRM R/W 0h
Postion counter reset
Reset type: SYSRSn
0h (R/W) = Position counter reset on an index event
1h (R/W) = Position counter reset on the maximum position
2h (R/W) = Position counter reset on the first index event
3h (R/W) = Position counter reset on a unit time event
11-10 SEI R/W 0h
Strobe event initialization of position counter
Reset type: SYSRSn
0h (R/W) = Does nothing (action disabled)
1h (R/W) = Does nothing (action disabled)
2h (R/W) = Initializes the position counter on rising edge of the
QEPS signal
3h (R/W) = 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