C28x/C29x eCAP
R2026bReceive and log transitions on capture input pin or configure auxiliary pulse width modulator
Libraries:
C2000 Microcontroller Blockset /
C2802x
C2000 Microcontroller Blockset /
C2803x
C2000 Microcontroller Blockset /
C2805x
C2000 Microcontroller Blockset /
C2806x
C2000 Microcontroller Blockset /
C280x
C2000 Microcontroller Blockset /
C2833x
C2000 Microcontroller Blockset /
C2834x
C2000 Microcontroller Blockset /
F280013x
C2000 Microcontroller Blockset /
F280015x
C2000 Microcontroller Blockset /
F28002x
C2000 Microcontroller Blockset /
F28003x
C2000 Microcontroller Blockset /
F28004x
C2000 Microcontroller Blockset /
F2807x
C2000 Microcontroller Blockset /
F2837xD
C2000 Microcontroller Blockset /
F2837xS
C2000 Microcontroller Blockset /
F2838x /
C28x
C2000 Microcontroller Blockset /
F28M35x /
C28x
C2000 Microcontroller Blockset /
F28M36x /
C28x
C2000 Microcontroller Blockset /
F28p65x
C2000 Microcontroller Blockset /
F28p55x
C2000 Microcontroller Blockset /
F29H85x
C2000 Microcontroller Blockset /
F28E12x
Description
The eCAP block captures the timing of important external events, such as Hall sensor signals in speed measurements of rotating machinery. When not used in capture mode, the block can be used in APWM mode, which is a single-channel, asymmetric pulse width modulator (APWM). You can add one eCAP block to your model for each capture pin. You cannot assign the same eCAP pin to two eCAP blocks in a model. eCAP and APWM modes use the same pins. In eCAP mode, the pins are used as input to capture the transitions. In APWM mode, the pins are used to output a PWM waveform.
The high resolution mode (HRCAP mode) in eCAP block is available only for specific TI processors. For F2803x and F2806x processors, see HRCAP block.
Examples
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"c2802xlib/eCAP"
"c2803xlib/eCAP"
"c2805xlib/eCAP"
"c2806xlib/eCAP"
"c280xlib/eCAP"
"c2833xlib/eCAP"
"c2834xlib/eCAP"
"c280013xlib/eCAP"
"c280015xlib/eCAP"
"c28002xlib/eCAP"
"c28003xlib/eCAP"
"c28004xlib/eCAP"
"c2807xlib/eCAP"
"c2837xDlib/eCAP"
"c2837xSlib/eCAP"
"c2838xlib/eCAP"
"f28M35x_C28x_lib/eCAP"
"f28M36x_C28x_lib/eCAP"
"c28P65xlib/eCAP"
"c28P55xlib/eCAP"
"c29H85xlib/eCAP"
"c28E12xlib/eCAP"
Example: add_block("c2802xlib/eCAP","myModel/myBlock",MakeNameUnique="on")



