Capture Module - Control and Status Registers
808
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced Capture (eCAP) Module
Table 8-11. ECAP Interrupt Clear Register (ECCLR) Field Descriptions
Bits
Field
Description
15:8
Reserved
Any writes to these bit(s) must always have a value of 0.
7
CTR=CMP
Counter Equal Compare Status Flag
0
Writing a 0 has no effect. Always reads back a 0
1
Writing a 1 clears the CTR=CMP flag condition
6
CTR=PRD
Counter Equal Period Status Flag
0
Writing a 0 has no effect. Always reads back a 0
1
Writing a 1 clears the CTR=PRD flag condition
5
CTROVF
Counter Overflow Status Flag
0
Writing a 0 has no effect. Always reads back a 0
1
Writing a 1 clears the CTROVF flag condition
4
CEVT4
Capture Event 4 Status Flag
0
Writing a 0 has no effect. Always reads back a 0.
1
Writing a 1 clears the CEVT4 flag condition.
3
CEVT3
Capture Event 3 Status Flag
0
Writing a 0 has no effect. Always reads back a 0.
1
Writing a 1 clears the CEVT3 flag condition.
2
CEVT2
Capture Event 2 Status Flag
1
Writing a 0 has no effect. Always reads back a 0.
0
Writing a 1 clears the CEVT2 flag condition.
1
CEVT1
Capture Event 1 Status Flag
0
Writing a 0 has no effect. Always reads back a 0.
1
Writing a 1 clears the CEVT1 flag condition.
0
INT
Global Interrupt Clear Flag
0
Writing a 0 has no effect. Always reads back a 0.
1
Writing a 1 clears the INT flag and enable further interrupts to be generated if any
of the event flags are set to 1.
Figure 8-22. ECAP Interrupt Forcing Register (ECFRC)
15
14
13
12
11
10
9
8
Reserved
R-0
7
6
5
4
3
2
1
0
CTR=CMP
CTR=PRD
CTROVF
CEVT4
CETV3
CETV2
CETV1
reserved
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 8-12. ECAP Interrupt Forcing Register (ECFRC) Field Descriptions
Bits
Field
Value
Description
15:8
Reserved
0
Any writes to these bit(s) must always have a value of 0.
7
CTR=CMP
Force Counter Equal Compare Interrupt
0
No effect. Always reads back a 0.
1
Writing a 1 sets the CTR=CMP flag bit.
6
CTR=PRD
Force Counter Equal Period Interrupt
0
No effect. Always reads back a 0.
1
Writing a 1 sets the CTR=PRD flag bit.