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.

2806x Interrupt triggered by COMPxOUT

Hello,

I would like to generate an interrupt as COMPxOUT toggles. Is this possible?

I dont find any suggestion about it in the documentation.

(In this application I do not handle the ePWM module, so I guess I cannot use the TZ submodule).

Thanks for your help.

  • Maybe you could try enabling the comparator output on a pin, then also selecting that pin as an XINT? If the pin is not XINT capable (pins other than GPIO0-GPIO31), you may have to wire that COMPxOUT pin to one that is.  

    Let me know if this works. 

  • I think it would work. I will have to wire COMPxOUT pin to a XINT capable pin.

    But I want to use all the 3 available comparators (to call an emergency routine) and 3 wirings are not efficient...

    I thought that there is an easy way to call an interrupt from COMPxOUT, but I see nothing about it in the docs.

  • Michi,

    The other idea is the one you alluded to in your initial post.

    You could turn on several PWM channels and then have the comparator ouputs drive the TZ submodule.  The TZ submodule could then generate the interrupts you desire.

    (note that although it may be useful to have them output the PWMs through the GPIO mux for debug initially, you don't have to actually output them in your final product)


    Thank you,
    Brett