F29H85x-SDK  1.03.00.00
 
ECAP

The ECAP driver provides API to configure the ECAP module. Below are the high level features supported by the ECAP driver.

Features Supported

  • 6 ECAP instances.
  • Supports various features like APWM and capture mode.
  • Supports HRCAP. HRCAP measures the width of external pulses to a higher degree of accuracy than the eCAP module.
  • 4-event time-stamp registers (each 32 bits).
  • Interrupt on either of the four events.

SysConfig Features

Note
It is strongly recommend to use SysConfig where it is available instead of using direct SW API calls. This will help simplify the SW application and also catch common mistakes early in the development cycle.
  • Support for ECAP instance selection.
  • Specifying the behaviour of Time-Stamp counter during an emulation event.
  • Support for ECAP modes - APWM or Capture mode.
  • Support for event polarity in capture mode.
  • Interrupt source configuration.
  • Support for APWM polarity, period and compare values in APWM mode.
  • Seperate DMA trigger.
  • Support for HRCAP configuration.
  • Support of Signal Monitoring Unit.

Features NOT Supported

NA

Important Usage Guidelines

NA

Example Usage

Include the below file to access the APIs #include <ecap.h>

API

eCAP