This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ECap input

Other Parts Discussed in Thread: CONTROLSUITE

Hello,

we are trying to run & get value at ecap register in example
C:\ti\controlSUITE\device_support\f2802x\v128\DSP2802x_examples_ccsv4\ecap_capture_pwm

Even after connecting it to generated PWM , we are not getting any value in Register.

Inform us how to measure PWM by ECap module... ??
Thank You

  • Hi Dharam,

    The example you're referring to is to change the functionality of eCAP module to PWM module. Please read the instructions at the start of the code before testing.
    You need to refer the other example ie ecap_apwm
    C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_examples_structs\ecap_apwm

    Regards,
    Gautam
  • Sir
    Below is description of this Example we can see here eCAP1 is configured to capture the time between rising and falling edge of the PWM3A output.

    // DESCRIPTION:
    //
    // This example configures EPWM3A for:
    // - Up count
    // - Period starts at 2 and goes up to 1000
    // - Toggle output on PRD
    //
    // eCAP1 is configured to capture the time between rising
    // and falling edge of the PWM3A output.

    If you have any example to measure External PWM signal please share with us...
    Thank you
  • You simply have to connect the external PWM signal to eCAP1 and configure your module accordingly. Disable the ePWM3A.

    Regards,
    Gautam