Capture Module - Control and Status Registers
803
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced Capture (eCAP) Module
Table 8-7. ECAP Control Register 1 (ECCTL1) Field Descriptions (continued)
Bit(s)
Field
Value
Description
00100
Divide by 8
00101
Divide by 10
...
11110
Divide by 60
11111
Divide by 62
8
CAPLDEN
Enable Loading of CAP1-4 registers on a capture event. Note that this bit does not
disable CEVTn events from being generated.
0
Disable CAP1-4 register loads at capture event time.
1
Enable CAP1-4 register loads at capture event time.
7
CTRRST4
Counter Reset on Capture Event 4
0
Do not
reset counter on Capture Event 4 (absolute time stamp operation)
1
Reset counter after Capture Event 4 time-stamp has been captured
(used in difference mode operation)
6
CAP4POL
Capture Event 4 Polarity select
0
Capture Event 4 triggered on a rising edge (RE)
1
Capture Event 4 triggered on a falling edge (FE)
5
CTRRST3
Counter Reset on Capture Event 3
0
Do not
reset counter on Capture Event 3 (absolute time stamp)
1
Reset counter after Event 3 time-stamp has been captured
(used in difference mode operation)
4
CAP3POL
Capture Event 3 Polarity select
0
Capture Event 3 triggered on a rising edge (RE)
1
Capture Event 3 triggered on a falling edge (FE)
3
CTRRST2
Counter Reset on Capture Event 2
0
Do not
reset counter on Capture Event 2 (absolute time stamp)
1
Reset counter after Event 2 time-stamp has been captured
(used in difference mode operation)
2
CAP2POL
Capture Event 2 Polarity select
0
Capture Event 2 triggered on a rising edge (RE)
1
Capture Event 2 triggered on a falling edge (FE)
1
CTRRST1
Counter Reset on Capture Event 1
0
Do not
reset counter on Capture Event 1 (absolute time stamp)
1
Reset counter after Event 1 time-stamp has been captured (used in difference mode
operation)
0
CAP1POL
Capture Event 1 Polarity select
0
Capture Event 1 triggered on a rising edge (RE)
1
Capture Event 1 triggered on a falling edge (FE)
Figure 8-18. ECAP Control Register 2 (ECCTL2)
15
11
10
9
8
Reserved
APWMPOL
CAP/APWM
SWSYNC
R-0
R/W-0
R/W-0
R/W-0
7
6
5
4
3
2
1
0
SYNCO_SEL
SYNCI_EN
TSCTRSTOP
REARM
STOP_WRAP
CONT/ONESH
T
R/W-0
R/W-0
R/W-0
R/W-0
R/W-1
R/W-1
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset