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.

AM2634: CMPSS Enable Module in syscfg not working as expected

Part Number: AM2634
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi!

I am working on having the CMPSS routed through a PWMXBAR to trip a PWM.

Everything is routed and working as expected when I have the CMPSS enabled, the pwmxbar enabled, and the epwm running. If the ADC input goes out of the CMPSS bounds, the PWM will trip (good!).

My trouble comes when I disable the CMPSS module, even with the ADC input in bounds of the CMPSS (just floating), the PWMXBAR will automatically trip the EPWM.

So, with CMPSS enabled, PWMs are running happy when the ADC is in bounds of the CMPSS. Then without changing the ADC input, just changing the syscfg to disable this CMPSS and recompiling + reprogramming, the PWMs halt upon boot.

My ultimate goal is to have software outside of syscfg to be the final decider if each CMPSS should be enabled or be left disabled (which I want as the default). For that to work, the default of a disabled CMPSS must function as expected. I could add/remove CMPSS to the PWMXBAR source, but that seems a bit like a hack. Thoughts?

Thanks!

  • Either way should work. I cannot see what was wrong from the screenshot you shared. It is showing when you uncheck enable module, Sysconfig is generating a disableModule function. Is that not what you are expecting? Thanks.

    Han

  • Hi Han,

    I have the pwmxbar configuration working, but I want the CMPSS config to work in code.

    Again, if I do not check the "Enable Module" box in syscfg gui, it still allows the CMPSS to trigger the pwmxbar (if the cmpss is routed to the pwmxbar).