![Texas TMS320x2823x Скачать руководство пользователя страница 41](http://html.mh-extra.com/html/texas/tms320x2823x/tms320x2823x_reference-manual_1093863041.webp)
www.ti.com
eQEP Registers
Table 22. eQEP Status (QEPSTS) Register Field Descriptions (continued)
Bit
Field
Value
Description
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 41. eQEP Capture Timer (QCTMR) Register
15
0
QCTMR
R/W
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 23. eQEP Capture Timer (QCTMR) Register Field Descriptions
Bits
Name
Description
15-0
QCTMR
This register provides time base for edge capture unit.
Figure 42. eQEP Capture Period (QCPRD) Register
15
0
QCPRD
R/W
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 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 43. eQEP Capture Timer Latch (QCTMRLAT) Register
15
0
QCTMRLAT
R
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
SPRUG05A – August 2008 – Revised December 2008
Enhanced QEP (eQEP) Module
41