PRDEQ
Clear
Set
Latch
CEVT1
ECFRC
ECCLR
ECFLG
ECEINT
ECCLR
ECEINT
Set
Clear
Latch
CEVT2
ECFRC
ECFLG
ECCLR
ECCLR
Clear
ECEINT
Latch
Set
ECFLG
ECEINT
Set
Clear
Latch
ECFRC
CEVT4
CEVT3
ECFRC
ECFLG
ECFRC
ECCLR
ECEINT
Set
ECEINT
ECFLG
Latch
Clear
Latch
Set
CMPEQ
ECFRC
ECCLR
ECCLR
Clear
ECFLG
ECEINT
Clear
Latch
Set
ECFRC
CTROVF
ECFLG
0
1
0
Generate
interrupt
pulse when
input=1
Latch
Clear
Set
ECCLR
ECAPxINT
ECFLG
Basic Operation
1934
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
Enhanced Capture (eCAP) Module
Note:
The CEVT1, CEVT2, CEVT3, CEVT4 flags are only active in capture mode (ECCTL2[CAP_APWM
== 0]). The CTR_PRD and CTR_CMP flags are only valid in APWM mode (ECCTL2[CAP_APWM == 1]).
CNTOVF flag is valid in both modes.
Figure 33-7. Interrupts in eCAP Module
33.2.2.7 Shadow Load and Lockout Control
In capture mode, this logic inhibits (locks out) any shadow loading of CAP1 or CAP2 from APRD and
ACMP registers, respectively.
In APWM mode, shadow loading is active and two choices are permitted:
•
Immediate - APRD or ACMP are transferred to CAP1 or CAP2 immediately upon writing a new value.
•
On period equal, CTR[31:0] = PRD[31:0]