eQEP Registers
852
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced QEP (eQEP) Module
Table 9-22. eQEP Status (QEPSTS) Register Field Descriptions (continued)
Bit
Field
Value
Description
5
QDF
Quadrature direction flag
0
Counter-clockwise rotation (or reverse movement)
1
Clockwise rotation (or forward movement)
4
QDLF
eQEP direction latch flag
Status of direction is latched on every index event marker.
0
Counter-clockwise rotation (or reverse movement) on index event marker
1
Clockwise rotation (or forward movement) on index event marker
3
COEF
Capture overflow error flag
0
Sticky bit, cleared by writing 1
1
Overflow occurred in eQEP Capture timer (QEPCTMR)
2
CDEF
Capture direction error flag
0
Sticky bit, cleared by writing 1
1
Direction change occurred between the capture position event.
1
FIMF
First index marker flag
0
Sticky bit, cleared by writing 1
1
Set by first occurrence of index pulse
0
PCEF
Position counter error flag. This bit is not sticky and it is updated for every index event.
0
No error occurred during the last index transition.
1
Position counter error
Figure 9-41. eQEP Capture Timer (QCTMR) Register
15
0
QCTMR
R/W
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 9-23. eQEP Capture Timer (QCTMR) Register Field Descriptions
Bits
Name
Description
15-0
QCTMR
This register provides time base for edge capture unit.
Figure 9-42. eQEP Capture Period (QCPRD) Register
15
0
QCPRD
R/W
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 9-24. eQEP Capture Period Register (QCPRD) Register Field Descriptions
Bits
Name
Description
15-0
QCPRD
This register holds the period count value between the last successive eQEP position events
Figure 9-43. eQEP Capture Timer Latch (QCTMRLAT) Register
15
0
QCTMRLAT
R
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset