QA
QB
QCLK
QDIR
QPOSCNT
OV/UF
QA
QB
QCLK
QDIR
QPOSCNT
OV/UF
1 2 3 4 0 1 2 1 0 4 3 2 1 0 4 3 2 1 2 3 4 0
1 0 4 3 2 1 0 1 2 3 4 0 1 2 3 4 0 1 0 4 3
Position Counter and Control Unit (PCCU)
www.ti.com
400
SPRUI07–March 2020
Submit Documentation Feedback
Copyright © 2020, Texas Instruments Incorporated
Enhanced Quadrature Encoder Pulse (eQEP)
The first index marker fields (QEPSTS[FIDF] and QEPSTS[FIMF]) are not applicable in this mode.
Figure 6-9. Position Counter Underflow/Overflow (QPOSMAX = 4)
6.5.1.3 Position Counter Reset on the First Index Event (QEPCTL[PCRM] = 10)
If the index event occurs during forward movement, then the position counter is reset to 0 on the next
eQEP clock. If the index event occurs during the reverse movement, then the position counter is reset to
the value in the QPOSMAX register on the next eQEP clock. Note that this is done only on the first
occurrence and subsequently the position-counter value is not reset on an index event; rather, it is reset
based on maximum position as described in Section 6.5.1.2.
The first index marker fields (QEPSTS[FIDF] and QEPSTS[FIMF]) are not applicable in this mode.
6.5.1.4 Position Counter Reset on Unit Time out Event (QEPCTL[PCRM] = 11)
In this mode, QPOSCNT is set to 0 or QPOMAX, depending on the direction mode selected by
QDECCTL[QSRC] bits on a unit time event. This is useful for frequency measurement.
6.5.2 Position Counter Latch
The eQEP index and strobe input can be configured to latch the position counter (QPOSCNT) into
QPOSILAT and QPOSSLAT, respectively, on occurrence of a definite event on these pins.