AM2634: How to detect CMPSS or SDFM comparator triggered PWM XBAR

Part Number: AM2634

Tool/software:

Hi!

I assume for most applications using the CMPSS and SDFM comparator, they are used to trigger a PWM XBAR -> trip EPWMs.

Using https://github.com/TexasInstruments/mcupsdk-core/releases/tag/REL.MCUSDK.10.01.00.33

What periodic function using the SDK API should I use to check if the CMPSS and SDFM comparator triggered a trip? For now, I want each trigger to latch so we can detect which CMPSS or SDFM comparator caused the trigger.

How can I set up the CMPSS & SDFM comparator to latch upon firing?

Do I need to loop over each CMPSS and SDFM comparator to find which triggered the xbar? If so, how can I use the SDK API for this?

Please provide an example function showing how I can detect CMPSS triggered trip and SDFM comparator triggered trip.

Thank you very much!



  • Hi Justin,

    Are you using analog signal input or using Sigma Delta modulator input? If you use analog input, CMPSS can be used, and for SDM signal, SDFM should be used. Thanks.

    Han

  • Hi Han,

    Madhava ended up giving me the answer here:

    To detect a trip and from where, use the CONTROLSS_PWMXBAR_FLAG register to detect when a trip occurred and from which of the 29 pwmxbar inputs. This can be used with the API -  SOC_xbarClearPWMXBarOutputSignalLatchedFlag()

    Thanks!