QWDTMR
QWDPRD
16
QWDOG
UTIME
QUPRD
QUTMR
32
UTOUT
WDTOUT
Quadrature
capture unit
(QCAP)
QCPRDLAT
QCTMRLAT
16
QFLG
QEPSTS
QEPCTL
Registers
used by
multiple units
QCLK
QDIR
QI
QS
PHE
PCSOUT
Quadrature
decoder
(QDU)
QDECCTL
16
Position counter/
control unit
(PCCU)
QPOSLAT
QPOSSLAT
32
QPOSILAT
EQEPxAIN
EQEPxBIN
EQEPxIIN
EQEPxIOUT
EQEPxIOE
EQEPxSIN
EQEPxSOUT
EQEPxSOE
GPIO
MUX
EQEPxA/XCLK
EQEPxB/XDIR
EQEPxS
EQEPxI
QPOSCMP
QEINT
QFRC
32
QCLR
QPOSCTL
16
32
QPOSCNT
QPOSMAX
QPOSINIT
PIE
EQEPxINT
Enhanced QEP (eQEP) peripheral
System
control registers
QCTMR
QCPRD
16
16
QCAPCTL
EQEPxENCLK
SYSCLKOUT
Data bus
To CPU
Description
824
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced QEP (eQEP) Module
9.2.2 Functional Description
The eQEP peripheral contains the following major functional units (as shown in
):
•
Programmable input qualification for each pin (part of the GPIO MUX)
•
Quadrature decoder unit (QDU)
•
Position counter and control unit for position measurement (PCCU)
•
Quadrature edge-capture unit for low-speed measurement (QCAP)
•
Unit time base for speed/frequency measurement (UTIME)
•
Watchdog timer for detecting stalls (QWDOG)
Figure 9-4. Functional Block Diagram of the eQEP Peripheral
9.2.3 eQEP Memory Map
lists the registers with their memory locations, sizes, and reset values.
Table 9-1. EQEP Memory Map
Name
Offset
Size(x16)/
#shadow
Reset
Register Description
QPOSCNT
0x00
2/0
0x00000000
eQEP Position Counter
QPOSINIT
0x02
2/0
0x00000000
eQEP Initialization Position Count
QPOSMAX
0x04
2/0
0x00000000
eQEP Maximum Position Count
QPOSCMP
0x06
2/1
0x00000000
eQEP Position-compare
QPOSILAT
0x08
2/0
0x00000000
eQEP Index Position Latch