eQEP Registers
844
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced QEP (eQEP) Module
Figure 9-24. eQEP Capture Control (QCAPCTL) Register
15
14
7
6
4
3
0
CEN
Reserved
CCPS
UPPS
R/W-0
R-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 9-6. eQEP Capture Control (QCAPCTL) Register Field Descriptions
Bits
Name
Description
15
CEN
Enable eQEP capture
0
eQEP capture unit is disabled
1
eQEP capture unit is enabled
14-7
Reserved
Always write as 0
6-4
CCPS
eQEP capture timer clock prescaler
000
001
010
011
100
101
110
111
CAPCLK = SYSCLKOUT/1
CAPCLK = SYSCLKOUT/2
CAPCLK = SYSCLKOUT/4
CAPCLK = SYSCLKOUT/8
CAPCLK = SYSCLKOUT/16
CAPCLK = SYSCLKOUT/32
CAPCLK = SYSCLKOUT/64
CAPCLK = SYSCLKOUT/128
3-0
UPPS
Unit position event prescaler
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
11xx
UPEVNT = QCLK/1
UPEVNT = QCLK/2
UPEVNT = QCLK/4
UPEVNT = QCLK/8
UPEVNT = QCLK/16
UPEVNT = QCLK/32
UPEVNT = QCLK/64
UPEVNT = QCLK/128
UPEVNT = QCLK/256
UPEVNT = QCLK/512
UPEVNT = QCLK/1024
UPEVNT = QCLK/2048
Reserved
Figure 9-25. eQEP Position Counter (QPOSCNT) Register
31
0
QPOSCNT
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 9-7. eQEP Position Counter (QPOSCNT) Register Field Descriptions
Bits
Name
Description
31-0
QPOSCNT
This 32-bit position counter register counts up/down on every eQEP pulse based on direction
input. This counter acts as a position integrator whose count value is proportional to position
from a give reference point.
Figure 9-26. eQEP Position Counter Initialization (QPOSINIT) Register
31
0
QPOSINIT
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset