SPRUIZ1B July 2023 – August 2024 TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
Table 21-4 lists the memory-mapped registers for the ECAP_REGS registers. All register offset addresses not listed in Table 21-4 should be considered as reserved locations and the register contents should not be modified.
Offset | Acronym | Register Name | Write Protection | Section |
---|---|---|---|---|
0h | TSCTR | Time-Stamp Counter | Go | |
2h | CTRPHS | Counter Phase Offset Value Register | Go | |
4h | CAP1 | Capture 1 Register | Go | |
6h | CAP2 | Capture 2 Register | Go | |
8h | CAP3 | Capture 3 Register | Go | |
Ah | CAP4 | Capture 4 Register | Go | |
12h | ECCTL0 | Capture Control Register 0 | EALLOW | Go |
14h | ECCTL1 | Capture Control Register 1 | EALLOW | Go |
15h | ECCTL2 | Capture Control Register 2 | EALLOW | Go |
16h | ECEINT | Capture Interrupt Enable Register | EALLOW | Go |
17h | ECFLG | Capture Interrupt Flag Register | Go | |
18h | ECCLR | Capture Interrupt Clear Register | Go | |
19h | ECFRC | Capture Interrupt Force Register | EALLOW | Go |
1Eh | ECAPSYNCINSEL | SYNC source select register | EALLOW | Go |
Complex bit access types are encoded to fit into small table cells. Table 21-5 shows the codes that are used for access types in this section.
Access Type | Code | Description |
---|---|---|
Read Type | ||
R | R | Read |
R-0 | R -0 | Read Returns 0s |
Write Type | ||
W | W | Write |
W1C | W 1C | Write 1 to clear |
W1S | W 1S | Write 1 to set |
Reset or Default Value | ||
-n | Value after reset or the default value |
TSCTR is shown in Figure 21-21 and described in Table 21-6.
Return to the Summary Table.
Time-Stamp Counter
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
TSCTR | |||||||||||||||||||||||||||||||
R/W-0h | |||||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | TSCTR | R/W | 0h | Active 32-bit counter register that is used as the capture time-base HR mode : 1) This register reads HRCOUNTER value and is not writable 2) can be reset using CTRFILTRESET 3) Its not synchronized to SYSCLK domain so reads may not be accurate Reset type: SYSRSn |
CTRPHS is shown in Figure 21-22 and described in Table 21-7.
Return to the Summary Table.
Counter Phase Offset Value Register
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CTRPHS | |||||||||||||||||||||||||||||||
R/W-0h | |||||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | CTRPHS | R/W | 0h | Counter phase value register that can be programmed for phase lag/lead. This register CTRPHS is loaded into TSCTR upon either a SYNCI event or S/W force via a control bit. Used to achieve phase control synchronization with respect to other eCAP and EPWM time-bases. This register is not applicable in HR mode. Reset type: SYSRSn |
CAP1 is shown in Figure 21-23 and described in Table 21-8.
Return to the Summary Table.
Capture 1 Register
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CAP1 | |||||||||||||||||||||||||||||||
R/W-0h | |||||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | CAP1 | R/W | 0h | This register can be loaded (written) by: - Time-Stamp counter value (TSCTR) during a capture event - Software - may be useful for test purposes or initialization - ARPD shadow register (CAP3) when used in APWM mode Reset type: SYSRSn |
CAP2 is shown in Figure 21-24 and described in Table 21-9.
Return to the Summary Table.
Capture 2 Register
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CAP2 | |||||||||||||||||||||||||||||||
R/W-0h | |||||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | CAP2 | R/W | 0h | This register can be loaded (written) by: - Time-Stamp ( counter value) during a capture event - Software - may be useful for test purposes - ACMP shadow register (CAP4) when used in APWM mode Reset type: SYSRSn |
CAP3 is shown in Figure 21-25 and described in Table 21-10.
Return to the Summary Table.
Capture 3 Register
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CAP3 | |||||||||||||||||||||||||||||||
R/W-0h | |||||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | CAP3 | R/W | 0h | In CMP mode, this is a time-stamp capture register. In APWM mode, this is the period shadow (APRD) register. You can update the PWM period value through this register. CAP3 (APRD) shadows CAP1 in this mode. Reset type: SYSRSn |
CAP4 is shown in Figure 21-26 and described in Table 21-11.
Return to the Summary Table.
Capture 4 Register
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CAP4 | |||||||||||||||||||||||||||||||
R/W-0h | |||||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-0 | CAP4 | R/W | 0h | In CMP mode, this is a time-stamp capture register. In APWM mode, this is the compare shadow (ACMP) register. You can update the PWM compare value via this register. CAP4 (ACMP) shadows CAP2 in this mode. Reset type: SYSRSn |
ECCTL0 is shown in Figure 21-27 and described in Table 21-12.
Return to the Summary Table.
Capture Control Register 0
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | SOCEVTSEL | ||||||
R-0-0h | R/W-0h | ||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
QUALPRD | RESERVED | ||||||
R/W-0h | R-0-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
INPUTSEL | |||||||
R/W-FFh | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-18 | RESERVED | R-0 | 0h | Reserved |
17-16 | SOCEVTSEL | R/W | 0h | ADC SOC event select Capture Mode: 00b (R/W) = SOC trigger source is CEVT1 01b (R/W) = SOC trigger source is CEVT2 10b (R/W) = SOC trigger source is CEVT3 11b (R/W) = SOC trigger source is CEVT4 APWM Mode: 00b (R/W) = SOC trigger interrupt source is period match 01b (R/W) = SOC trigger interrupt source is compare match 10b (R/W) = SOC trigger interrupt source is period match or compare match 11b (R/W) = Disabled Reset type: CPU1.SYSRSn |
15-12 | QUALPRD | R/W | 0h | Qual period to filter out noise on input signals being monitored, Not applicable for HR mode. 0x0 : Bypass 0x1 : pulses of with 1 cycle or less will be filtered out 0x2 : pulses of with 2 cycles or less will be filtered out .... 0xF : pulses of with 15 cycles or less will be filtered out Reset type: CPU1.SYSRSn |
11-8 | RESERVED | R-0 | 0h | Reserved |
7-0 | INPUTSEL | R/W | FFh | Capture input source select bits 0x0 capture input is ECAPxINPUT[0] 0x1 capture input is ECAPxINPUT[1] 0x2 capture input is ECAPxINPUT[2] ... 0xFF capture input is ECAPxINPUT[256] Reset type: CPU1.SYSRSn |
ECCTL1 is shown in Figure 21-28 and described in Table 21-13.
Return to the Summary Table.
Capture Control Register 1
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
FREE_SOFT | PRESCALE | CAPLDEN | |||||
R/W-0h | R/W-0h | R/W-0h | |||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CTRRST4 | CAP4POL | CTRRST3 | CAP3POL | CTRRST2 | CAP2POL | CTRRST1 | CAP1POL |
R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-14 | FREE_SOFT | R/W | 0h | Emulation Control Reset type: SYSRSn 0h (R/W) = TSCTR counter stops immediately on emulation suspend 1h (R/W) = TSCTR counter runs until = 0 2h (R/W) = TSCTR counter is unaffected by emulation suspend (Run Free) 3h (R/W) = TSCTR counter is unaffected by emulation suspend (Run Free) |
13-9 | PRESCALE | R/W | 0h | Event Filter prescale select Reset type: SYSRSn 0h (R/W) = Divide by 1 (i.e,. no prescale, by-pass the prescaler) 1h (R/W) = Divide by 2 2h (R/W) = Divide by 4 3h (R/W) = Divide by 6 4h (R/W) = Divide by 8 5h (R/W) = Divide by 10 1Eh (R/W) = Divide by 60 1Fh (R/W) = Divide by 62 |
8 | CAPLDEN | R/W | 0h | Enable Loading of CAP1-4 registers on a capture event. Note that this bit does not disable CEVTn events from being generated. Reset type: SYSRSn 0h (R/W) = Disable CAP1-4 register loads at capture event time. 1h (R/W) = Enable CAP1-4 register loads at capture event time. |
7 | CTRRST4 | R/W | 0h | Counter Reset on Capture Event 4 Reset type: SYSRSn 0h (R/W) = Do not reset counter on Capture Event 4 (absolute time stamp operation) 1h (R/W) = Reset counter after Capture Event 4 time-stamp has been captured (used in difference mode operation) |
6 | CAP4POL | R/W | 0h | Capture Event 4 Polarity select Reset type: SYSRSn 0h (R/W) = Capture Event 4 triggered on a rising edge (RE) 1h (R/W) = Capture Event 4 triggered on a falling edge (FE) |
5 | CTRRST3 | R/W | 0h | Counter Reset on Capture Event 3 Reset type: SYSRSn 0h (R/W) = Do not reset counter on Capture Event 3 (absolute time stamp) 1h (R/W) = Reset counter after Event 3 time-stamp has been captured (used in difference mode operation) |
4 | CAP3POL | R/W | 0h | Capture Event 3 Polarity select Reset type: SYSRSn 0h (R/W) = Capture Event 3 triggered on a rising edge (RE) 1h (R/W) = Capture Event 3 triggered on a falling edge (FE) |
3 | CTRRST2 | R/W | 0h | Counter Reset on Capture Event 2 Reset type: SYSRSn 0h (R/W) = Do not reset counter on Capture Event 2 (absolute time stamp) 1h (R/W) = Reset counter after Event 2 time-stamp has been captured (used in difference mode operation) |
2 | CAP2POL | R/W | 0h | Capture Event 2 Polarity select Reset type: SYSRSn 0h (R/W) = Capture Event 2 triggered on a rising edge (RE) 1h (R/W) = Capture Event 2 triggered on a falling edge (FE) |
1 | CTRRST1 | R/W | 0h | Counter Reset on Capture Event 1 Reset type: SYSRSn 0h (R/W) = Do not reset counter on Capture Event 1 (absolute time stamp) 1h (R/W) = Reset counter after Event 1 time-stamp has been captured (used in difference mode operation) |
0 | CAP1POL | R/W | 0h | Capture Event 1 Polarity select Reset type: SYSRSn 0h (R/W) = Capture Event 1 triggered on a rising edge (RE) 1h (R/W) = Capture Event 1 triggered on a falling edge (FE) |
ECCTL2 is shown in Figure 21-29 and described in Table 21-14.
Return to the Summary Table.
Capture Control Register 2
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
MODCNTRSTS | DMAEVTSEL | CTRFILTRESET | APWMPOL | CAP_APWM | SWSYNC | ||
R/W-0h | R/W-0h | R-0/W1C-0h | R/W-0h | R/W-0h | R-0/W1S-0h | ||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SYNCO_SEL | SYNCI_EN | TSCTRSTOP | REARM | STOP_WRAP | CONT_ONESHT | ||
R/W-0h | R/W-0h | R/W-0h | R-0/W1S-0h | R/W-3h | R/W-0h | ||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-14 | MODCNTRSTS | R/W | 0h | This bit field reads current status on modulo counter 00b (R) = CAP1 register gets loaded on next capture event. 01b (R) = CAP2 register gets loaded on next capture event. 10b (R) = CAP3 register gets loaded on next capture event. 11b (R) = CAP4 register gets loaded on next capture event. Reset type: CPU1.SYSRSn |
13-12 | DMAEVTSEL | R/W | 0h | DMA event select Capture Mode: 00b (R/W) = DMA interrupt source is CEVT1 01b (R/W) = DMA interrupt source is CEVT2 10b (R/W) = DMA interrupt source is CEVT3 11b (R/W) = DMA interrupt source is CEVT4 APWM Mode: 00b (R/W) = DMA interrupt source is period match 01b (R/W) = DMA interrupt source is compare match 10b (R/W) = DMA interrupt source is period match or compare match 11b (R/W) = Disabled Reset type: CPU1.SYSRSn |
11 | CTRFILTRESET | R-0/W1C | 0h | Reset Bit 0h (R) = No effect 1h (W) = Resets event filter, counter, modulo counter and CEVT[1,2,3,4] and CNTOVF , HRERROR flags Note: This provides an ability start capture module from known state in case spurious inputs are captured while ECAP is configured. Reset type: CPU1.SYSRSn |
10 | APWMPOL | R/W | 0h | APWM output polarity select. This is applicable only in APWM operating mode. Reset type: SYSRSn 0h (R/W) = Output is active high (Compare value defines high time) 1h (R/W) = Output is active low (Compare value defines low time) |
9 | CAP_APWM | R/W | 0h | CAP/APWM operating mode select Reset type: SYSRSn 0h (R/W) = ECAP module operates in capture mode. This mode forces the following configuration: - Inhibits TSCTR resets via CTR = PRD event - Inhibits shadow loads on CAP1 and 2 registers - Permits user to enable CAP1-4 register load - CAPx/APWMx pin operates as a capture input 1h (R/W) = ECAP module operates in APWM mode. This mode forces the following configuration: - Resets TSCTR on CTR = PRD event (period boundary - Permits shadow loading on CAP1 and 2 registers - Disables loading of time-stamps into CAP1-4 registers - CAPx/APWMx pin operates as a APWM output |
8 | SWSYNC | R-0/W1S | 0h | Software-forced Counter (TSCTR) Synchronizer. This provides the user a method to generate a synchronization pulse through software. In APWM mode, the synchronization pulse can also be sourced from the CTR = PRD event. Reset type: SYSRSn 0h (R/W) = Writing a zero has no effect. Reading always returns a zero 1h (R/W) = Writing a one forces a TSCTR shadow load of current ECAP module and any ECAP modules down-stream providing the SYNCO_SEL bits are 0,0. After writing a 1, this bit returns to a zero. |
7-6 | SYNCO_SEL | R/W | 0h | Sync-Out Select Reset type: SYSRSn 0h (R/W) = sync out signal is SWSYNC 1h (R/W) = Select CTR = PRD event to be the sync-out signal. Note: Selection CTR = PRD is meaningful only in APWM mode 2h (R/W) = Disable sync out signal 3h (R/W) = Disable sync out signal |
5 | SYNCI_EN | R/W | 0h | Counter (TSCTR) Sync-In select mode Reset type: SYSRSn 0h (R/W) = Disable sync-in option 1h (R/W) = Enable counter (TSCTR) to be loaded from CTRPHS register upon either a SYNCI signal or a S/W force event. |
4 | TSCTRSTOP | R/W | 0h | Time Stamp (TSCTR) Counter Stop (freeze) Control Reset type: SYSRSn 0h (R/W) = TSCTR stopped 1h (R/W) = TSCTR free-running |
3 | REARM | R-0/W1S | 0h | Re-Arming Control. Note: The re-arm function is valid in one shot or continuous mode Reset type: SYSRSn 0h (R/W) = Has no effect (reading always returns a 0) 1h (R/W) = Arms the one-shot sequence as follows: 1) Resets the Mod4 counter to zero 2) Unfreezes the Mod4 counter 3) Enables capture register loads |
2-1 | STOP_WRAP | R/W | 3h | Stop value for one-shot mode. This is the number (between 1-4) of captures allowed to occur before the CAP(1-4) registers are frozen, that is, capture sequence is stopped. Wrap value for continuous mode. This is the number (between 1-4) of the capture register in which the circular buffer wraps around and starts again. Notes: STOP_WRAP is compared to Mod4 counter and, when equal, 2 actions occur: - Mod4 counter is stopped (frozen) - Capture register loads are inhibited In one-shot mode, further interrupt events are blocked until re-armed. Reset type: SYSRSn 0h (R/W) = Stop after Capture Event 1 in one-shot mode Wrap after Capture Event 1 in continuous mode. 1h (R/W) = Stop after Capture Event 2 in one-shot mode Wrap after Capture Event 2 in continuous mode. 2h (R/W) = Stop after Capture Event 3 in one-shot mode Wrap after Capture Event 3 in continuous mode. 3h (R/W) = Stop after Capture Event 4 in one-shot mode Wrap after Capture Event 4 in continuous mode. |
0 | CONT_ONESHT | R/W | 0h | Continuous or one-shot mode control (applicable only in capture mode) Reset type: SYSRSn 0h (R/W) = Operate in continuous mode 1h (R/W) = Operate in one-Shot mode |
ECEINT is shown in Figure 21-30 and described in Table 21-15.
Return to the Summary Table.
The interrupt enable bits (CEVT1, ...) block any of the selected events from generating an interrupt. Events will still be latched into the flag bit (ECFLG register) and can be forced/cleared via the ECFRC/ECCLR registers.
The proper procedure for configuring peripheral modes and interrupts is as follows:
- Disable global interrupts
- Stop eCAP counter
- Disable eCAP interrupts
- Configure peripheral registers
- Clear spurious eCAP interrupt flags
- Enable eCAP interrupts
- Start eCAP counter
- Enable global interrupts
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | MUNIT_2_ERROR_EVT2 | MUNIT_2_ERROR_EVT1 | MUNIT_1_ERROR_EVT2 | MUNIT_1_ERROR_EVT1 | RESERVED | ||
R-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | ||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CTR_EQ_CMP | CTR_EQ_PRD | CTROVF | CEVT4 | CEVT3 | CEVT2 | CEVT1 | RESERVED |
R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R-0h |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-13 | RESERVED | R | 0h | Reserved |
12 | MUNIT_2_ERROR_EVT2 | R/W | 0h | Monitoring unit 2 error event 2 interrupt enable 0 : Disable Monitoring unit 2 error event 2 interrupt 1 : Enable Monitoring unit 2 error event 2 interrupt Reset type: CPU1.SYSRSn |
11 | MUNIT_2_ERROR_EVT1 | R/W | 0h | Monitoring unit 2 error event 2 interrupt enable 0 : Disable Monitoring unit 2 error event 1 interrupt 1 : Enable Monitoring unit 2 error event 1 interrupt Reset type: CPU1.SYSRSn |
10 | MUNIT_1_ERROR_EVT2 | R/W | 0h | Monitoring unit 1 error event 1 interrupt enable 0 : Disable Monitoring unit 1 error event 2 interrupt 1 : Enable Monitoring unit 1 error event 2 interrupt Reset type: CPU1.SYSRSn |
9 | MUNIT_1_ERROR_EVT1 | R/W | 0h | Monitoring unit 1 error event 1 interrupt enable 0 : Disable Monitoring unit 1 error event 1 interrupt 1 : Enable Monitoring unit 1 error event 1 interrupt Reset type: CPU1.SYSRSn |
8 | RESERVED | R/W | 0h | Reserved |
7 | CTR_EQ_CMP | R/W | 0h | Counter Equal Compare Interrupt Enable Reset type: SYSRSn 0h (R/W) = Disable Compare Equal as an Interrupt source 1h (R/W) = Enable Compare Equal as an Interrupt source |
6 | CTR_EQ_PRD | R/W | 0h | Counter Equal Period Interrupt Enable Reset type: SYSRSn 0h (R/W) = Disable Period Equal as an Interrupt source 1h (R/W) = Enable Period Equal as an Interrupt source |
5 | CTROVF | R/W | 0h | Counter Overflow Interrupt Enable Reset type: SYSRSn 0h (R/W) = Disabled counter Overflow as an Interrupt source 1h (R/W) = Enable counter Overflow as an Interrupt source |
4 | CEVT4 | R/W | 0h | Capture Event 4 Interrupt Enable Reset type: SYSRSn 0h (R/W) = Disable Capture Event 4 as an Interrupt source 1h (R/W) = Capture Event 4 Interrupt Enable |
3 | CEVT3 | R/W | 0h | Capture Event 3 Interrupt Enable Reset type: SYSRSn 0h (R/W) = Disable Capture Event 3 as an Interrupt source 1h (R/W) = Enable Capture Event 3 as an Interrupt source |
2 | CEVT2 | R/W | 0h | Capture Event 2 Interrupt Enable Reset type: SYSRSn 0h (R/W) = Disable Capture Event 2 as an Interrupt source 1h (R/W) = Enable Capture Event 2 as an Interrupt source |
1 | CEVT1 | R/W | 0h | Capture Event 1 Interrupt Enable Reset type: SYSRSn 0h (R/W) = Disable Capture Event 1 as an Interrupt source 1h (R/W) = Enable Capture Event 1 as an Interrupt source |
0 | RESERVED | R | 0h | Reserved |
ECFLG is shown in Figure 21-31 and described in Table 21-16.
Return to the Summary Table.
Capture Interrupt Flag Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | MUNIT_2_ERROR_EVT2 | MUNIT_2_ERROR_EVT1 | MUNIT_1_ERROR_EVT2 | MUNIT_1_ERROR_EVT1 | RESERVED | ||
R-0h | R-0h | R-0h | R-0h | R-0h | R-0h | ||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CTR_CMP | CTR_PRD | CTROVF | CEVT4 | CEVT3 | CEVT2 | CEVT1 | INT |
R-0h | R-0h | R-0h | R-0h | R-0h | R-0h | R-0h | R-0h |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-13 | RESERVED | R | 0h | Reserved |
12 | MUNIT_2_ERROR_EVT2 | R | 0h | Error event 2 Interrupt Flag from monitoring unit 2 Reset type: SYSRSn |
11 | MUNIT_2_ERROR_EVT1 | R | 0h | Error event 2 Interrupt Flag from monitoring unit 2 Reset type: SYSRSn |
10 | MUNIT_1_ERROR_EVT2 | R | 0h | Error event 2 Interrupt Flag from monitoring unit 1 Reset type: SYSRSn |
9 | MUNIT_1_ERROR_EVT1 | R | 0h | Error event 2 Interrupt Flag from monitoring unit 1 Reset type: SYSRSn |
8 | RESERVED | R | 0h | Reserved |
7 | CTR_CMP | R | 0h | Compare Equal Compare Status Flag. This flag is active only in APWM mode. Reset type: SYSRSn 0h (R/W) = Indicates no event occurred 1h (R/W) = Indicates the counter (TSCTR) reached the compare register value (ACMP) |
6 | CTR_PRD | R | 0h | Counter Equal Period Status Flag. This flag is only active in APWM mode. Reset type: SYSRSn 0h (R/W) = Indicates no event occurred 1h (R/W) = Indicates the counter (TSCTR) reached the period register value (APRD) and was reset. |
5 | CTROVF | R | 0h | Counter Overflow Status Flag. This flag is active in CAP and APWM mode. Reset type: SYSRSn 0h (R/W) = Indicates no event occurred 1h (R/W) = Indicates the counter (TSCTR) has made the transition from FFFFFFFF to 00000000 |
4 | CEVT4 | R | 0h | Capture Event 4 Status Flag This flag is only active in CAP mode. Reset type: SYSRSn 0h (R/W) = Indicates no event occurred 1h (R/W) = Indicates the fourth event occurred at ECAPx pin |
3 | CEVT3 | R | 0h | Capture Event 3 Status Flag. This flag is active only in CAP mode. Reset type: SYSRSn 0h (R/W) = Indicates no event occurred 1h (R/W) = Indicates the third event occurred at ECAPx pin. |
2 | CEVT2 | R | 0h | Capture Event 2 Status Flag. This flag is only active in CAP mode. Reset type: SYSRSn 0h (R/W) = Indicates no event occurred 1h (R/W) = Indicates the second event occurred at ECAPx pin. |
1 | CEVT1 | R | 0h | Capture Event 1 Status Flag. This flag is only active in CAP mode. Reset type: SYSRSn 0h (R/W) = Indicates no event occurred 1h (R/W) = Indicates the first event occurred at ECAPx pin. |
0 | INT | R | 0h | Global Interrupt Status Flag Reset type: SYSRSn 0h (R/W) = Indicates no event occurred 1h (R/W) = Indicates that an interrupt was generated. |
ECCLR is shown in Figure 21-32 and described in Table 21-17.
Return to the Summary Table.
Capture Interrupt Clear Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | MUNIT_2_ERROR_EVT2 | MUNIT_2_ERROR_EVT1 | MUNIT_1_ERROR_EVT2 | MUNIT_1_ERROR_EVT1 | RESERVED | ||
R-0h | R-0/W1C-0h | R-0/W1C-0h | R-0/W1C-0h | R-0/W1C-0h | R-0/W1C-0h | ||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CTR_CMP | CTR_PRD | CTROVF | CEVT4 | CEVT3 | CEVT2 | CEVT1 | INT |
R-0/W1C-0h | R-0/W1C-0h | R-0/W1C-0h | R-0/W1C-0h | R-0/W1C-0h | R-0/W1C-0h | R-0/W1C-0h | R-0/W1C-0h |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-13 | RESERVED | R | 0h | Reserved |
12 | MUNIT_2_ERROR_EVT2 | R-0/W1C | 0h | Writing '1' clears MUNIT_2_ERROR_EVT2 interrupt flag Reset type: SYSRSn |
11 | MUNIT_2_ERROR_EVT1 | R-0/W1C | 0h | Writing '1' clears MUNIT_2_ERROR_EVT1 interrupt flag Reset type: SYSRSn |
10 | MUNIT_1_ERROR_EVT2 | R-0/W1C | 0h | Writing '1' clears MUNIT_1_ERROR_EVT2 interrupt flag Reset type: SYSRSn |
9 | MUNIT_1_ERROR_EVT1 | R-0/W1C | 0h | Writing '1' clears MUNIT_1_ERROR_EVT1 interrupt flag Reset type: SYSRSn |
8 | RESERVED | R-0/W1C | 0h | Reserved |
7 | CTR_CMP | R-0/W1C | 0h | Counter Equal Compare Status Clear Reset type: SYSRSn 0h (R/W) = Writing a 0 has no effect. Always reads back a 0 1h (R/W) = Writing a 1 clears the CTR=CMP flag. |
6 | CTR_PRD | R-0/W1C | 0h | Counter Equal Period Status Clear Reset type: SYSRSn 0h (R/W) = Writing a 0 has no effect. Always reads back a 0 1h (R/W) = Writing a 1 clears the CTR=PRD flag. |
5 | CTROVF | R-0/W1C | 0h | Counter Overflow Status Clear Reset type: SYSRSn 0h (R/W) = Writing a 0 has no effect. Always reads back a 0 1h (R/W) = Writing a 1 clears the CTROVF flag. |
4 | CEVT4 | R-0/W1C | 0h | Capture Event 4 Status Clear Reset type: SYSRSn 0h (R/W) = Writing a 0 has no effect. Always reads back a 0 1h (R/W) = Writing a 1 clears the CEVT4 flag. |
3 | CEVT3 | R-0/W1C | 0h | Capture Event 3 Status Clear Reset type: SYSRSn 0h (R/W) = Writing a 0 has no effect. Always reads back a 0 1h (R/W) = Writing a 1 clears the CEVT3 flag. |
2 | CEVT2 | R-0/W1C | 0h | Capture Event 2 Status Clear Reset type: SYSRSn 0h (R/W) = Writing a 0 has no effect. Always reads back a 0 1h (R/W) = Writing a 1 clears the CEVT2 flag. |
1 | CEVT1 | R-0/W1C | 0h | Capture Event 1 Status Clear Reset type: SYSRSn 0h (R/W) = Writing a 0 has no effect. Always reads back a 0 1h (R/W) = Writing a 1 clears the CEVT1 flag. |
0 | INT | R-0/W1C | 0h | ECAP Global Interrupt Status Clear Reset type: SYSRSn 0h (R/W) = Writing a 0 has no effect. Always reads back a 0 1h (R/W) = Writing a 1 clears the INT flag and enable further interrupts to be generated if any of the event flags are set to 1 |
ECFRC is shown in Figure 21-33 and described in Table 21-18.
Return to the Summary Table.
Capture Interrupt Force Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | MUNIT_2_ERROR_EVT2 | MUNIT_2_ERROR_EVT1 | MUNIT_1_ERROR_EVT2 | MUNIT_1_ERROR_EVT1 | RESERVED | ||
R-0h | R-0/W1S-0h | R-0/W1S-0h | R-0/W1S-0h | R-0/W1S-0h | R-0/W1S-0h | ||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CTR_CMP | CTR_PRD | CTROVF | CEVT4 | CEVT3 | CEVT2 | CEVT1 | RESERVED |
R-0/W1S-0h | R-0/W1S-0h | R-0/W1S-0h | R-0/W1S-0h | R-0/W1S-0h | R-0/W1S-0h | R-0/W1S-0h | R-0h |
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-13 | RESERVED | R | 0h | Reserved |
12 | MUNIT_2_ERROR_EVT2 | R-0/W1S | 0h | Writing '1' sets MUNIT_2_ERROR_EVT2 interrupt flag Reset type: SYSRSn |
11 | MUNIT_2_ERROR_EVT1 | R-0/W1S | 0h | Writing '1' sets MUNIT_2_ERROR_EVT1 interrupt flag Reset type: SYSRSn |
10 | MUNIT_1_ERROR_EVT2 | R-0/W1S | 0h | Writing '1' sets MUNIT_1_ERROR_EVT2 interrupt flag Reset type: SYSRSn |
9 | MUNIT_1_ERROR_EVT1 | R-0/W1S | 0h | Writing '1' sets MUNIT_1_ERROR_EVT1 interrupt flag Reset type: SYSRSn |
8 | RESERVED | R-0/W1S | 0h | Reserved |
7 | CTR_CMP | R-0/W1S | 0h | Force Counter Equal Compare Interrupt. This event is only active in APWM mode. Reset type: SYSRSn 0h (R/W) = No effect. Always reads back a 0. 1h (R/W) = Writing a 1 sets the CTR_CMP flag. |
6 | CTR_PRD | R-0/W1S | 0h | Force Counter Equal Period Interrupt. This event is only active in APWM mode. Reset type: SYSRSn 0h (R/W) = No effect. Always reads back a 0. 1h (R/W) = Writing a 1 sets the CTR_PRD flag. |
5 | CTROVF | R-0/W1S | 0h | Force Counter Overflow Reset type: SYSRSn 0h (R/W) = No effect. Always reads back a 0. 1h (R/W) = Writing a 1 to this bit sets the CTROVF flag. |
4 | CEVT4 | R-0/W1S | 0h | Force Capture Event 4. This event is only active in CAP mode. Reset type: SYSRSn 0h (R/W) = No effect. Always reads back a 0. 1h (R/W) = Writing a 1 sets the CEVT4 flag. |
3 | CEVT3 | R-0/W1S | 0h | Force Capture Event 3. This event is only active in CAP mode. Reset type: SYSRSn 0h (R/W) = No effect. Always reads back a 0. 1h (R/W) = Writing a 1 sets the CEVT3 flag. |
2 | CEVT2 | R-0/W1S | 0h | Force Capture Event 2. This event is only active in CAP mode. Reset type: SYSRSn 0h (R/W) = No effect. Always reads back a 0. 1h (R/W) = Writing a 1 sets the CEVT2 flag. |
1 | CEVT1 | R-0/W1S | 0h | Force Capture Event 1. This event is only active in CAP mode. Reset type: SYSRSn 0h (R/W) = No effect. Always reads back a 0. 1h (R/W) = Sets the CEVT1 flag. |
0 | RESERVED | R | 0h | Reserved |
ECAPSYNCINSEL is shown in Figure 21-34 and described in Table 21-19.
Return to the Summary Table.
SYNC source select register
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SEL | ||||||||||||||||||||||||||||||
R-0h | R/W-1h | ||||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-7 | RESERVED | R | 0h | Reserved |
6-0 | SEL | R/W | 1h | These bits determines the source of SYNCIN signal. 0x0 : Disabled using SOC tieoff. 0x7F : Refer to SOC spec for details. Reset type: SYSRSn |