![Texas TMS320x2823x Скачать руководство пользователя страница 23](http://html.mh-extra.com/html/texas/tms320x2823x/tms320x2823x_reference-manual_1093863023.webp)
POSCMP=2
0
1
2
3
4
3
2
1
0
1
2
3
4
3
2
1
0
eQEP counter
PCEVNT
PCSOUT (active HIGH)
PCSOUT (active LOW)
PCSPW
DIR
QPOSCMP
QPOSCNT
PCSOUT (active HIGH)
PCSPW
PCSPW
PCSPW
PCEVNT
www.ti.com
Position Counter and Control Unit (PCCU)
For example, if QPOSCMP = 2, the position-compare unit generates a position-compare event on 1 to 2
transitions of the eQEP position counter for forward counting direction and on 3 to 2 transitions of the
eQEP position counter for reverse counting direction (see
shows the layout of the eQEP Position-Compare Control Register (QPOSCTL) and
describes the QPOSCTL bit fields.
Figure 13. eQEP Position-compare Event Generation Points
The pulse stretcher logic in the position-compare unit generates a programmable position-compare sync
pulse output on the position-compare match. In the event of a new position-compare match while a
previous position-compare pulse is still active, then the pulse stretcher generates a pulse of specified
duration from the new position-compare event as shown in
.
Figure 14. eQEP Position-compare Sync Output Pulse Stretcher
SPRUG05A – August 2008 – Revised December 2008
Enhanced QEP (eQEP) Module
23