CEVT1
CEVT2
CEVT5
FFFFFFFF
CTR[0−31]
00000000
CAPx pin
t
MOD4
CTR
CAP1
CAP2
CAP3
CAP4
Capture registers [1−4]
CEVT3
CEVT4
0
1
2
3
0
1
XX
XX
t
2
XX
t
3
XX
t
4
CTR value at CEVT1
t
1
T
1
T
2
2
3
0
t
5
t
6
t
7
T
3
T
4
T
5
T
6
T
7
T
8
CEVT1
CEVT2
CEVT3
CEVT4
Polarity selection
Enhanced Capture (eCAP) Module
15.3.3.4 Time Difference (Delta) Operation Rising and Falling Edge Trigger Example
In
the eCAP operating mode is almost the same as in previous section except Capture
events are qualified as either Rising or Falling edge, this now gives both Period and Duty cycle
information: Period1 = T
1
+ T
2
, Period2 = T
3
+ T
4
, …etc Duty Cycle1 (on-time %) = T
1
/ Period1 × 100%,
etc Duty Cycle1 (off-time %) = T
2
/ Period1 × 100%, etc
During initialization, you must write to the active registers for both period and compare. This will then
automatically copy the init values into the shadow values. For subsequent compare updates, that is,
during run-time, only the shadow registers must be used.
Figure 15-112. Capture Sequence for Delta Mode Time-Stamp, Rising and Falling Edge Detect
1625
SPRUH73H – October 2011 – Revised April 2013
Pulse-Width Modulation Subsystem (PWMSS)
Copyright © 2011–2013, Texas Instruments Incorporated