Target Category: Delfino, F280x, Piccolo
Target Sub-Category: Capture
Description: The eCAP block lets you configure the enhanced capture peripheral. Input to the eCAP block must have well-defined logic edge transitions to trigger an event. The eCAP unit will record time between events. Up to four sequential event intervals can be tracked.
You can choose the maximum number of events to track. To track both the on time and off time of a PWM signal, set Max Events to 2, Event 1 to Trigger on Falling Edge, and Event 2 to Trigger on Rising Edge. Then activate the corresponding Reset Counter on Capture. With this setup, event pin 1 will produce PWM on time, and event 2 pin will produce PWM off time.
Additional information: Texas Instruments SPRU807-eCAP document.
Capture Unit: Specifies the unit to be configured.
Event1…Event4: Indicates the four independent edge polarity (rising edge/falling edge) selections, one for each capture event.
Input Prescale: Indicates the amount of prescaling.
Max Events: Indicates the maximum number of capture events to be tracked.
Mux Pin: Selects which pin a given function is on.
Note: Some F280x and MSP430 devices have different functions for the same physical pin on the chip. This is referred to as multiplexing, or muxing, for short, and is done because pins are expensive. Because multiple functions compete for a given pin, you must choose what function a pin has. For flexibility, in some cases Texas Instruments provides multiple possible pins for a given function. For instance, the CANTXB function can be on pin 8, 12, or 16. Pin 8 is shared with ePWM5A and ADCSOCA0; pin 12 is shared with TZ1 and SPISIMOB; and pin16 is shared with SPISIMOA and TZ5. If you want ePWM5A on a pin, you cannot use pin 8 for CANTXB, but rather pin 12 or 16.
Reset Counter on Capture: Resets the counter for the specified event.