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.

TMS570LS2125: Does the capture module support PWM counting?

Part Number: TMS570LS2125
Other Parts Discussed in Thread: TMS570LS1227,

Hi team,

I got a question from my customer and they would like to know whether they can use capture module to count PWM?

I am more familiar with C2000. In C2000, the Ecap module can only capture the time stamp and time difference between 2 PWM edge but cannot be used to count the number of PWM. Thus I am assuming TMS570 is similar. Is that correct?

Regards,

Brian

  • Hello,

    TMS570LS2125 does not have eCAP module on it. TMS570LS1227 is one of the Hercules MCUs that have eCAP.

    If you mean PWM pulse count with eCAP, there is no direct way to do this (counter that counts PWM pulses).

  • Hi Brian,

    If the device being considered has an eQEP peripheral like the TMS570LS1227, you could use that to count PWM pulses.  The eQEP can be set in direction-count mode & then the eQEP's B input to could be tied low (or high).

    Customer could evaluate if that is a viable option.


    Thank you,
    Brett

  • Brian,

    TMS570LS2125 does not have the eCAP module or the eQEP module. It has a High-End-Timer (HET) module which allows you to easily count input edges, or even measure input period / pulse-width.

    See the HET IDE for more information on developing using the HET. This IDE also includes examples for input pulse counts and other measurements.

    Regards, Sunil