![Texas TMS320x2823x Reference Manual Download Page 14](http://html.mh-extra.com/html/texas/tms320x2823x/tms320x2823x_reference-manual_1093863014.webp)
3
Quadrature Decoder Unit (QDU)
0
1
1
0
QA
QB
1
1
0
0
QDECCTL:QBP
Quadrature
decoder
00
01
10
11
iCLK
xCLK
xCLK
xCLK
01
11
10
00
iDIR
xDIR
1
0
QDECCTL:QSRC
2
QFLG:PHE
PHE
QDECCTL:QAP
x1
x2
x1, x2
QDECCTL:XCR
0
1
1
0
QDECCTL:QIP
QDECCTL:IGATE
QCLK
QDIR
QI
1
0
QDECCTL:QSP
0
1
QDECCTL:SPSEL
QDECCTL:SPSEL
1
0
QDECCTL:SOEN
QS
PCSOUT
EQEPxIOE
EQEPxSOE
EQEPxIOUT
EQEPxSOUT
EQEPxSIN
EQEPxIIN
EQEPxBIN
EQEPxAIN
QDECCTL:SWAP
QEPSTS:QDF
EQEPA
EQEPB
3.1
Position Counter Input Modes
Quadrature Decoder Unit (QDU)
www.ti.com
shows a functional block diagram of the QDU.
Figure 5. Functional Block Diagram of Decoder Unit
Clock and direction input to position counter is selected using QDECCTL[QSRC] bits, based on interface
input requirement as follows:
•
Quadrature-count mode
•
Direction-count mode
•
UP-count mode
•
DOWN-count mode
14
Enhanced QEP (eQEP) Module
SPRUG05A – August 2008 – Revised December 2008