eCAP Registers
1946
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
Enhanced Capture (eCAP) Module
33.5 eCAP Registers
shows the eCAP module control and status registers. The base address for the control
registers is FCF7 9300h for eCAP1, FCF7 9400h for eCAP2, FCF7 9500h for eCAP3, FCF7 9600h for
eCAP4, FCF7 9700h for eCAP5, and FCF7 9800h for eCAP6.
Table 33-1. ECAP Control and Status Registers
Address Offset
Acronym
Description
Section
00h
TSCTR
Time-Stamp Counter Register
04h
CTRPHS
Counter Phase Offset Value Register
08h
CAP1
Capture 1 Register
0Ch
CAP2
Capture 2 Register
10h
CAP3
Capture 3 Register
14h
CAP4
Capture 4 Register
28h
ECCTL2
Capture Control Register 2
2Ah
ECCTL1
Capture Control Register 1
2Ch
ECFLG
Capture Interrupt Flag Register
2Eh
ECEINT
Capture Interrupt Enable Register
30h
ECFRC
Capture Interrupt Forcing Register
32h
ECCLR
Capture Interrupt Clear Register
33.5.1 Time-Stamp Counter Register (TSCTR)
Figure 33-14. Time-Stamp Counter Register (TSCTR) [offset = 00h]
31
0
TSCTR
R/W-0
LEGEND: R/W = Read/Write; -
n
= value after reset
Table 33-2. Time-Stamp Counter Register (TSCTR) Field Descriptions
Bits
Field
Description
31-0
TSCTR
Active 32-bit counter register that is used as the capture time-base.
33.5.2 Counter Phase Control Register (CTRPHS)
Figure 33-15. Counter Phase Control Register (CTRPHS) [offset = 04h]
31
0
CTRPHS
R/W-0
LEGEND: R/W = Read/Write; -
n
= value after reset
Table 33-3. Counter Phase Control Register (CTRPHS) Field Descriptions
Bits
Field
Description
31-0
CTRPHS
Counter phase value register that can be programmed for phase lag/lead. This register shadows TSCTR and is
loaded into TSCTR upon either a SYNCI event or S/W force via a control bit. Used to achieve phase control
synchronization with respect to other eCAP and EPWM time-bases.