eQEP Registers
843
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced QEP (eQEP) Module
Table 9-4. eQEP Control (QEPCTL) Register Field Descriptions (continued)
Bits
Name
Value
Description
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 9-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 9-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
1
Load when QPOSCNT = QPOSCMP
13
PCPOL
Polarity of sync output
0
Active HIGH pulse output
1
Active LOW pulse output
12
PCE
Position-compare enable/disable
0
Disable position compare unit
1
Enable position compare unit
11-0
PCSPW
Select-position-compare sync output pulse width
0x000
1 * 4 * SYSCLKOUT cycles
0x001
2 * 4 * SYSCLKOUT cycles
0xFFF
4096 * 4 * SYSCLKOUT cycles