Capture Module - Control and Status Registers
807
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced Capture (eCAP) Module
Figure 8-20. ECAP Interrupt Flag Register (ECFLG)
15
8
Reserved
R-0
7
6
5
4
3
2
1
0
CTR=CMP
CTR=PRD
CTROVF
CEVT4
CETV3
CEVT2
CETV1
INT
R-0
R-0
R-0
R-0
R-0
R-0
R-0
R-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 8-10. ECAP Interrupt Flag Register (ECFLG) Field Descriptions
Bits
Field
Value
Description
15:8
Reserved
7
CTR=CMP
Compare Equal Compare Status Flag. This flag is active only in APWM mode.
0
Indicates no event occurred
1
Indicates the counter (TSCTR) reached the compare register value (ACMP)
6
CTR=PRD
Counter Equal Period Status Flag. This flag is only active in APWM mode.
0
Indicates no event occurred
1
Indicates the counter (TSCTR) reached the period register value (APRD) and was reset.
5
CTROVF
Counter Overflow Status Flag. This flag is active in CAP and APWM mode.
0
Indicates no event occurred.
1
Indicates the counter (TSCTR) has made the transition from FFFFFFFF " 00000000
4
CEVT4
Capture Event 4 Status Flag This flag is only active in CAP mode.
0
Indicates no event occurred
1
Indicates the fourth event occurred at ECAPx pin
3
CEVT3
Capture Event 3 Status Flag. This flag is active only in CAP mode.
0
Indicates no event occurred.
1
Indicates the third event occurred at ECAPx pin.
2
CEVT2
Capture Event 2 Status Flag. This flag is only active in CAP mode.
0
Indicates no event occurred.
1
Indicates the second event occurred at ECAPx pin.
1
CEVT1
Capture Event 1 Status Flag. This flag is only active in CAP mode.
0
Indicates no event occurred.
1
Indicates the first event occurred at ECAPx pin.
0
INT
Global Interrupt Status Flag
0
Indicates no interrupt generated.
1
Indicates that an interrupt was generated.
Figure 8-21. ECAP Interrupt Clear Register (ECCLR)
15
8
Reserved
R-0
7
6
5
4
3
2
1
0
CTR=CMP
CTR=PRD
CTROVF
CEVT4
CETV3
CETV2
CETV1
INT
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset